13 August 2011

try some window splitting in vim

split window horizontally
split window vertically
open file in new window
:vs filename
move to another window
ctrl+w up,down,left,right
next window
ctrl+w ctrl+w
close window
close all other windows

try screenkey to display keys pressed in screen casts .deb available http://goo.gl/rTWGG

another excellent choice is keymon

09 August 2011

post your tomboy note to a blog with the blogposter plugin

to post to blogger from ubuntu download the binary: http://goo.gl/mXVGx
save it to ~/.config/tomboy/addins
start tomboy
go to edit > preferences > addins > addin > tools > post note to your blog > preferences
fill in your:
blog name
blog id eg (http://www.blogger.com/feeds/xxxxxxxxxxxxxxxxxxxxxx/posts/default) where xxx.. is your blog id number
account name

create your own fortune messages with shuf ~/messages | head

08 August 2011

copy all mp3s from level 1 subdirs into the current working directory with cp */*.mp3 .

delete last word in LibreOffice with ctrl+del and the next word with ctrl+backspace

The same shortcut is used in m$ word (along with most others).

How many key presses would this have saved me!

07 August 2011

try a turn based strategy game: webdiplomacy http://goo.gl/oHthS

open run dialog as su in #ubuntu #linux with gksu

from man gksu:

gksu is a frontend to su and gksudo is a frontend to sudo. Their primary purpose is to run graphical commands that need root without the need to run an X terminal emulator and using su directly.

Notice that all the magic is done by the underlying library, libgksu. Also notice that the library will decide if it should use su or sudo as backend using the /apps/gksu/sudo-mode gconf key, if you call the gksu command. You can force the backend by using the gksudo command, or by using the --sudo-mode and --su-mode options.

If no command is given, the gksu program will display a small window that allows you to type in a command to be run, and to select what user the program should be run as. The other options are disregarded, right now, in this mode.

try a web filter and proxy cache solution with dansguardian and squid3

These steps worked for me in ubuntu 11.04. These tools can disable your network so make sure you have a look at some documentation first. ('Dansguardian Docs' and 'Squid Configuration Basics')

1. Install Dansguardian and Squid3:

sudo apt-get install dansguardian squid3

2. Edit /etc/dansguardian/dansguardian.conf so:

filterport = 8080
proxyip =
proxyport = 3128

    3. Edit /etc/squid3/squid3.conf to include:

    http_port 3128

      4. Edit the proxy settings to in your browser:

      5. Restart dansguardian and squid3 with:

      sudo service dansguardian restart; sudo service squid3 restart

      6. Test!

      try an online bash shell at http://cb.vu/

      try http://cb.vu/#<command> to create a shortcut

      replace spaces in filenames with underscores with rename -v 's/\ /\_/g'