Detecting Firebug

To detect the presence of firebug in a browser window simply check that window.console is not ‘undefined’. You can get the version of firebug by reading the value from console.firebug.

Share

Bash Prompt Customization

Here are the backslash-escape special characters that have meaning to bash: \a an ASCII bell character (07) \d the date in “Weekday Month Date” format (e.g., “Tue May 26”) \e an ASCII escape character (033) \h the hostname up to the first `.’ \H the hostname \j the number of jobs currently managed by the shell \l the basename of the shell’s terminal device name \n newline \r carriage return \s the name of the Read more…

Share