Check These Out
This makes an alias for a command named 'busy'. The 'busy' command opens a random file in /usr/include to a random line with vim. Drop this in your .bash_aliases and make sure that file is initialized in your .bashrc.
Doubt it actually generates valid mac addresses but this version doesn't need any external commands so it runs much faster.
Much shorter as well.
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.
Yet another way to add a line at the top a of text file with the help of the tac command (reverse cat).
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 ;-)
Return the current shell. It is better than print $SHELL which can sometimes return a false value.
This is a two part command that comes in really handy if you're running commands that take longer than you're willing to wait. The commands are separated by the semicolon(;) The first command is whatever you're attempting to do. The second commands emails you after the job completes.
Want to run scripts/programs in the system after starting X minute [ For letting the system to free ]? This will give uptime in minute.