Check These Out
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"
(relies on 'imagemagick')
This command will convert all .pdf files in a directory into a 800px (wide or height, whichever is smaller) image (with the aspect ratio kept) .jpg.
If the file is named 'example1.pdf' it will be named 'example1.jpg' when it is complete.
This is a VERY worthwhile command! People pay hundreds of dollars for this in the Windows world.
My .jpg files average between 150kB to 300kB, but your's may differ.
Not so useful. Just a cool feature.
Change ~/tmp to the destination directory, such as your mounted media. Change -n20 to whatever number of files to copy. It should quit when media is full. I use this to put my most recently downloaded podcasts onto my phone.
While editing a source file in vim, or using vimdiff to compare two or more files, the ':TOhtml' command can be used to export each buffer as an html file, including syntax highlighting and vimdiff colorization. If you are in insert mode in vim, you will have to type
:TOhtml
This will open a new buffer filled with html, which you can then save.
Shows all block devices in a tree with descruptions of what they are.
This will diff your local version of the file with the latest version in svn. I put this in a shell function like so:
$svd() { vimdiff
For times when netcat isn't available.
Will throw a Connection refused message if a port is closed.
Scriptable:
$ (: /dev/null && echo "OPEN" || echo "CLOSED"
Trace python statement execution and syscalls invoked during that simultaneously
This command will copy files and directories from a remote machine to the local one.
Ensure you are in the local directory you want to populate with the remote files before running the command.
To copy a directory and it's contents, you could:
$ ssh user@host "(cd /path/to/a/directory ; tar cvf - ./targetdir)" | tar xvf -
This is especially useful on *nix'es that don't have 'scp' installed by default.