How to download a youtube video under linux command line

Reading Time: < 1 minute

Here is a great python script very useful to download an HD video from Youtube using the command line in Linux.

https://rg3.github.com/youtube-dl

It’s very simple, download and run. The result is an mp4 file that you can watch offline with VLC or Media Player Classsic under Windows or any other mp4 player under Linux.

Export putty settings

Reading Time: < 1 minuteIt looks like your putty sessions are stored in the registry.

 
Start up the registry editor: regedit.exe (on Windows 7, hit the windows key and type regedit.exe)
 
Browse to HKEY_CURRENT_USER\Software\SimonTatham
 
Right click on "Sessions", choose export. Give a name. Email the file.
 
On the other computer, get the file, save it, right click on it, click on merge. Done

How to get rid of conduit as a default search engine in Firefox

Reading Time: 2 minutesSo it looks like this conduit thing is stuck in your browser.

First, why would any company want to do that.
A bit of datamining, a lot of google adverts money.

I don’t know for sure but maybe this company which is by the way providing some nice software most of the time, is keeping records of the searches you are entering in google. They probably don’t really build any profile on you but at least they get a good idea of what the people they are connected to are looking for on the web.

How to delete empty line with vi

Reading Time: < 1 minute

How to delete empty lines with vi?

Just type this in:

 
<esc>:g/^$/d

NOTE:  This means that all the lines that just have a carriage return on them (NO Spaces), will be removed. 

If you want to remove lines with empty spaces as well:

 
<esc>:g/^ *$/d