This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AD": { | |
"label": "Andorra", | |
"units": [ | |
{ | |
"code": "AD-07", | |
"label": "Escut d'Andorra la Vella.svg Andorra la Vella" | |
}, | |
{ | |
"code": "AD-02", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install ntp | |
sudo nano /etc/ntp.conf | |
logfile /var/log/xntpd | |
driftfile /var/lib/ntp/ntp.drift | |
statsdir /var/log/ntpstats/ | |
statistics loopstats peerstats clockstats | |
filegen loopstats file loopstats type day enable | |
filegen peerstats file peerstats type day enable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Collections] | |
each - error or no return; | |
map - return transformed values in array; | |
filter - return those that has passed; | |
reject - removes the values that have passed; | |
reduce - returns one value based on array values; | |
detect - returns first passed; | |
sortBy - returns sorted by a numeric value; | |
some - return true if one satisfies iterator; | |
every - return true if all satisfies iterator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd dropbox | |
find . -type f -name "* conflicted *" -exec rm -f {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var createTable = { | |
TableName: 'STRING_VALUE', /* required */ | |
ProvisionedThroughput: { /* required */ | |
ReadCapacityUnits: 0, /* required */ | |
WriteCapacityUnits: 0 /* required */ | |
}, | |
KeySchema: [ /* required */ | |
{AttributeName: 'STRING_VALUE', KeyType: 'HASH | RANGE'}, /* required */ | |
/* more items */ | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dd if=/dev/zero of=/swapfile1 bs=1024 count=524288 | |
mkswap /swapfile1 | |
chown root:root /swapfile1 | |
chmod 0600 /swapfile1 | |
swapon /swapfile1 | |
nano /etc/fstab | |
----------------------------------------------------------------------------- | |
/swapfile1 swap swap defaults 0 0 | |
----------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update | |
apt-get upgrade | |
apt-get install vim make g++ openjdk-7-jdk tomcat7 fastjar unzip | |
cd /usr/share/tomcat7/lib/ | |
----------------------------------------------------------------------------- | |
jar xf catalina.jar org/apache/catalina/util/ServerInfo.properties | |
server.info=Apache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install vim redis-server | |
vim /etc/redis/redis.conf | |
----------------------------------------------------------------------------- | |
bind 0.0.0.0 | |
----------------------------------------------------------------------------- | |
appendonly yes | |
----------------------------------------------------------------------------- | |
vim /etc/sysctl.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install vim python g++ make checkinstall | |
src=$(mktemp -d) && cd $src | |
wget -N http://nodejs.org/dist/node-latest.tar.gz | |
tar xzvf node-latest.tar.gz && cd node-v* | |
./configure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install vim nginx php5-fpm php5-xcache | |
php5-sqlite sqlite3 | |
php5-mysql mysql-server mysql-client | |
vim /etc/nginx/nginx.conf | |
----------------------------------------------------------------------------- | |
server_tokens off; | |
----------------------------------------------------------------------------- | |