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
#install required packages | |
apt-get update | |
apt-get upgrade -y | |
apt-get install -y git curl build-essential libssl-dev libcurl4-openssl-dev nodejs | |
#install sqlite3 (optional) | |
apt-get install libsqlite3-dev sqlite3 | |
#install postgres (optional) | |
sudo apt-get install postlibpq-dev |
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
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({"/Users/xav/code/karma-bro-proxyquireify/node_modules/proxyquireify/index.js":[function(require,module,exports){ | |
'use strict'; | |
function ProxyquireifyError(msg) { | |
this.name = 'ProxyquireifyError'; | |
Error.captureStackTrace(this, ProxyquireifyError); | |
this.message = msg || 'An error occurred inside proxyquireify.'; | |
} | |
function validateArguments(request, stubs) { |
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
set $front_port "9000"; | |
set $front_host "10.0.2.2"; | |
location @proxy_to_front { | |
proxy_set_header Host $http_host; | |
proxy_redirect off; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Protocol $scheme; | |
rewrite ^/app(.*) $1 break; |
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
#!/usr/bin/env sh | |
# | |
# You can change the version by passing the "VERSION" environment variable | |
# eg, env VERSION=0.10 sh node_nvm.sh | |
# | |
: ${VERSION:="stable"} | |
echo |
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
#!/usr/bin/env bash | |
shopt -s expand_aliases | |
curl_mock() { | |
local success | |
[ "$1" == "success" ] && success=0 || success=1 | |
shift | |
if [ $success -eq 0 ]; then |
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
with_subshell() | |
( | |
local_var="I'm local" | |
) | |
with_subshell | |
echo "$local_var" |
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
App.AuthenticatedRoute = Ember.Mixin.create({ | |
beforeModel: function () { | |
var isUserConnected = false; | |
if (!isUserConnected) { | |
throw new Error('Fail'); | |
} | |
} | |
}); | |
App.IndexRoute = Ember.Route.extend(App.AuthenticatedRoute, { |
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
NAME=droplet_name #Use your own | |
tugboat create $NAME | |
tugboat wait $NAME | |
DO_IP=`tugboat info $NAME | grep IP | cut -f 2 -d : | xargs` | |
echo "$DO_IP $NAME.droplet" | sudo tee -a /etc/hosts |
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
# gqs <-> git quick squash | |
# | |
# Rebases from the branch passed in argument | |
# Squashes the commits on top of it | |
# | |
# example: gqs origin/master | |
# | |
function gqs () { | |
local branch=$1 | |
git fetch > /dev/null |
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
dependencies: | |
pre: | |
- ln -s ~/.pyenv/versions/3.3.2/bin/python3.3 $VIRTUAL_ENV/bin | |
- ln -s ~/.pyenv/versions/3.4.1/bin/python3.4 $VIRTUAL_ENV/bin |
OlderNewer