Journey of Life
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...
December 14, 2015
RE: How to receive a million packets per second
›
https://blog.cloudflare.com/how-to-receive-a-million-packets/
rsyslogd dynamically create log file based on msg content
›
This is tested on a Ubuntu 10.04 system (should work on newer Ubuntu/Debian system too) 1. Create file /etc/rsyslog.d/30test.conf, with ...
December 2, 2015
dnsmasq with Ubuntu 14.04
›
To make it work, you may need to edit the file /etc/default/dnsmasq.conf and uncomment this line: IGNORE_RESOLVCONF=yes
November 25, 2015
jquery ajax error handling
›
$.ajax({ url: 'http://10.2.3.4/api/user', type: 'GET', dataType: 'json', success: function() { a...
›
PHP code to analyze an the section of the 8 empty boxes below and find out how many boxes (letters in the word) are there. In this case, it ...
November 24, 2015
use runit to manage user space daemons
›
In debian/Ubuntu, install "runit". then in /etc/service directory, create your user service directory. In this example, we use ...
bash get script directory
›
DIR=$(dirname "$(readlink -f "$0")") echo $DIR
Openwrt iptables add NFQUEUE support
›
opkg install kmod-nfnetlink_3.10.49-1_ar71xx.ipk opkg install kmod-nfnetlink-queue_3.10.49-1_ar71xx.ipk opkg install kmod-ipt-nfqueue_3.10...
November 17, 2015
How to solve: automake is missing on your system
›
rm aclocal.m4 automake and then do "./configure"
November 9, 2015
supervisord add new program
›
After adding new program in /etc/supervisord.conf, do: sudo supervisorctl reread sudo supervisorctl update This will make it run
November 3, 2015
apache .htaccess pass URI to PHP
›
1. enable mod_rewrite : a2enmod rewrite 2. enable .htaccess by adding the following to the enabled site conf file: <Directory ...
October 30, 2015
Use adcli to join Linux computer to a Windows Domain Controller
›
Setup: Domain: domain1.ncst.com The computer that runs Windows Server 2008 R2 and is the domain controller: WIN-HPTI079TSF6, or WIN-HPTI0...
October 26, 2015
The 3 Records you must know for good email delivery
›
The 3 Records you must know for good email delivery are: Reverse DNS (PTR) SPF (Sender Policy Framework) DKIM (DomainKeys Identified Mai...
1 comment:
October 20, 2015
gvim on Windows: how to set font to GB2312
›
The Windows version of VIM that I am using is the Win-32 console and OLE GVIM flavor. Assuming you took the defaults during the install...
October 17, 2015
Ubunut 14.04 install Strongswan IKE2 for Windows 7
›
1. sudo apt-get install strongswan strongswan-plugin-eap-mschapv2 2. generate certificates using the following commands (change vpn.exampl...
October 9, 2015
strongswan load test on ubuntu 14.04
›
Getting strongswan load test to run on 14.04. Mostly from this post on the mailing list: https://lists.strongswan.org/pipermail/users/201...
ubuntu 14.04 strongswan not logging
›
It turns out that ubuntu uses "AppArmor" to limit where strongswan can write files. You can install apparmor-utils and use the com...
October 8, 2015
openssl client TLS version
›
https://wiki.openssl.org/index.php/SSL/TLS_Client
‹
›
Home
View web version