This file contains hidden or 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 nssocket = require('nssocket'); | |
| var client = new nssocket.NsSocket(); | |
| client.on('start', function () { | |
| console.log('connected'); | |
| }); | |
| client.on('close', function () { | |
| console.log('disconnected'); | |
| }); |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| ssh ubuntu@n.n.n.n "bash -s -x" -- <ixgbevf-upgrade.sh |
This file contains hidden or 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
| .text-shadow (@string: 0 1px 3px rgba(0, 0, 0, 0.25)) { | |
| text-shadow: @string; | |
| } | |
| .box-shadow (@string) { | |
| -webkit-box-shadow: @string; | |
| -moz-box-shadow: @string; | |
| box-shadow: @string; | |
| } |
This file contains hidden or 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; | |
| ----------------------------------------------------------------------------- | |
This file contains hidden or 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 hidden or 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 |