Skip to content

Instantly share code, notes, and snippets.

Kevin Pheasey kpheasey

Block or report user

Report or block kpheasey

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
hunleyd /
Last active Nov 21, 2017
PostgreSQL management script for homebrew slotted installs
# is the version requested installed?
brew ls --version postgresql@${wanted_ver} &>/dev/null
if [[ $? -eq 0 ]] ; then
# yes, carry on
moski / before_symlink.rb
Last active Jan 10, 2018
How to integrate rollbar with AWS opsworks
View before_symlink.rb
kpheasey /
Last active Jan 31, 2018
DO Ubuntu 14.04 Droplet to ARK Server
# Updating Ubunut
echo "updating ubunutu... please be patient"
apt-get update && apt-get upgrade -y
echo "installing required packages... please be patient"
apt-get install htop lib32gcc1 -y
# Create steam user if needed
gcarrion-gfrmedia / 0000_packages.config
Created Apr 29, 2014
AWS Elastic Beanstalk Ruby 2.0/Puma Environment - .ebextensions tweaks and Sidekiq configuration. This is known to work fine with AWS Elastic Beanstalk 's 64bit Amazon Linux 2014.03 v1.0.1 running Ruby 2.0 (Puma) stack. Later stack versions might not work, but for that specific version works fine.
View 0000_packages.config
# Install Git needed for Git based gems
git: []
grenade /
Last active Mar 28, 2020
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "" -f ~/.ssh/mozilla_rsa
goldsky / transformKeys.php
Created Aug 16, 2012
Convert under_score type array's keys to camelCase type array's keys and likewise
View transformKeys.php
* Convert under_score type array's keys to camelCase type array's keys
* @param array $array array to convert
* @param array $arrayHolder parent array holder for recursive array
* @return array camelCase array
public function camelCaseKeys($array, $arrayHolder = array()) {
$camelCaseArray = !empty($arrayHolder) ? $arrayHolder : array();
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
You can’t perform that action at this time.