Skip to content

Instantly share code, notes, and snippets.

@webspectyler
webspectyler / post-commit
Last active October 11, 2015 05:08 — forked from brunohq/post-commit
git post-commit hook to update referenced task status in Asana amd FreshBooks with commit message
#!/bin/sh
apikey=$(git config user.asana-key)
if [ $apikey == '' ] ; then exit 0; fi
comment=$(git log --pretty=oneline -n1)
taskid_pattern='.*#([0-9]*).*'
if [[ $comment = ~$taskid_pattern ]]; then
taskid=${BASH_REMATCH[1]}
else
@webspectyler
webspectyler / gist:167671d01fbdba80976d99d62bfc9eae
Created June 13, 2016 14:02 — forked from craiggists/gist:2268146
SublimeText: Tab to move cursor out of parentheses, quotes, brackets
// Original by C0D312
// I added the single quote and curly brace to the regex.
// http://www.sublimetext.com/forum/viewtopic.php?f=3&t=5174
//
// Add the following to your user keybindings:
[
{ "keys": ["tab"], "command": "move", "args": {"by": "characters", "forward": true}, "context":
[
{ "key": "following_text", "operator": "regex_contains", "operand": "^[)}'\"\\]]", "match_all": true },