Create a folder to store the databases :
mkdir -p /usr/share/GeoIP
Download Country IP database
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
gunzip GeoIP.dat.gz
# | |
# Reboot into recovery mode (cmd +r ) and in the terminal | |
# | |
nvram boot-args="serverperfmode=1 ncl=262144" | |
#reboot | |
# | |
# In regular mode |
Create a folder to store the databases :
mkdir -p /usr/share/GeoIP
Download Country IP database
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
gunzip GeoIP.dat.gz
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
; Sample supervisor config file. | |
[unix_http_server] | |
file=/tmp/supervisor.sock ; (the path to the socket file) | |
;chmod=0700 ; sockef file mode (default 0700) | |
;chown=nobody:nogroup ; socket file uid:gid owner | |
;username=user ; (default is no username (open server)) | |
;password=123 ; (default is no password (open server)) | |
;[inet_http_server] ; inet (TCP) server disabled by default |
#!/bin/bash | |
echo "*****************************************" | |
echo " Based on information from Google" | |
echo " http://dev.chromium.org/spdy/spdy-best-practices" | |
echo "*****************************************" | |
sudo su | |
yum –y update | |
echo "*****************************************" | |
echo " Changing initcwnd and initrwnd" | |
echo " Step 1: check route settings." |
> console.log(new Buffer("Hello World").toString('base64')); | |
SGVsbG8gV29ybGQ= | |
> console.log(new Buffer("SGVsbG8gV29ybGQ=", 'base64').toString('ascii')) | |
Hello World |
https://kernelnewbies.org/OutreachyfirstpatchSetup?action=show&redirect=OPWfirstpatchSetup |
sudo apt-get install git-core build-essential autoconf automake libtool libncurses5 libncurses5-dev make libjpeg-dev pkg-config unixodbc unixodbc-dev zlib1g-dev libcurl4-openssl-dev libexpat1-dev libssl-dev libtiff4-dev libx11-dev unixodbc-dev python2.7-dev zlib1g-dev libzrtpcpp-dev libasound2-dev libogg-dev libvorbis-dev libperl-dev libgdbm-dev libdb-dev python-dev uuid-dev bison autoconf g++ libncurses-dev |
# line format | |
# id(int,auto) setid(int) destination(string) flags(int) priority(int) attrs(string) description(string) | |
1 sip:10.0.0.9:5060 | |
1 sip:10.0.0.10:5060 |
#!/usr/bin/env node | |
// ./generatelookup -l lookupkey -p somekey* -a attribute | |
var redis = require('redis').createClient(); | |
var async = require('async'); | |
var opt = require('optimist'); | |
opt.usage('$0 -l lookup -p pattern -a attribute'); | |
opt.demand(['l', 'p', 'a']); | |
var argv = opt.argv; | |
var iter = '0'; |