Journey of Life
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...
Download older version of flex SDK
›
http://blogs.adobe.com/flex/files/2012/05/FlexLicense.swf
November 10, 2012
netcat/ncat server file as a web server
›
I will use the ncat (part of nmap) tool: 1. first create a bash file with the following contents, and save it as nchttp.sh, and chmod+x o...
November 9, 2012
Faster ssh X11 Forwarding
›
I use ssh daily to connect to my servers and laptops around my home office. Most of the time I'm using ssh to login and build softwar...
November 7, 2012
php mail() function data flow
›
php mail() called /usr/sbin/sendmail, which may be a symbolic link to exit4 or sendmail.postfix or whatever sendmail "MTA" install...
November 6, 2012
Build and install python and mercurial from scratch on a system
›
wget http://www.python.org/ftp/python/2.5.4/Python-2.5.4.tgz wget http://www.selenic.com/mercurial/release/mercurial-1.2.1.tar.gz tar zxvf ...
November 2, 2012
When running configure, “.infig.status: error: cannot find input file:” error was generated:
›
This appears to be caused by by having DOS style line endings in the configure script. You should be able to use the dos2unix command or a...
November 1, 2012
linux console get image size
›
On linux console, if you need to get an image size, and imagemagick is not installed, you can use the following script (save it as "get...
2 comments:
October 30, 2012
Windows 8 and Ubuntu 12.10 dual boot issue
›
I recently bought a HP Envy dv4 laptop for work. It came with Windows 8, and I wanted to install Ubuntu 12.10 Server on it. Here is the prob...
‹
›
Home
View web version