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
| function getTimestamp () { | |
| var date = new Date(); | |
| var year = date.getFullYear(); | |
| var month = (date.getMonth() + 1) + ''; | |
| var day = date.getDate() + ''; | |
| var hr = date.getHours() + ''; | |
| var min = date.getMinutes() + ''; | |
| var sec = date.getSeconds() + ''; | |
| var ms = date.getMilliseconds() + ''; |
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
| vim /etc/timezone | |
| ----------------------------------------------------------------------------- | |
| Asia/Manila | |
| ----------------------------------------------------------------------------- | |
| export TZ=Asia/Manila |
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 sockjs = require('sockjs'); | |
| var server = require('http').Server(); | |
| var socket = sockjs.createServer({sockjs_url: 'https://cdnjs.cloudflare.com/ajax/libs/sockjs-client/0.3.4/sockjs.min.js'}); | |
| socket.on('connection', function (conn) { | |
| console.log('new connection id:' + conn.id); | |
| conn.on('close', function () { | |
| console.log('connection closed id:' + conn.id); | |
| }); |
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
| vim /etc/ssh/sshd_config | |
| # Change Port 22 to a number you prefer | |
| # Reboot machine |
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
| 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 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 |
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 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
| .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
| ssh ubuntu@n.n.n.n "bash -s -x" -- <ixgbevf-upgrade.sh |