Posts Tagged ‘trick’

Play Youtube videos with VLC

November 27, 2012 1 comment

Did you know that VLC media player can play Youtube videos? Neither did I. Try this:


Does Flash break all the time? Use VLC :)

Tip from here.

Categories: Uncategorized Tags: , ,

Youtube audio player

November 20, 2012 Leave a comment

At I found a nice trick to embed just a part of the Youtube Flash player, thus the player looks like an audio player. All you need is a little CSS trick:

Categories: firefox, google, html Tags: , , ,

Stupid pop-up at the bottom of wordpress pages

June 14, 2012 2 comments

I just noticed that there is a new pop-up widget on my blog at the bottom (see the screenshot). How to get rid of that?

Install Adblock Plus and add the following filter:

See this post for another example.

Categories: firefox, wordpress Tags: ,

Google search on Apache-generated directory lists


intitle:"index of" +"last modified" 
+"parent directory" +description +.mp3

This will look for MP3 files. Try here.

Update (20140615)
Finding books on Python:

python pdf +"index of /"
Categories: google Tags: , , ,

Format text in vim in 5 seconds

April 18, 2012 Leave a comment

You use vim and you don’t want any lines to be longer than 80 characters. However, when you select a paragraph in the browser and you paste it in vim, the whole paragraph is inserted in one long line. Since you are just as lazy as me, you don’t want to break the line manually. What to do?

Select the line in visual mode (Shift + V). At the bottom you should see “-- VISUAL LINE --“. Press ! (now at the bottom you should see :'<,'>!), type fmt (thus you have :'<,'>!fmt at the bottom) and press Enter. Done.

What just happened?
We passed the selected text to the external Unix command fmt, which reformatted the text. Vim then inserted the output of fmt to the place of the selected text.

So, if you have a list of words, one word in a line, and you want to sort them, just pass them to the external command sort: select the lines visually, !sort and Enter.

[ reddit discussion ]

Categories: vim Tags: , , ,

Get every new post delivered to your Inbox.

Join 85 other followers