More useful shell tricks for bash. These are very useful tricks for any Linux user.

This sed trick will filter out the unwanted characters and leave only the letters ‘A’. homer@deusexmachina ~ $ echo “###AAA” | sed ‘s/###//gi’ AAA This is how to re-bind the annoying CAPS-Lock key to Esc. This can give that key a new use. xmodmap -e ‘clear Lock’ -e ‘keycode 0×42 = Escape’ & Here is […]

Click post title to read more...

How to encode a video to webm format and use it as a GIF replacement.

This is how to encode a video to webm format without sound to create a GIF replacement. The ffmpeg utility allows encoding a video in different formats. This is the perfect command for encoding a good quality webm video. ffmpeg -i gzdoom_2012_11_04_20_34_10_391.avi -ss 00:01:00.000 -to 00:01:20.000 \ -codec:v libvpx -quality good -cpu-used 0 -b:v 500k […]

Click post title to read more...

Windows themes for xubuntu 13.10.

Nice Xfce4 themes for Xubuntu 13.10. Lubuntu XP theme: http://xfce-look.org/content/show.php/Lubuntu+XP+three+flavors?content=162880. A Windows XP styled theme for Lubuntu. Windows 8 mouse cursor theme: http://xfce-look.org/content/show.php/Win8E?content=160758. Vista styled Xfce4 theme: http://xfce-look.org/content/show.php/Vista+Royale?content=59665. Matthew Farrell’s Theme 1.0: http://xfce-look.org/content/show.php/Matthew+Farrell%27s+Theme?content=99669. A nice theme that may be used with Xfce4 that looks like Matthew Farrel`s theme from Die Hard 4.0. Wallpapers. Beautiful Amanita […]

Click post title to read more...

Some miscellaneous Linux commands for the desktop user.

Find all files larger than 1 megabyte in a directory. find . -maxdepth 1 -type f -size +1M -printf “%f:%s\n” | sort -t”:” -k2 Search a file for a certain string. grep “hello” my.txt Get the hostname from an IP address. Homer@bejiitas – $ ipcalc -h 74.125.237.194/24 HOSTNAME=google.com Use wildcards on the command line to […]

Click post title to read more...

Some more useful UNIX commands available for the Mac.

There are a few very useful UNIX commands available on the Apple Macintosh. Mountain Lion is what I am using in Virtualbox and I am having a look at some very useful shell commands and tips. The iostat command. This shows statistics of disk Input/Output. Homers-iMac:Documents homer$ iostat disk0 disk1 cpu load average KB/t tps […]

Click post title to read more...

Goat Simulator coming to Linux and Macintosh soon! The mayhem will never stop!

The massively popular game Goat Simulator will be coming to Linux and Macintosh in a indeterminate time. This means that Linux users could enjoy this awesome sandbox game. Goat Simulator is a game where you play as an invincible Goat and you cause all kinds of mayhem in a suburban area. Powered by the Unreal […]

Click post title to read more...

Linux tips and tricks for all users.