Displaying keyword search results 1 - 10
Created by Dr. Xi on April 15, 2014 12:03:45 Last update: April 15, 2014 12:03:45
To show the file type identified by vim for the file you are currently editing, type " :set filetype " in vim command. From vim Help, this is how vim identifies file type:
Detail: The ":filetype on" command will load one o...
Created by Dr. Xi on April 15, 2014 11:32:50 Last update: April 15, 2014 11:32:50
You can set (shell) environment variables $VIM and $VIMRUNTIME and vim will honor them. But there are default values that vim takes if you don't set them. Here are some methods to find the default values. Enter :verson vim command. It displays all compilation flags used to compile vim, including "fall-back for $VIM". Enter :set runtimepath vim command (or shorthand :set rtp ) Run this command in shell:
vim -e -T dumb --cmd 'exe "set t_cm=\<C-M>"|echo $...
Created by voodoo on December 12, 2013 13:19:42 Last update: December 12, 2013 13:19:42
You can use the command locate to find files on a Linux box. For example, find libGL.so :
$ locate libGL.so
Created by Dr. Xi on September 24, 2013 15:01:38 Last update: September 24, 2013 15:01:38
Use od to hex-encode a binary string:
$ echo 0wj4wDU5EiZXLdQI5bJdrsLoienVCIaMZy6/VSrykAA...
Created by freyo on August 19, 2013 15:23:20 Last update: August 19, 2013 15:23:20
The route command was so hard to figure out. Here's how I did it by trial and error. Delete the existing gateway:
# ip route del allrepeat it if there's more than one line is displayed via " ip route show ". Add new route:
# ip route add default via 192.168.80.160 dev eth0Show the new route:
# ip route showOf course you need root to do this.
Created by magnum on January 06, 2013 20:15:00 Last update: April 05, 2013 09:59:12
$ nslookup www.google.com Server: 127.0.0.1 ...dig :
$ dig +noall +answer www.google.com www.google....host
$ host www.google.com www.google.com has addres...About the use of reverse DNS from webdnstools.com : Many things use reverse DNS. An example is anti-spam email software. Before delivering an email, it is common for anti-spam software to perform a reverse DNS lookup on the IP address of the source mail server. It then checks that the reverse DNS entry matches the SPF record provided by the name server of the source email domain. If it does not match, it may flag the email as spam.
Created by Dr. Xi on March 08, 2013 11:40:49 Last update: March 08, 2013 11:40:49
From Version Control with Subversion, Chapter 4. Branching and Merging In Subversion, a global revision number N names a tree in the repository: it's the way the repository looked after the N th commit. It's also the name of an implicit changeset: if you compare tree N with tree N-1 , you can derive the exact patch that was committed. For this reason, it's easy to think of revision N as not just a tree, but a changeset as well. If you use an issue tracker to manage bugs, you can use the revision numbers to refer to particular patches that fix bugs—for example, “this issue was fixed by r9238.” Somebody can then run svn log -r 9238 to read about the exact changeset that...
Created by Dr. Xi on February 13, 2013 19:40:08 Last update: February 13, 2013 19:40:08
According to MSDN : On Windows 7 and on Windows Server 2008 R2 with the Wireless LAN Service installed, the operating system installs a virtual device if a Hosted Network capable wireless adapter is present on the machine. This virtual device normally shows up in the "Network Connections Folder" as "Wireless Network Connection 2" with a Device Name of "Microsoft Virtual WiFi Miniport adapter" if the computer has a single wireless network adapter. This virtual device is used exclusively for performing software access point (SoftAP) connections. The lifetime of this virtual device is tied to the physical wireless adapter. If the physical wireless adapter is disabled, this virtual device will be removed as well. On Windows 7, there's no UI to start or stop SoftAP....
Created by woolf on November 26, 2012 20:54:07 Last update: November 26, 2012 20:54:07
Use the shortcut CTRL+ALT+T to bring up a terminal in Ubuntu.
Created by magnum on November 10, 2012 18:42:19 Last update: November 10, 2012 18:42:19
IFS : The Internal Field Separator that is used for word splitting after expansion and to split lines into words with the read builtin command. The default value is "<space><tab><newline>".
$ echo "$IFS" | cat -vte ^I$ $