Skip to content

Instantly share code, notes, and snippets.

View keithpitty's full-sized avatar

Keith Pitty keithpitty

View GitHub Profile
@keithpitty
keithpitty / tmux-ngrok.md
Last active December 15, 2023 16:24
Pairing with tmux and ngrok

Steps for Remote Pairing using tmux and ngrok

The following steps facilitate remote pairing using:

  • tmux which allows terminal sessions to be attached to different terminals, and
  • ngrok which provides secure tunnels to your localhost

1. Install tmux

OS X: brew install tmux

@keithpitty
keithpitty / cleanup_branches
Created October 11, 2015 23:19
Script to cleanup old local git branches
#!/bin/bash
echo "Deleting the following branches that have been merged into master:"
git branch --merge master | grep -v "\* master"
git branch --merge master | grep -v "\* master" | xargs -n 1 git branch -d
### Keybase proof
I hereby claim:
* I am keithpitty on github.
* I am keithpitty (https://keybase.io/keithpitty) on keybase.
* I have a public key whose fingerprint is BA16 B1B1 CE7A 067E 2334 1495 394A 7A64 3DCF 6481
To claim this, I am signing this object:
@keithpitty
keithpitty / projections.json
Last active August 29, 2015 14:03
An example of config/projections.json to support :Rj* vim commands
{
"app/assets/javascripts/re-student/app.coffee": {
"command": "jini"
},
"app/assets/javascripts/re-student/store.coffee": {
"command": "jstore"
},
"app/assets/javascripts/re-student/models/*.coffee": {
"command": "jmodel",
"alternate": "spec/javascripts/models/%s_spec.js.coffee",
# License
#
# Copyright (c) 2010 Tim Lucas <[email protected]>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF

Dear kind yet obviously ignorant sir,

This is Keith's 17 year old daughter. It is clear to me that in order to make such an outrageous and misinformed statement, you must be unaware of both the physical and mental requirements of equestrian sports, including dressage.

a) First and foremost, the Olympic Games by definition is an international athletic competition. If the gruelling equestrian discipline of dressage was NOT a sport, it would not have held a place in the Olympics since 1912.

b) Olympic-level dressage is considered to be the highest level of training and education that a horse can achieve - like any other sport, decades of effort and determination are put into attaining such a high level of performance - of BOTH horse AND rider!

c) Both horse and rider are athletes, not one without the other. Equestrian sports come down to teamwork - both horse and rider need to be equally as good in order to place and progress. Is soccer not a sport because you have teammates helping you? Were the recipients

@keithpitty
keithpitty / Install brew and git.md
Created June 23, 2011 00:37
Instructions for installing brew and git
keithpitt = RubyHacker.with_attributes({
performs_magic_tricks: true,
beard_profile: 'recently nearly removed it by accident',
perth_resident_status: 'recently moved there',
open_source_contributor_status: 'awesome'
})
keithpitty = RubyHacker.with_attributes({
performs_magic_tricks: false,
beard_profile: 'first grew a beard before keithpitt was born',
# order.rb
# == Schema Information
#
# Table name: orders
#
# id :integer(11) not null, primary key
# date_ordered :date
class Order < ActiveRecord::Base
I'm having some difficulties installing rubies with rvm. Even though I had no problems installing 1.9.1,
all my attempts to install 1.8.6 or 1.8.7 have failed with compile errors associated with readline.
After my attempts with rvm install 1.8.x failed, I tried the suggestions in
http://rvm.beginrescueend.com/troubleshooting/ to no avail. So I've tried:
> rvm install 1.8.x
> rvm install 1.8.x -C --enable-shared=yes,--with-readline-dir=/usr/local