Skip to content

Instantly share code, notes, and snippets.

View OpenSourceAlchemist's full-sized avatar

Kevin Berry OpenSourceAlchemist

View GitHub Profile
@OpenSourceAlchemist
OpenSourceAlchemist / update-images.sh
Last active March 13, 2017 23:45 — forked from ColinLeverger/update-images.sh
Update all Docker images
docker image list | grep -v REPOSITORY | awk '{print $1}' | xargs -L1 docker image pull
@OpenSourceAlchemist
OpenSourceAlchemist / gist:3eac141e80caf2a027b16b2fccd8c2cf
Last active February 8, 2017 02:16
RVM install when the installer is broken
Thanks to @PhenomHTPC for pointing me at this
Navigate to your home directory.
curl -sSL https://github.com/rvm/rvm/tarball/stable -o ~/rvm-stable.tar.gz
mkdir ~/rvm && cd ~/rvm && tar --strip-components=1 -xzf ~/rvm-stable.tar.gz
./install
Profit
@OpenSourceAlchemist
OpenSourceAlchemist / tmuxrc
Created February 22, 2016 13:43
tmux like screen
set-option -g prefix C-a
unbind-key C-b
bind-key a send-prefix
bind-key C-a last
@OpenSourceAlchemist
OpenSourceAlchemist / unicorn_supervisor.sh.erb
Last active February 5, 2016 13:36
A sample unicorn supervisor script.
#!/bin/bash
# This is a helper script you can use to supervise unicorn, it allows you to perform a live restart
# by sending it a USR2 signal
LOCAL_WEB="http://127.0.0.1:<%= @unicorn_port %>/"
function on_exit()
{
kill $UNICORN_PID
@OpenSourceAlchemist
OpenSourceAlchemist / ruby.2.1.0-setup.sh
Last active August 29, 2015 13:57 — forked from mustafaturan/ruby.2.6.3-setup.sh
Update to current Ruby, Rubygems. Gain some platform independence.
#!/usr/bin/env bash
# repository
cd /tmp
wget http://dl.fedoraproject.org/pub/epel/6/`uname -i`/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6-8.noarch.rpm
# system update
yum -y update
yum -y groupinstall "Development Tools"
yum -y install libxslt-devel libyaml-devel libxml2-devel gdbm-devel libffi-devel zlib-devel openssl-devel libyaml-devel readline-devel curl-devel openssl-devel pcre-devel git memcached-devel valgrind-devel mysql-devel ImageMagick-devel ImageMagick