Skip to content

Instantly share code, notes, and snippets.

Cameron Banga CameronBanga

Block or report user

Report or block CameronBanga

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
# Set a Date
NOW=$(date +"%F")
# The name to give you at the top of your text file.
# The author email set in your global git config.
author=$(git config --global
CameronBanga /
Created May 12, 2016
Quickly take a screenshot of an Android phone plugged into your Mac/Linux box
# need to install adb first, if you haven't
# brew install android-platform-tools
# then, save this script, chmod 750 it
# and easy get Android screens on your desktop
# note - this breaks when multiple Android devices
# are plugged into your computer
CameronBanga /
Created May 3, 2016
A quick and bad bash script to help Harry log an API.
## date format to log the time of the pull##
NOW=$(date +"%Y-%m-%d %H:%M:%S")
## change this to wherever you want your log stored
echo ""API pull at "$NOW" >> ~/Documents/API.txt
## update your curl here, obviously use same file
curl -X "GET" "" >> ~/Documents/API.txt
CameronBanga /
Last active Oct 7, 2015
Grep through Papertrail logs from Heroku to get quick stats on API hit success and failure rates.
echo "\`\`\`"
echo "Heroku API hit logs for "$FILE
echo ""

Keybase proof

I hereby claim:

  • I am cameronbanga on github.
  • I am cameron ( on keybase.
  • I have a public key whose fingerprint is 29BC A5FB 1E9B B796 1516 066F 99FF B7F3 B523 6BD8

To claim this, I am signing this object:

You can’t perform that action at this time.