Install Homebrew

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Check your system for potential problems

$ brew doctor

Fetch the newest version of Homebrew

$ brew update

List all installed formulae

$ brew list

Install formulae

$ brew install [package]

Write raspbian image to SD card using Mac

Insert the SD card

Check for automatically mounted volumes

$ ls /Volumes/
MacBookSSD	boot

Identify mounted volumes

$ diskutil list
/dev/disk0 (internal, physical):
   #:                     TYPE NAME             SIZE       IDENTIFIER
   0:    GUID_partition_scheme                 *480.1 GB   disk0
   1:                      EFI EFI              209.7 MB   disk0s1
   2:                Apple_HFS MacBookSSD       479.2 GB   disk0s2
   3:               Apple_Boot Recovery HD      650.0 MB   disk0s3

/dev/disk1 (internal, physical):
   #:                     TYPE NAME             SIZE       IDENTIFIER
   0:   FDisk_partition_scheme                 *31.9 GB    disk1
   1:           Windows_FAT_32 boot             43.7 MB    disk1s1
   2:                    Linux                  31.9 GB    disk1s2

Unmount mounted volume

$ sudo umount /dev/disk1s1

Write the image to the SD card

$ sudo dd if=2017-07-05-raspbian-jessie-lite.img of=/dev/disk1 bs=1m

If you want to check the progress, press ctrl+t

$ diskutil eject /dev/disk1

Mount Raspberry Pi SD card on Mac

Using Homebrew, install osxfuse and ext4fuse

$ brew cask install osxfuse
$ brew install ext4fuse

Find the Raspberry Pi’s partition ID

$ diskutil list

Create a mount point

sudo mkdir /Volumes/rpi

Mount the drive

sudo ext4fuse /dev/disk2s2 /Volumes/rpi -o allow_other

Unmount the drive

sudo umount /Volumes/rpi

Tribute to Jeff Geerling https://www.jeffgeerling.com/blog/2017/mount-raspberry-pi-sd-card-on-mac-read-only-osxfuse-and-ext4fuse

Create bootable USB stick from ISO in Mac OS X

Convert the ISO to UDRW format

$ hdiutil convert -format UDRW -o destination_file.img source_file.iso

Prepare the USB stick

$ diskutil list
$ diskutil partitionDisk /dev/disk4 1 "Free Space" "unused" "100%"

Copy the image to the USB stick

$ dd if=destination_file.img.dmg of=/dev/rdisk4 bs=1m
$ diskutil eject /dev/disk4
Publicerat i Mac