Postgres

\pset pagertoggle the pager for long result sets.
update cards set style = '"display"=>"none"'::hstore where id = 35345;set an hstore field

Unix bs

sudo find / -name a_stringsearch entire filesystem for a string
grep -rn select app/views/recursive grep with line number
|matepipe results of shell command into textmate

Textmate

^↑Wwrap selection in open/close tags

Mac OS X

Command-Shift-4 select an area: Take a screenshot of an area and save it as a file on the desktop
Command-Control-Shift-4, then space, then click a window: Take a screenshot of a window and save it to the clipboard

Latex: Math Mode

\frac{a}{b}fraction
v \cdot wdot product of v and w, c must stand for 'center'
\|v\|double bar - norm of v
\cos \thetacosine of theta
\big|single pipe
\sum_{i=1}^nsummation symbol

Textmate

^↑Wwrap selection in open/close tags

MacJournal

show entries in sidebar with disclosure triangleturn on hidden preferences, uncheck the box that says 'open entries list' after sidebar selection