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
hunleyd / pg.sh
Last active Nov 21, 2017
PostgreSQL management script for homebrew slotted installs
View pg.sh
#!/bin/zsh
wanted_ver=$1
no_restart=
# is the version requested installed?
brew ls --version postgresql@${wanted_ver} &>/dev/null
if [[ $? -eq 0 ]] ; then
# yes, carry on
:
@moski
moski / before_symlink.rb
Last active Jan 10, 2018
How to integrate rollbar with AWS opsworks
View before_symlink.rb
@kpheasey
kpheasey / ark_instance.sh
Last active Jan 31, 2018
DO Ubuntu 14.04 Droplet to ARK Server
View ark_instance.sh
#!/bin/bash
# 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
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
packages:
yum:
git: []
@goldsky
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
<?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:

tmux

start new with session name:

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