Skip to content

Instantly share code, notes, and snippets.

View cameronpickham's full-sized avatar
😈

Cameron Pickham cameronpickham

😈
View GitHub Profile
@cameronpickham
cameronpickham / keybase.md
Created November 1, 2017 17:34
Keybase Proof

Keybase proof

I hereby claim:

  • I am cameronpickham on github.
  • I am infinitas (https://keybase.io/infinitas) on keybase.
  • I have a public key ASDGhl3Vmm7Oo9-N-NrxPvdRDItkmtucRksSuVxZWPOE3Qo

To claim this, I am signing this object:

#!/bin/bash
# Must pass in name of app to kill
if [ -z $1 ] ; then exit 0 ; fi
# Get PID
pid=$(ps aux | grep "bin/$1" | grep -v grep | awk '{print $2}')
# Make sure it found one
if [ -z $pid ] ; then exit 0 ; fi