Posts Tagged ‘tip’

28th December
2010
written by Nick Anderson

I know I have been pretty silent for a while, what can I say it has been busy. I did want to drop this little tip though. I use vim and gnome-terminal a LOT, so I hit ESC quite frequently. Being so close to the F1 key can be hazardous as I tend to mash the ESC key several times. I have no idea where I picked up the habbit of hitting ESC multiple times but its something I have done for a long time and I don’t see me retraining myself any time soon.

At any rate, if I miss the mark and mash F1 I get a slew of gnome-help windows, which is quite annoying to go around closing. Gnome-terminal has the ability to set (or disable) keyboard shortcuts just for gnome-terminal by navigating to Edit -> Keyboard Shortcuts. You can find the help shortcut pretty easily and clicking on it allows you to remap the keyboard shortcut but what is not so obvious at least to me was how to disable the shortcut. Well a bit of searching finally turned up the solution. Use backspace to remap the key to “Disabled”.

Happy Holiday, hopefully ill be more present in the near future.

23rd September
2010
written by Nick Anderson

At $work we are in the process of migrating to Google Apps. Of course I am an early adopter to work out bugs and be a resource for others as they make the migration. One of the issues identified is mailto links pointing to google apps. Its not hard to make the change in firefox.

First you need to set gecko.handlerService.allowRegisterFromDifferentHost to true in about:config (type about:config into your address bar).

Then login to your Google Apps account and paste the following into your address bar.


javascript:window.navigator.registerProtocolHandler("mailto","https://mail.google.com/a/example.com/mail/?extsrc=mailto&url=%s","Example Google Apps")

Just be sure to swap out example.com with your domain, and Example with your company.

6th May
2010
written by Nick Anderson

Yesterday I had a tip on removing yourself from any testing for that google sidebar that your likely seeing in your search results now. I woke up to a nasty surprise. After removing the cookie yesterday, today I had the bar again. So I removed the cookie again, and it came right back. Thats when a friend pointed out that google was rolling it out to everyone. OH NO!

Well, luckily you can get a browser extension for Firefox or Chrome that makes it disappear from the guys over at seotools.com Thanks!

Tags: , ,
22nd August
2009
written by Nick Anderson

Have you ever started writing a one-liner and half way in realized it was a bit more complex than you first thought?

If your shell is bash, next time that happens try ctrl-x ctrl-e.

It will take your current line and stuff it into the your default editor (export EDITOR=vim).

20th July
2007
written by Nick Anderson

Yes its been a while since I have checked in. Sorry I’ve just been too busy. But I have a great tip this time. Recently I had the need to do automatic session logging. A 3rd party was going to be logging into one of my servers to check out some software glitches that were happening. I love using GNU Screen for many shell tasks so using it for monitoring was logical. Screen is great for several reasons. First you can detach from it so you can leave the office, go home and re-attach and not have lost your place. Second, you can share another screen. It can be shared input or you can just watch what someone else is doing. Finally screen can do native logging. I wanted to automattically launch a screen session when somone logged in so if I happened to be on the server I could monitor them in real time. I also wanted a log of the session in case I wanted to look over it later or if I was not able to monitor the session live.
(more…)

Previous

BLOGROLL

ARCHIVE