Journey of Life
April 26, 2013
Text to ASCII Art
›
Under Linux, use the program "figlet" to turn regular text info a ASCII art text. Example: figlet hello _ _ _ | ...
April 10, 2013
Fix: vim indent not working
›
If you loaded a new indent file or syntax file under ~/.vim/ and it is not taking effect, make sure you have the following line in your ~/.v...
April 1, 2013
how to mount vdi
›
First install lvm2, ndb and qemu-common packages: Code yum install lvm2 nbd qemu-common Then run this to load the nbd modu...
March 29, 2013
tip: embed raw text in html
›
it's become somewhat au courant to use the "type" attribute to mark <script> blocks that you don't want to be e...
March 20, 2013
California LLC taxs and fees
›
For California LLC not treated as corporation: Annual tax of $800 is paid in the tax year by 04/15 with form 3522 . LLC fee ...
March 15, 2013
php one line udp client
›
socket_sendto(socket_create(AF_INET, SOCK_DGRAM, SOL_UDP), $raw_post_data, strlen($raw_post_data), 0, '127.0.0.1', 57000); The abo...
March 6, 2013
Excel 2003 useful shortcuts
›
Ctrl-1: Open Cell Format Dialog shift +space: select row ctrl + -: delete row. ctrl + +: Insert a row (above the c...
March 1, 2013
clean up diff file
›
The following program take a diff file and removes chunks that are simply different by a white spaces or carriages returns, such as int fu...
February 27, 2013
vimdiff ignore empty lines
›
Add this to the end of your .vimrc file to make vimdiff ignore empty lines: set diffopt+=iwhite set diffexpr=MyDiff() function MyDiff()...
1 comment:
February 25, 2013
Thinkpad T530 Ctrl-Alt-Break for Remote Desktop Full Screen
›
Thinkpad T530 does not have the "break" key. Use "Fn-Alt-B" will generate "Break" key code. So to send Ctrl-...
February 8, 2013
diff ignore files only in one directory
›
diff -bBur old_dir/ new_dir/ | grep -v "^Only in" > my.diff
February 5, 2013
How to add a upstart task on RHEL6
›
Suppose the application you want to start is called myapp. Become root and create a file under /etc/init/myapp.conf start on stopped rc...
January 20, 2013
So Cal lakes that allow bow fishing
›
El Capitan Sutherland Otay San Vicente Hodges Lakes Already Approved: Elsinore Big Bear Cachuma Hemet (with strict regulations)
January 14, 2013
uml and console job control
›
I started uml with my host debian file system: ./linux rootfstype=hostfs rw init=/home/tzhang/uml/init-uml.sh mem=64M TERM=linux eth0=tun...
January 13, 2013
uml with minimal debian
›
Build kernel: 1. get kernel 2. make ARCH=um defconfig 3. make ARCH=um menuconfig ; to remove options you don't need 4. make -j 12...
January 8, 2013
SQL Server 2008 can't login with newly created user
›
SQL Server was not configured to allow mixed authentication. Here are steps to fix: Right-click on SQL Server instance at root of O...
1 comment:
December 27, 2012
putty and gnu screen scroll back with mouse
›
Summary: add the line to your .screenrc file: termcapinfo xterm ti@:te@ Reference ( Putty FAQ ) PuTTY's terminal emulat...
November 30, 2012
run as user in inittab or init
›
Sometimes sudo -u USERNAME gives error. You can try to to use su USERNAME -c "COMMAND" instead.
November 28, 2012
Start screen after sudo su to another user
›
Sudo'ing to a user then running screen doesn't work out of the box. Typically you get the following error: Cannot open your t...
November 26, 2012
Creating a self-signed certificate with ADT
›
http://help.adobe.com/en_US/air/build/WS5b3ccc516d4fbf351e63e3d118666ade46-7f74.html You can use self-signed certificates to produce a v...
‹
›
Home
View web version