Too Cool for Internet Explorer

My other pages

Other pages on this site

These are written in Portuguese:

Random things

Gentoo-related things

Configuration files

Some scripts I wrote

This section is being moved to its own page: My scripts

Some programs

Programming Contests

Valladolid

ACM-ICPC Live Archive

PKU JudgeOnline

Some ISOs

Random links

Random tips

How to change keyboard layout:
setxkbmap -layout us_intl
A more complete setxkbmap line:
setxkbmap -rules xfree86 -model pc104 -layout us_intl -option ""
How to make the Win key work on some distros:
setxkbmap -variant altwin:super_win
List all files (including hidden), sorted by modification time:
ls -ltrAh
ls -trAsh
List all files (including hidden), sorted by creation time:
ls -crAsh
List all files (including hidden), sorted by size:
ls -SArsh
Show disk usage of each file and directory (including hidden) inside current directory (sorted by size):
du -smc .[^.]* * | sort -n
du -skc .[^.]* * | sort -n
Show disk usage of each directory (including hidden) inside current directory (sorted by size):
du -smc .[^.]*/ */ | sort -n
du -skc .[^.]*/ */ | sort -n
Repeat one parameter a lot of times at command-line, without repeatly repeatly writing it, in bash (in following line, I wanted to print 5 copies of "SomeDocument.ps"):
lpr SomeDocument.ps{,,,,}
Print the image size:
identify -format '%w %h %i'
Discover if an image is corrupt or incomplete:
identify -format '' CORRUPTIMAGEHERE 2>&1 > /dev/null
Put subtitles in black area below video, in mplayer (note: maybe you might need to tweak the numbers -100 and 50):
mplayer -vf expand=0:-100:0:50 -sub yoursubfile.srt yourmovie.avi
Put subtitles in black area below video, in mplayer (improved version, will "expand" the video to fit 4:3 proportions), and also fix the volume:
mplayer -af volnorm=1 -vf expand=:::::4/3 -sub yoursubfile.srt yourmovie.avi
Convert any audio file that mplayer can play (in this case, an AMR file recorded by a mobile phone) to WAV:
mplayer -ao pcm:fast:file=somefile.wav -vo null -vc null somefile.amr
Reuse ssh connections
Add this to ~/.ssh/config
Host *
	ControlMaster auto
	ControlPath ~/.ssh/control_master_%r@%h-%p