Tuesday, July 6, 2010

Display Any Web Page's Keyboard Shortcuts

If you want to see keyboard shortcuts of your webpages
then do the flowing.

create userContent.css file in this location
if you have your own profile then make file there
or use default firefox profile.

win:
hit Start -> Run and type %appdata%\Mozilla\Firefox\Profiles

mac:
~/Library/Application Support/Firefox

then open that file using any text editor and pest this code:

a[accesskey]:after,
button[accesskey]:after,
input[accesskey]:after,
label[accesskey]:after,
legend[accesskey]:after,
textarea[accesskey]:after
{
margin-left: 0.3em;
content: "[" attr(accesskey) "]";
}

reload firefox enjoy :)

list open ports and unix sockets

To do this I use netstat command to list all open ports: $ sudo netstat -tuplen to list open ports and unix sockets: $ sudo netstat -...