Journey of Life
May 12, 2016
meaing of strspn and strcspn
›
strspn(char * hay, char *charlist) Search for a "span" of string that contains entirely of characters in the charlist. spn stands...
May 9, 2016
Example code of IPv4 and IPv6 using FREEBIND and IP_TRANSPARENT socket options to send packets using a non-local IP address
›
http://lists.openwall.net/netdev/2011/11/02/4 Use IP_PKTINFO to set the source IP address if you do not bind it to a particular addre...
May 3, 2016
openwrt build howto
›
https://wiki.openwrt.org/doc/howto/build https://wiki.openwrt.org/doc/faq/development
April 28, 2016
customize golang tls listener
›
How ListenAndServeTLS works in Golang it creates a struct of http.Server type, and then calls the server.ListenAndServe metho...
April 22, 2016
ipset netlink data structure
›
header: \x4c\x00 \x00\x00 total length \x09\x06 type=09 CMD_ADD \x05\x02 flags:0x0205 request/ack/return-all-matching \xbb\x83\x1a\x57 se...
April 7, 2016
curl test api
›
In curl, use "--data-urlencode" to encode data use "-G" to send data in "GET" instead of "POST". ...
April 6, 2016
Amazon Route 53 simple PHP command line tool
›
http://www.orderingdisorder.com/aws/route-53/
March 23, 2016
no trusted RSA public key found, strongswan, IKEv2
›
My setup: Linux running strongswan server, 5.3, latest version. Client is iPhone iOS 9.2 Trying to setup IKEv2 with certificate authent...
4 comments:
linuc iptables, NAT and bridge interface
›
There are some issues using Linux iptables, bridge interface and NAT together. See details from the blog: http://www.woitasen.com.ar/2011/...
March 7, 2016
supervisor add new a process
›
after adding the process.conf file in /etc/supervisor/conf.d/, run: supervisorctl reread supervisorctl update http://www.onurguzel.com/...
March 4, 2016
nmap test ciphers of remote server
›
nmap --script ssl-enum-ciphers -p 443 your-test-site.com
February 24, 2016
dokuwiki remove register link on top page
›
lib/tpl/dokuwiki/tpl_header.php, search for "register" and comment out the line.
February 9, 2016
Simplifying your network with a bridge - Making an FIOs ActionTec MI424-WR a Network Bridge
›
http://www.hanselman.com/blog/SimplifyingYourNetworkWithABridgeMakingAnFIOsActionTecMI424WRANetworkBridge.aspx
Start your own DOCSIS lab
›
To setup a DOCSIS Lab you'll need: - 1x CMTS ( no it's not possible to use a Linux based PC convert into a Cable router. Ok? We cl...
January 23, 2016
.vimrc edti binary files in hex mode
›
Add the following to your ~/.vimrc file, and vim will be able to edit *.bin, *.exe, and *.o files in HEX mode: if has ("autocmd"...
January 14, 2016
lsyncd.conf file
›
settings = { delay = 0.1, maxProcesses = 3, logfile = "/tmp/lsyncd.log", } targetlist = ...
Xbox one firewall ports
›
Here is what we actually need to make this work. protocol port direction DNS UDP 53 outbound if you don’t have DNS services...
January 13, 2016
travel agents to buy international tickets
›
飞翔旅游 SBP Travel 951-200-3308 909-614-4648 626-275-2811 619-209-7736 ...
December 31, 2015
php code to normalize US phone number
›
This is the power of regex Source: http://stackoverflow.com/questions/4708248/formatting-phone-numbers-in-php This is a US phone formatt...
December 15, 2015
Linux routing based on IPtables MARK
›
http://www.linuxhorizon.ro/iproute2.html Backup: This page is a small HOWTO about the advanced linux routing... First of all let me tel...
‹
›
Home
View web version