Notes by voodoo

Displaying keyword search results 1 - 10
Created by voodoo on April 25, 2012 11:53:44    Last update: April 25, 2012 11:54:17
To find JSP files containing ' [0] ': grep -l '\[0]' src/main/webapp/WEB-INF/views/*.jsp or grep -l \\[0] src/main/webapp/WEB-INF/views/*.jsp
Created by voodoo on January 03, 2012 08:41:21    Last update: February 16, 2012 15:50:06
This is the command to print all regular files in the src folder but excluding all files within the .svn folders: $ find src -name .svn -prune -o -type f -print where -o is the or operator. Define a shortcut: ff () { find $1 -name .svn -prune -o -...
Created by voodoo on December 08, 2011 08:52:40    Last update: December 08, 2011 08:52:40
I don't know if there's a fool proof way to find out which Linux distro you are running on, but here are some ways you can try: cat /proc/version cat /etc/issue cat /etc/*release lsb_release -a Results on Ubuntu 11.10 oneiric: $ cat /proc/version Linux version 3.0.0-13-gene... Results on Red Hat Enterprise Server: $ cat /proc/version Linux version 2.6.18-128.1....
Created by voodoo on November 22, 2011 12:27:12    Last update: November 22, 2011 12:31:50
Unix hidden files are named starting with a dot ".". To find hidden files in the current directory: $ find . -type f -name '.*' or $ find . -type f | grep \\/\\. To find hidden files in the marketing directory: $ find marketing -type f -name '.*' or $ find marketing -type f | grep \\/\\.
Created by voodoo on July 14, 2010 23:37:46    Last update: November 16, 2011 12:00:33
Run gpedit.msc Find Administrative Templates -> Windows Components -> Terminal Services -> Limit Maximum color depth. Right click on "Limit maximum color depth", click "Properties", then select "Client Compatible". Update: for Windows 7 the color depth policy was moved to Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Remote Session Environment
Created by voodoo on August 20, 2011 14:02:12    Last update: August 20, 2011 14:02:12
To find the current version: $ sudo apt-cache search libdb To install: $ sudo apt-get install libdb4.6-dev Reading pac...
Created by voodoo on August 08, 2011 20:13:13    Last update: August 08, 2011 20:13:13
Find the package name: $ sudo apt-cache search pcre libpcre3 - Perl 5 ... Install the package: $ sudo apt-get install libpcre3-dev Reading pac...
Created by voodoo on June 14, 2011 15:16:30    Last update: June 14, 2011 15:18:18
Count the total number of lines of shell scripts (files ending with sh ): $ find . -type f -name \*.sh | xargs wc -l 2... Count the total number of lines for files under the src directory: find src -type f | xargs wc -l Count the total number of lines for files under the current directory whose path contains src/ : find . -type f -path \*src/\* | xargs wc -l
Created by voodoo on June 12, 2011 19:59:59    Last update: June 12, 2011 20:00:38
Three ways to find the Ubuntu version: $ cat /etc/issue Ubuntu 11.04 \n \l $ lsb_release -a No LSB modules are available. ... $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DIS...
Created by voodoo on February 25, 2011 14:00:41    Last update: February 25, 2011 14:03:46
Suddenly my Windows XP failed to boot with this error message on a blank screen: missing or corrupt <windows root>\system32\hal.dll I took out the hard drive, put it in a USB enclosure and attached it to another PC. Then I ran CHKDSK and it fixed some file system errors. But I did find that hal.dll was intact, so hal.dll was not missing or corrupt . It turned out that the file that was really missing was C:\boot.ini . It is a hidden file, so you have to use attrib boot.ini to see it. The file is missing if attrib boot.ini returns nothing (run in the root folder C:\). In my case I reconstructed the boot.ini file: [boot loader] timeout=30 default=multi(0)dis... and changed the attributes back...
Previous  1 2 Next