Skip to content

Instantly share code, notes, and snippets.

@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
@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

Ubuntu 12.10 setup (rbenv/RVM, Janus, PostgreSQL)

Basic pre-requisites

  • Some utilities:
sudo apt-get install vim tmux git curl
  • Copy/paste from the command line:
@fluxsaas
fluxsaas / chef_solo_bootstrap.sh
Created June 2, 2012 08:22 — forked from ryanb/chef_solo_bootstrap.sh
Bootstrap Chef Solo
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
tar -xvzf ruby-1.9.3-p125.tar.gz
cd ruby-1.9.3-p125/
./configure --prefix=/usr/local
make
make install
@fluxsaas
fluxsaas / gist:1206102
Created September 9, 2011 12:38 — forked from lightyrs/gist:1108708
lion rails 3 setup
# 2011-07-25
#
# Mac OS X 10.7
# Xcode 4.1
# Install Lion.
# Xcode
# Download Xcode from Mac App Store.