creating a bootable usb drive from a .img file on OSX

From https://help.ubuntu.com/community/Installation/FromImgFiles:

  • Download the desired .img file
  • Open a Terminal (under Utilities)
  • Run diskutil list to get the current list of devices
  • Insert your flash media
  • Run diskutil list again and determine the device node assigned to your flash media (e.g. /dev/disk2)
  • Run diskutil unmountDisk /dev/diskN (replace N with the disk number from the last command; in the previous example, N would be 2)
  • Execute sudo dd if=/path/to/downloaded.img of=/dev/diskN bs=1m (replace /path/to/downloaded.img with the path where the image file is located; for example, ./ubuntu.img). If you see the error dd: Invalid number `1m', you are using GNU dd. Use the same command but replace bs=1m with bs=1M.
  • Run diskutil eject /dev/diskN and remove your flash media when the command completes

copying files with rsync

rsync is a great way to copy files between computers as it can continue after partial copies and update directories when only a few files have changed, it also supports secure file copies over ssh as shown below:

copy files locally:

rsync -rtvzP --delete --exclude=.Trash /Users/evan/ /Volumes/backup/evan/

copy local files to a remote computer excluding all the mac .DS_Store folders in the path:

rsync -ravzP --exclude=**/.DS_Store -e ssh "/Users/evan/my files/" evan@someserver.codepit.ca:/home/evan/files/

copy remote files onto a local computer:

rsync -ravzP -e ssh 10.10.238.123:"/home/evan/my files/" /Users/evan/files/

NOTE the use of " when there is are spaces in the file paths

Useful switches:

-n == dry run, very useful with --delete :o
--delete == delete files when they are missing from the source computer and present on the target

setting Bing as your default Safari search engine

Download Glaims (http://www.macupdate.com/info.php/id/27708/glims) 

Quit Safari
 
Run the Glaims installer
 
Restart Safari
 
Open the Safari preferences and click the "Glims", click "Search Engines" and "add" a new entry
 
Name it "Bing" and enter the Query URL "http://www.bing.com/search?q=#query#"
 
Click Add/Set

Picture_1

Close Safari preferences
 
Change the search engine in Safari by clicking on Google icon in the search box and select Bing
 
Enjoy!