Skip to content

Instantly share code, notes, and snippets.

View mtmcfarl's full-sized avatar

Matthew McFarling mtmcfarl

View GitHub Profile
@mtmcfarl
mtmcfarl / rbenv-ruby187-highsierra.sh
Created June 21, 2018 19:31 — forked from yatsu/rbenv-ruby187-macos.sh
Install ruby-1.8.7 with rbenv on macOS High Sierra (10.13)
#!/bin/sh
# 1) Install HomeBrew
# 2) brew install openssl [email protected] rbenv
# 3) Setup rbenv
CC=gcc-4.9 \
CFLAGS="-O2 -fno-tree-dce -fno-optimize-sibling-calls -I$(brew --prefix openssl)/include" \
LDFLAGS="-L$(brew --prefix openssl)/lib" \
rbenv install 1.8.7-p375
@mtmcfarl
mtmcfarl / clean-up-boot-partition-ubuntu.md
Created April 27, 2018 14:55 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
@mtmcfarl
mtmcfarl / unicorn.conf
Created October 17, 2015 12:38 — forked from witscher/unicorn.conf
Upstart script for unicorn, bundler and a user contained rvm installation
description "Unicorn"
# starting unicorn with bundler, and a user contained rvm:
start on filesystem or runlevel [2345]
stop on runlevel [!2345]
chdir /path/to/current