apm instal \
aligner \
atom-beautify \
autoclose-html \
autocomplete-paths \
color-picker \
editorconfig \
file-icons \
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
# Put .bashrc_ps1 in your home (~/) and at the end of your .bashrc add follow lines: | |
# if [ -f ~/.bashrc_ps1 ]; then | |
# . ~/.bashrc_ps1 | |
# fi | |
RED='\[\e[0;31m\]' | |
BRED='\[\e[1;31m\]' | |
BLUE='\[\e[0;34m\]' | |
BBLUE='\[\e[1;34m\]' | |
CYAN='\[\e[0;36m\]' |
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
# Sublime package NVM node path configuration | |
# Save this file in: | |
# ~/.config/sublime-text-2/Packages/node_env.py | |
import os | |
os.environ["PATH"] = "/home/joao/.nvm/v0.10.2/bin:/home/joao/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" | |
print "PATH=" + os.environ["PATH"] |
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 lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>SoundCloud OAuth 2 User Agent Authentication Flow Demo</title> | |
<script type="text/javascript" charset="utf-8" src="javascript/jquery-1.4.2.js"></script> | |
<script type="text/javascript" charset="utf-8"> | |
$(function () { | |
var extractToken = function(hash) { |
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> | |
<header> | |
<title>Dev tools</title> | |
</header> | |
<body> | |
<h1>Dev tools</h1> | |
<div data-scope="main"></div> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script> | |
<script type="text/javascript" src="socket.io.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
var express = require('express'), | |
app = express(), | |
port = process.argv[2] || process.env.PORT || 9000, | |
webroot = process.argv[3] || process.env.WEBROOT || './demo'; | |
app | |
.use(express.bodyParser()) | |
.use(express.cookieParser()) | |
.use(app.router) | |
.use(express.static(__dirname + '/' + webroot)) | |
.listen(port, function () { console.log('Demo is running on: http://localhost:' + port); }); |
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
#!/bin/bash | |
EXITCODE="0" | |
SERVICES=( | |
"memcached &" | |
"mongod &" | |
"redis-server &" | |
"neo4j start" | |
"elasticsearch" |
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
#!/bin/bash | |
function infinite_progress { | |
$* 2> /dev/null | |
} | |
function verify_dependencies { | |
local DEPS="" | |
local PACKAGES=$1 | |
for PACKAGE in $PACKAGES ; do |
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
# local env. | |
$ export COUCH_HOST=https://xxx.couchdb.com | |
$ export COUCH_PORT=xxx | |
$ export COUCH_USERNAME=xxx | |
$ export COUCH_PASSWORD=xxx | |
$ export COUCH_DATABASE=xxx | |
# cloud env. | |
$ heroku config:add COUCH_HOST=https://xxx.couchdb.com | |
$ heroku config:add COUCH_PORT=xxx |
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
alias ls="ls -G" | |
# alias mysql=/usr/local/mysql/bin/mysql | |
# alias mysqladmin=/usr/local/mysql/bin/mysqladmin | |
export PATH=$PATH:$HOME/bin | |
# export PATH=$PATH:/usr/local/mongodb/bin | |
# export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH | |
### Added by the Heroku Toolbelt |