Tips
Expand all tabs to spaces:
:retabView source in Vimperator:
:viewsourceRemove UserTextFrames in mp3s:
Want to remove “TXXX=ALBUM ARTIST=Dysrhythmia”
$ eyeD3 --set-text-frame=TXXX: *.mp3 $ waxDelete all lines containing the word “profile”:
:g/profile/dMake pdfs with LaTeX and clean up:
$ latexmk -pdf -cReach out and
grepsomeone:Instead of
$ cat * | grep cancelledto find the word “cancelled” in any file in
pwd, use$ grep cancelled *It actually tells you what file it was in…
British people spell it “cancelled”, Amerikans spell it “canceled”. cancel
Turn off search highlighting after you’ve found your term:
:set nohlsearchExtract a
.exewith full paths:$ 7z x foo.exeConvert a pdf to tiff files:
$ convert foo.pdf foo-image-%03d.tiffThis uses ImageMagick to make one tiff per pdf page. The
%03dis a print formatting notation so that files will end up like so:$ ls *.tiff foo-image-000.tiff foo-image-001.tiff foo-image-002.tiff ...Kill svn out of control:
# killall -s KILL svnMogrify with ImageMagick
$ cp foo.png foo-thumb.png $ mogrify -resize 30% foo-thumb.pngSet OpenBSD /etc/hostname.atu0
dhcp NONE NONE NONE nwkey 0xmynetworkkey chan 11Simple as that.
See also:
Set date in Open Firmware
At the Open Firmware prompt, type:
decimal dev rtc <sec> <min> <hr> <day> <month> <year> set-timeSo, for 20:46:00 Sunday, Feb 7th 2010:
decimal dev rtc 00 46 20 07 02 2010 set-timefrom:
macosxhints.com/article.blahblahblahssh -XUntrusted
$ ssh -X -p port user@serverTrusted
$ ssh -Y -p port user@servertransmission-cli
$ transmissioncli -b -D -er -M -p 50001 -u 20 -v -w \ downloads/slackware-13-iso \ downloads/slackware-13-iso/slackware-13.0-install-d1.torrentint main(int argc, char *argv[])where
argcis a count of the program arguments andargvis an array of character strings representing the arguments themselves.$ myprog left right 'and center'has the parameters:
argc: 4 argv: {"myprog", "left", "right", "and center"}Reference: Beginning Linux Programming, 137.