Oracle: Remove locks from a table
If you get this error message when trying to alter or drop table or modify data in a table: ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired…
XTerm + TTF fonts + UTF8 + Chinese (Double Sized) Characters
Here I will show you how to configure XTerm so that it uses nice TTF fonts, uses UTF8 encoding, and shows Chinese characters (or any Unicode characters, for that matter).…
Online gcc compiler
http://www.tutorialspoint.com/codingground.htm Online gcc compiler, IDE, shells, etc.
Auto input SSH passwords
Many people try all different ways, but it seems SSH is implemented so secure that, even if you want to be unsecure a bit, it will not allow you to…
Write your first Linux Kernel module
http://www.linuxvoice.com/be-a-kernel-hacker/
ssh: check if passwordless login has been setup
To check if passwordless login (using keys) has been setup simply run the following command: ssh -o BatchMode=yes <user>@<host> true For example: ssh -o BatchMode=yes user@192.168.1.101 true And examine the…
Online (and offline) shell scripts checker
http://www.shellcheck.net/ The code: https://github.com/koalaman/shellcheck
Easily parse GCC version
Of course, everybody knows 'gcc --version' option to check gcc version, but output is quite verbose and is not easy to parse and use in scripts. Luckily, gcc has option…
Creating core dump files in Linux
Sometimes your programs crash and you need to do "postmortem" analysis (another case is that someones else's program crashes and you need to send them core dump file), for that…