Skip to content

Instantly share code, notes, and snippets.

View keithpitty's full-sized avatar

Keith Pitty keithpitty

View GitHub Profile
# 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
@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",
### 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 / 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
@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