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
1. install brew | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
2. | |
export PATH=/usr/local/bin:/usr/local/sbin:$PATH | |
3. install python | |
brew install python | |
4. | |
export PATH=/usr/local/share/python:$PATH | |
5. virtualenv virtualenvwrapper | |
pip install virtualenv virtualenvwrapper |
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
from fabric.api import * | |
""" | |
Base configuration | |
""" | |
env.project_name = '$(project)' | |
env.database_password = '$(db_password)' | |
env.site_media_prefix = "site_media" | |
env.admin_media_prefix = "admin_media" | |
env.newsapps_media_prefix = "na_media" |
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
1. | |
pip install nodeenv | |
2. | |
nodeenv -p | |
3. | |
npm install -g yo grunt-cli bower | |
4. or | |
npm install -g bower grunt-cli |
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
1. Install bower | |
npm install -g bower grunt-cli | |
2. Install foundation | |
gem install foundation | |
3. Create new project | |
foundation new <myproject path> && cd <myproject path> | |
4. Using bower | |
bower install foundation --allow-root | |
5. compass watch |
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
1. install rvm stable | |
\curl -sSL https://get.rvm.io | bash -s stable --ruby | |
2. edit $HOME/.bash_profile | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" | |
3. source | |
source ~/.rvm/scripts/rvm | |
commands | |
rvm list rubies |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" | |
content="text/html; charset=utf-8" /> | |
<script src="jquery-1.7.2.min.js" ></script> | |
<script src="handlebars-1.0.0.beta.6.js" ></script> | |
<script src="underscore-min.js" ></script> | |
<script src="backbone-min.js" ></script> |
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
aptitude update | |
aptitude upgrade | |
aptitude dist-upgrade | |
aptitude autoclean | |
aptitude install vim | |
aptitude install sudo | |
aptitude install curl | |
aptitude install ufw | |
passwd # change password | |
adduser # example demoUSer |
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
ifdef VERBOSE | |
Q = | |
E = @true | |
else | |
Q = @ | |
E = @echo | |
endif | |
CFILES := $(shell find src -mindepth 1 -maxdepth 4 -name "*.c") | |
CXXFILES := $(shell find src -mindepth 1 -maxdepth 4 -name "*.cpp") |
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
. | |
├── Gruntfile.js | |
├── README.md | |
├── app | |
│ ├── assets | |
│ │ ├── app.css | |
│ │ └── app.js | |
│ ├── font | |
│ │ ├── FontAwesome.otf | |
│ │ ├── font |
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
// Load the TCP Library | |
net = require('net'); | |
// Keep track of the chat clients | |
var clients = []; | |
// Start a TCP Server | |
net.createServer(function (socket) { | |
// Identify this client |
OlderNewer