Skip to content

Instantly share code, notes, and snippets.

@fluxsaas
fluxsaas / flightplan.coffee
Created July 14, 2014 08:51
example flightplan.coffee
# flightplan.js
Flightplan = require("flightplan")
plan = new Flightplan()
release_number = new Date().getTime()
application = 'backbone_stage'
deploy_to = "/var/www/#{application}/current"
releases_dir = "/var/www/#{application}/releases"
@fluxsaas
fluxsaas / server.js
Created August 18, 2014 06:51
Node server for Backbone app with push state and redirects to Rails-API
// Server to foreward ajax requests
// http://stackoverflow.com/questions/7559862/proxy-with-nodejs-and-express/20539239#20539239
// http://stackoverflow.com/questions/10435407/proxy-with-express-js
var express = require('express'),
request = require('request'),
path = require('path'),
app = express(),
cson = require('cson'),
modRewrite = require('connect-modrewrite'),
@fluxsaas
fluxsaas / bump-version.sh
Last active January 25, 2017 07:09 — forked from pete-otaqui/bumpversion.sh
Bump a software project's VERSION, add the CHANGES, and commit with GIT. Works with GIT FLOW
#!/bin/bash
# FORK:
# this version is modified to work with git flow:
# develop$ git flow release start 3.5.6
# release/3.5.6$ ./bump-version.sh
# release/3.5.6$ git flow release finish 3.5.6 -m "finish up release 3.5.6"
# Thanks goes to @pete-otaqui for the initial gist:
# https://gist.github.com/pete-otaqui/4188238
@fluxsaas
fluxsaas / index-01-plugins.html
Created August 15, 2017 06:30
index-01-plugins.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>PLUGINS</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
</head>
<body>
<h1 id="hello-world">HELLO WORLD!</h1>
<button id="change-it">greet</button>
@fluxsaas
fluxsaas / s3.sh
Created January 20, 2018 21:12 — forked from chrismdp/s3.sh
Uploading to S3 in 18 lines of Shell (used to upload builds for http://soltrader.net)
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine
# This is how I upload my new Sol Trader builds (http://soltrader.net)
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash
S3KEY="my aws key"
S3SECRET="my aws secret" # pass these in
function putS3
{
path=$1