change require.paths dynamically or set NODE_PATH environmental variable
When require('assert') is called Node looks for:
$ ps aux | sort -nk +4 | tail
:w !sudo tee %
The tee command takes standard input and write it to a file. % is a read-only register containing the current file name.
$ ^foo^bar^
This is a shortcut for
$ !!:s/foo/bar/
Note that this one-liner replaces just the first word in the previous command. To replace all words, add the g modifer (g for global):
$ !!:gs/foo/bar
cp filename{,.bak}
$ ssh-copy-id remote-machine
$ ffmpeg -f x11grab -s wxga -r 25 -i :0.0 -sameq /tmp/out.mpg
-r 25
sets the framerate of the video to 25fps.
-i :0.0
sets the video input file to X11 display 0.0 at localhost.
-sameq
preserves the quality of input stream. It's best to preserve the quality and post-process it later.