Journey of Life
September 28, 2018
A great tool to generate pretty postman doc from postman Json file
›
https://github.com/aubm/postmanerator Golang-based, generates beautiful HTML api document!
July 28, 2018
›
How to use Netlink to get ipv6 neighbors 1. open netlink socket 2. send request to get neighbors 3. parse the response The response is i...
June 27, 2018
ipv6 allocation and purpose
›
http://www.cidr-report.org/v6/as2.0/reserved-ipv6.html
March 31, 2018
CAVEAT: golang uint to string conversion
›
In golang, you can cast a "uint8" value to "string". Be aware that if the uint8 x <= 127, string(x) is the ASCI...
November 28, 2017
Thoughts on cloud server testing
›
Cloud service can be treated like a control system, which takes input and produces output. Control system has two characteristics: Control...
November 14, 2017
How to install pnp4nagios on ubuntu 16.04
›
This is for Redhat, but it's close enough: https://linuxhowtoguide.blogspot.com/2017/03/how-to-install-and-configure-pnp4nagios.html
October 31, 2017
Good Documentation on SO_REUSEADDR
›
https://stackoverflow.com/questions/14388706/socket-options-so-reuseaddr-and-so-reuseport-how-do-they-differ-do-they-mean-t
September 27, 2017
run X program headless in Linux
›
On remote server: 1. run "xvfb-run xterm" (replace xterm with your program). The runs a virtual frame-buffer/X server. The defaul...
September 25, 2017
Linux L2tp client setup for Mac OS X vpn server
›
Instructions below are based on the work at https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/clients.md#linux Commands must be ru...
September 12, 2017
Compile GoLang for AR9341
›
Golang support for MIPS 32 has been added since version 1.8. However, Soft FPU is not added, making chipsets like AR9341 not able to run Go ...
July 31, 2017
automatically set gnu screen window title
›
http://scie.nti.st/2008/8/19/1-minute-post-hostname-as-screen-window-title/ In short, add this line to the remote host's .bashrc: [ ...
July 20, 2017
Setting ssh server to an user to only SFTP to the user's home directory
›
Here is a guide for setting up SFTP users who’s access is restricted to their home directory. Add the following to the end of the /...
July 14, 2017
Great post on jffs2 loop mount and endian issue
›
https://integriography.wordpress.com/2015/03/16/mounting-a-jffs2-dd-image-in-linux/
June 15, 2017
xxd reverse with an offset
›
When using xxd to reverse a hex dump file, if you hexdump file has a non-0 offset like this: bc000000: 01 02 03 04 05 06 07 08 ........ ...
May 17, 2017
ios command line console log viewing
›
use " idevice_id --list " to list the UUIDs. use "deviceconsole" to actually view the logs deviceconsole -u <UUID...
May 16, 2017
unbrick TPLINK Archer C7 V2 (2017-05 from Amazon)
›
I bricked my Archer C7 v2 with bad configuration. TFTP boot didn't work for me. It turned out that the product id doesn't match. ...
May 11, 2017
socket buffer size
›
To find the current socket buffer size: getsockopt(fdsocket,SOL_SOCKET,SO_RCVBUF,(void *)&n, &m); getsockopt(fdsocket,SOL_SOC...
May 8, 2017
FreeBSD recompile kernel
›
Download: ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/amd64/10.3-RELEASE/src.txz untar this to /usr/src Go to the kernel source di...
FreeBSD dump current kernel config
›
config -x /boot/kernel/kernel
May 2, 2017
Adding swap to your VM
›
sudo fallocate -l 1G /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile sudo swapon --show echo '/swapfile n...
‹
›
Home
View web version