Tech Diary
How to mark partition as recovery

>

/usr/sbin/asr adjust --target /dev/diskXsY -settype Apple_Boot

Bash config files: what gets run when?

$ bash
~/.bashrc


$ bash -l
~/.bash_profile or ~/.profile


$ ssh localhost
~/.bash_profile or ~/.profile


$ ssh localhost bash
~/.bashrc
^CKilled by signal 2.


$ ssh localhost 'bash -l'
~/.bashrc
~/.bash_profile or ~/.profile
Holy shift

Once you learn that shift/unshift are like push/pop on the other end of the array, you can mentally drop the ‘f’ from the name of the methods to remember which one ‘dumps’ elements and which one ‘inserts’ them. :)

Stack Overflow

Better than lsof

sudo opensnoop -n installd

git symbolic refs

are like dynamic tags — tags always reference commits but symbolic refs can reference other refs.

TodoTxtMac is a minimalist, keyboard-driven to-do manager for Mac OS X… that conforms to the todo.txt format spec.

GitPrep is Github clone. you can install portable github system into unix/linux. You can create users and repositories without limitation

distinctions

  • / for files required at startup, /usr for files that are part of the operating system but not required for startup, /usr/local for files that are not part of the operating system
  • sbin (vs bin) for root-only programs
  • opt for self-contained programs

http://askubuntu.com/questions/130186/what-is-the-rationale-for-the-usr-directory

Gonna be using this to copy/paste code into emails.

http://markup.su/highlighter/

Gonna be using this to copy/paste code into emails.

http://markup.su/highlighter/