About this user

Nicholas http://organanddrums.net

« Newer Snippets
Older Snippets »
7 total  XML / RSS feed 

Generate DSA Keys

// generates SSH DSA keys in ~/.ssh/

ssh-keygen -d

rsync syntax

rsync -avz --eahfs --progress --delete /source-dir-without-trailing-slash /destination-dir-with-trailing-slash

// explanation of switches
// -a, archive mode, equivalent to -rlptgoD which does things like recurse through all the dirs, preserves times, etc.
// -v, verbose mode
// -z, compress - makes the copy go faster. doesn't actually compress into a zip file
// --eahfs - (could also use -E, I think)
// --progress - show copy status of each item
// --delete, delete files on destination that aren't on source (sync)

Open Firefox in Safe Mode

// opens Firefox with extensions disabled. Also gives you the ability/option to reset Firefox to defaults.

// More info and code for other platforms can be found at http://kb.mozillazine.org/Safe_mode

/Applications/Firefox.app/Contents/MacOS/firefox -safe-mode

Change root password in OS X Server

In Terminal:

passwd root

Change admin password in OS X Server

Bad things can happen if you change the administrator password on OS X server the wrong way. The right way is to change it via Workgroup Manager (NOT System Preferences) or via this command in Terminal:

passwd admin

Flush DNS cache

In Terminal, type:

lookupd -flushcache

Change Default Screen Capture Format in OS X

Enter the following into Terminal:

defaults write com.apple.screencapture type *format*

In place of *format* in the above put any of the following, depending on your preference:

png - this is the default

(There may be others. Feel free to add these to the comments.)
« Newer Snippets
Older Snippets »
7 total  XML / RSS feed