Check These Out
Will return the SSH server key information for each host you have in your ~/.ssh/known_hosts file, including key size, key fingerprint, key IP address or domain name, and key type.
Lists out all classes used in all *.html files in the currect directory. usefull for checking if you have left out any style definitions, or accidentally given a different name than you intended. ( I have an ugly habit of accidentally substituting camelCase instead of using under_scores: i would name soemthing counterBox instead of counter_box)
WARNING: assumes you give classnames in between double quotes, and that you apply only one class per element.
Finder compresses to ZIP but always includes extraneous metadata files (__MACOSX and .DS_Store) files and folders that may confuse other programs.
One alternative is creating them and then editing the ZIP. This can work standalone or in an automator script accepting multiple selections (files or folders) and creating one zip per argument/selected file without that metada.
Uses 'rename' to pad zeros in front of first existing number in each filename. The "--" is not required, but it will prevent errors on filenames which start with "-". You can change the "2d" to any number you want, equaling the total numeric output: aka, 4d = ????, 8d = ????????, etc.
I setup a handful of handy functions to this effect (because I couldn't figure out how to insert a var for the value) in the form of 'padnum?', such as:
padnum5 () {
/usr/bin/rename 's/\d+/sprintf("%05d",$&)/e' -- $@
}
Which would change a file "foo-1.txt" to "foo-00001.txt"
example:
--------------------------------------------------------------------------------------------
user@ubuntu:~/workspace/SVN/haystak-repos/trunk/internal/src$ addpi
--------------------------------------------------------------------------------------------
Now that directory is in the list of fast access directories.
You can switch to it anytime like this:
--------------------------------------------------------------------------------------------
user@ubuntu:~$ pi internal`
user@ubuntu:~/workspace/SVN/haystak-repos/trunk/internal/src$ --------------------------------------------------------------------------------------------
Please note the backquote ( the symbol that shares its key with ~ in the keyboard )
pi will switch you to that directory.
To see the list of all fast access directories you have to say "cat ~/.pi"
When you fill a formular with Firefox, you see things you entered in previous formulars with same field names. This command list everything Firefox has registered. Using a "delete from", you can remove anoying Google queries, for example ;-)
Useful for massive files where doing a full diff would take too long. This just runs diff on the first 500 lines of each. The use of subshells to feed STDIN is quite a useful construct.