Skip to content

Instantly share code, notes, and snippets.

View carlware's full-sized avatar
🎯
Focusing

Carlos Ramirez carlware

🎯
Focusing
View GitHub Profile
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
@carlware
carlware / fabfile.py
Created February 17, 2014 21:51 — forked from gcollazo/fabfile.py
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"
1.
pip install nodeenv
2.
nodeenv -p
3.
npm install -g yo grunt-cli bower
4. or
npm install -g bower grunt-cli
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
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
<!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>
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
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")
.
├── Gruntfile.js
├── README.md
├── app
│   ├── assets
│   │   ├── app.css
│   │   └── app.js
│   ├── font
│   │   ├── FontAwesome.otf
│   │   ├── font
// 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