Saturday, December 31, 2005
Diff, Patch, and Friends
A quick tutorial on Diff and Patch. Another good HOWTO with more patching examples is here.
Sunday, December 11, 2005
Thursday, October 27, 2005
Arch for CVS Users | Linux Journal
Arch for CVS Users | Linux Journal
- tla register-archive http://www.lnx-bbc.org/arch
- tla get lnx-bbc-devel@zork.net--gar/lnx-bbc--stable
- tla update
- tla what-changed --diffs
- tla changes -o ,,my-illustrious-changes
Saturday, October 22, 2005
The HELL that find is!
Short tutorial on Linux find command.
- To remove all files named 'a.out' or '*.o' that have not been accessed for a week:
- find / \( -name a.out -o -name '*.o' \) -atime +7 -exec rm {} \;
- The rm command is executed once for each file.
- find / \( -name a.out -o -name '*.o' \) -atime +7 -exec rm {} +
- To find all files below the directory 'documents' that contain the regular expression 'string':
- find documents -type f -exec grep string {} +
- To find all files in the directory 'home', not descending into its subdirectories:
- find home ! -name home -prune
- To check whether the file 'diary' has been updated within the last two days; the name of the file is printed if true, and is not printed otherwise:
- find diary -prune -mtime -2
Wednesday, July 13, 2005
Saturday, April 30, 2005
Firefox 1.0+ Tab Switching
If you miss switching tabs with CTRL+1, CTRL+2 ... CTRL+N key combinations from Firefox Keyconfig extension. It lets you modify some (not all) default key bindings. It is also possible to create new keybindings. You can create new keybindings from the Keyconfig dialog (Tools->Keyconfig). Then enter the following code in the code box. After that press CTRL+1 in the key capture textbox.
/* CODE */
gBrowser.mTabContainer.selectedIndex=0;
Sunday, January 30, 2005
Linux Keyboard Mapping (Power Buttons)
power = 222, Sleep = 223, Wake up = 227
xmodmap output:
xmodmap output:
shift Shift_L (0x32), Shift_R (0x3e) lock Caps_Lock (0x42) control Control_L (0x25), Control_R (0x6d) mod1 Alt_L (0x40), Alt_L (0x7d), Meta_L (0x9c) mod2 Num_Lock (0x4d) mod3 mod4 Super_L (0x7f), Hyper_L (0x80) mod5 Mode_switch (0x5d), ISO_Level3_Shift (0x7c)
Linux Console Dumping
setterm -dump N will dump the contents of the screen of /dev/ttyN to a file screen.dump in the current directory.
Subscribe to:
Posts (Atom)