Journey of Life
May 6, 2015
hg change history
›
hg rebase , hg histedit , hg graft , hg strip , hg strip --keep , and hg commit --amend .
April 30, 2015
vim ctags tags path
›
This line in your ~/.vimrc should help: set tags=./tags,tags;$HOME It tells Vim to look for a tags file in the directory of the current...
April 27, 2015
golang win32 UI
›
https://github.com/lxn/walk OR https://github.com/AllenDang/gform OR https://github.com/andlabs/ui
April 23, 2015
USB terms
›
In the USB world, the most basic data transfer is done in packet, but to understand the on-the-wire protocol, there are other things to unde...
April 22, 2015
prevent ssh client timeout
›
Add this in /etc/ssh/ssh_config for Linux and ~/.ssh/config for Mac: Host * ServerAliveInterval 120
linux cp without overwrite
›
You can use "-n" option. If you are on a embedded linux box with busybox, it does not have that option. You can this instead: ...
April 16, 2015
Vim show C function name
›
Put this in your .vimrc file, and use key "f" to show current function name: fun! ShowFuncName() let lnum = line("....
April 15, 2015
golang combine static data (css/js/images/) with binary file
›
https://github.com/tiebingzhang/statik (zip the contents and compiled it into go source code, very small code base, this is a github fork w...
April 14, 2015
script to detected unused C files
›
If you have a large project with a lot of C files, once you compiled them, you will end up with a lot of .o files. Then you can use the .o f...
March 12, 2015
cmake add include path and library path
›
Some tips for cMake beginners. This is done on Linux. How to use cMake cmake generates a bunch of intermediate files, including the fina...
March 11, 2015
AT&T Data plan web page
›
https://buyasession.att.com
Linux running 4G LTE modem
›
The modem I have is Sierra Wireless Air Prime MC7453 Mini PCI Express Module. The carrier I tested is AT&T. Before running on Linux, ...
6 comments:
March 5, 2015
How to get Linux USB Report Descriptor when it says UNAVAILABLE
›
Start by plugging in your USB device and running dmesg to get the kernel output for the event. It will look something like this: input: ...
Patch Linux kernel to support Esterline Medigenic keyboard
›
The Esterline Medigenic keyboard does not work under stock Linux kernel (as of kernel version 4.0RC). This is because the HID Report Descrip...
memdump function in kernel
›
void memdump(unsigned char *rdesc, int *rsize){ int i,pos=0; unsigned char outbuf[256]; printk(KERN_WARNING "rsize=%d\n...
March 3, 2015
replace systemd with a simple busybox inittab
›
1. install busybox 2. create file /etc/inittab with the following content: # Start "rc init" on boot ::sysinit:/opt/rc init #...
February 26, 2015
Golang parse xml simple example
›
package main import ( "encoding/xml" "fmt" ) func main() { type Email struct { ...
February 23, 2015
Asynchronous PHP port scanner on Windows
›
The following PHP code scans IP range 192.168.204.200 to 192.168.204.254 port 443 in 5 seconds. It's tested on Windows with PHP 5.3, wit...
PHP asynchronous host scanner on Windows
›
The following PHP code scans IP range 192.168.5.1-192.168.5.254 in 3 seconds and returns the reachable hosts. <?php $timeout=3; func...
February 18, 2015
use stunnel for ssl proxy
›
stunnel.conf: (this setup one server and one client instance) debug = 3 #foreground = yes pid = [server] client = no cert= ./se...
‹
›
Home
View web version