How to disable Flash in Firefox

I recently needed to test what some web pages looked like when Flash was disabled to show a prompt to install Flash, and discovered how to disable Flash temporarily in Firefox.

Tools -> Add-ons -> Plugins

To disable Flash in Firefox open up the Add-ons dialog. In the Windows versions of Firefox this done by selecting “Tools” then “Add-ons” from the menus, and then clicking the “Plugins” button.

In the Debian version (and probably other Linux distros) of Icemonkey (the equivilent of Firefox) it’s also under Tools -> Add-ons. I assume it’s the same for the OSX version but don’t know for sure.

The “Plugins” button is highlighted with a red circle in the screenshot below.

disable flash in firefox

Now scroll down through the list of plugins until you find “Shockwave Flash”. Then click the “Disable” button (highlighted with the red box in the above screenshot) and it will then disable Flash. The button label will then change to “Enable” and it’s simply a matter of clicking it again to enable Flash again.

Showing seconds with ls on Linux and OSX

Using the "ls" command to list directory contents from the command line with the -l flag will include the date and time down to the minute, but not show the seconds. This post shows how to display the seconds as well with bash on Linux and OSX.

Show only one process with top on Linux

Top is a useful command line tool for showing processes running on Linux such as how much CPU and memory they've been using and how long they've been running, and also showing the system load, CPU and memory usage as a whole. But what if you only one to show output for one process or command?

Change the commit message with git

I'm sure you've done it before: added a commit message with git but typed it in wrong and need to change it. If you haven't pushed the commit yet then it's as simple as 'git commit –amend -m "New commit message"'.