Skip to content

Instantly share code, notes, and snippets.

View alexbbt's full-sized avatar

Alexander Bell-Towne alexbbt

View GitHub Profile
@alexbbt
alexbbt / gbd
Last active August 11, 2016 01:38
Interactive way to delete Git branches
#!/bin/bash
interactive=0
manual=0
list=0
branches=()
response=""
shouldDelete=0
function usage() {
@alexbbt
alexbbt / gbi
Created August 11, 2016 01:43
Interactive Git Branch Selector
#!/bin/bash
TITLE="Branch Selector"
MENU="Select a branch to checkout:"
OPTIONS=()
tempBranches=()
BRANCHES=()
eval "$(git for-each-ref --shell --format='tempBranches+=(%(refname))' refs/heads/)"

Keybase proof

I hereby claim:

  • I am alexbbt on github.
  • I am alexbbt (https://keybase.io/alexbbt) on keybase.
  • I have a public key ASBoeYS2vL0Bifhxcxtw_oFueJmnT5fI4Y0LNZo2pgDFpwo

To claim this, I am signing this object:

@alexbbt
alexbbt / requirements.txt
Last active June 1, 2018 23:49
Export slack messages in the same format as the standard slack export
Slacker
argparse
blueprint:
name: Control Closet Light with Double Sliding Doors and a Timeout
description: Control the light inside a closet with double doors and an optional timeout.
domain: automation
input:
controlling_door_sensors:
name: Doors
description: Door sensors, when any opens the light will turn on, when all are closed, the light will turn off.
selector:
entity: