Skip to content

Instantly share code, notes, and snippets.

@jjhamshaw
jjhamshaw / open_xamarin.sh
Created February 1, 2016 16:13
open multiple instances of xamarin studio
open -n /Applications/Xamarin\ Studio.app
@jjhamshaw
jjhamshaw / delete local git branches.sh
Last active September 13, 2017 13:44
scripts to clean up local git branches for a given repository
# safe delete branches
# (deletes all MERGED branches, except dev and master)
git branch --merged | grep -v "\*" | grep -v master | grep -v dev | xargs -n 1 git branch -d
# delete branches
# (deletes all branches, except dev and master)
git branch | grep -v "\*" | grep -v master | grep -v dev | xargs -n 1 git branch -D
@jjhamshaw
jjhamshaw / etl-runner.js
Created August 17, 2017 16:36
Conceptual idea
import async from 'async';
export default class ETLRunner {
constructor(extractor, transformer, loader) {
this.extractor = extractor;
this.transformer = transformer;
this.loader = loader;
}
extract(callback) {
@jjhamshaw
jjhamshaw / docker postgres connection.sh
Created September 5, 2017 14:43
connect to your docker postgres container and run psql, without having to specify a container name or ID
docker exec -it $(docker ps -q --filter "name=postgres") psql -U postgres

Keybase proof

I hereby claim:

  • I am jjhamshaw on github.
  • I am iamhamsure (https://keybase.io/iamhamsure) on keybase.
  • I have a public key ASAw55bnCcIep3rHK-xFtBPomnfV1MDzWukpjW0oyYnoQwo

To claim this, I am signing this object: