Skip to content

Instantly share code, notes, and snippets.

View mhaylock's full-sized avatar

Mark Haylock mhaylock

  • abitofthought.com
  • Christchurch, New Zealand
View GitHub Profile
/* This is a FluidApp userscript for Google Inbox for Mac.
Includes options for total badge count and unread badge count.
1) You need the paid version of FluidApp (http://fluidapp.com/)
2) Point Fluid to https://inbox.google.com (I recommend the icon from here: https://medium.com/@chrismessina/create-an-icon-for-google-inbox-in-your-dock-ed269312e3bc)
3) Set the user-agent to Chrome
4) Go to window -> userscript and add click the plus sign under the first table (on the left). Name the item 'Inbox'.
5) In the second table (on the right) click the plus and type in "*inbox.google.com*".
6) Paste the contents of this document into the script area below that.
7) Configure badge count (for total or unread only) in the code below.
@mhaylock
mhaylock / gist:b7b83911d779f4b351da
Last active August 29, 2015 14:02
Cleaning up old branches from a Git repo
# Update local remote refs, and delete all local remote refs that have been
# deleted on Github:
$ git fetch -p
# Switch to a primary branch (i.e. 'api' or 'master'), you will use this branch
# to find all merged branches that you will delete:
$ git checkout api