Journey of Life

May 9, 2013

hg serve multiple projects

›
To use "hg serve" to serve multiple project internally (with your LAN). Create a file named webconf (it can be any name) with the ...
May 8, 2013

shrew vpn masquerade on Linux

›
Once your have your VPN client running on a Linux box, sometimes you would like to share that link with that machines on your LAN (either ph...

shrew vpn client on Linux for Cisco Concentrator

›
To talk to a Cisco VPN Concentrator, one can use "vpnc" or "shrew vpn client". My vpnc only stays up for a few hours, ...
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...
‹
›
Home
View web version
Powered by Blogger.