Tag: OSX

  • OS X Finder Service to convert Grab.app TIFF files to JPG

    It drives me nuts that Grab.app defaults to .tif as the file type. And no matter how many times I try the recommended : defaults write com.apple.screencapture type jpg I can not get it to default to save as a jpg (and I tried jpeg). All I can guess is that this command does not…

  • GNU date vs BSD date

    I usually develop and test my BASH scripts on my mac, mostly for use on RedHat systems. Occasionally I run into problems with this workflow. Recently I realized there was a differnce between the date command on RedHat and the date command in OS X. Turns out BDS date != GNU date. The workaround, install coreutils from Mac…

  • My mac ports cheat sheet

    These 3 commands will check for new ports, upgrade outdated ports, and remove older versions. sudo port selfupdate sudo port upgrade outdated sudo port uninstall inactive To make sure you have a slimmed down install, use port_cutleaves to remove unnecessary ports. There are often “Build Dependencies” (like autoconf, automake, libtool, m4, help2man, p5-locale-gettext) that are…

  • BASH (readline) keyboard shortcuts

    I was just in training and the instructor was a command line keyboard shortcut wizard. He was magically making words disappear and reappear. So i fond this list of shortcuts. Many of them did not work in my OS X BASH prompt.I fond I had to go into the terminal.app preferences and select “use option…