Skip to content

Instantly share code, notes, and snippets.

View alechill's full-sized avatar

Alec Hill alechill

View GitHub Profile
#!/bin/bash
BREW_GITHUB_REPO='https://github.com/Homebrew/homebrew-core'
FORMULA_NAME=${1}
# find formula version and coresponding commit hash at http://braumeister.org
FORMULA_COMMIT=${2}
brew install ${BREW_GITHUB_REPO}/raw/${FORMULA_COMMIT}/Formula/${FORMULA_NAME}.rb && brew pin ${FORMULA_NAME}
@alechill
alechill / README.md
Last active April 28, 2018 14:51 — forked from nathankleyn/README.md
Git commit message hook for automagically putting the ticket number and ticket URI in your commit messages.
  1. Save this file to repo-path/.git/hooks with the name prepare-commit-msg.
  2. Make it executable using chmod +x.
  3. Ultimate win every time you use git commit.

OR in repo directory...

curl https://gist.githubusercontent.com/alechill/499edbefb8d0142bae71/raw/a6d4b07edfc494c472e55b1e2fc190d1fc851876/prepare-commit-msg -o .git/hooks/prepare-commit-message && chmod +x .git/hooks/prepare-commit-message
@alechill
alechill / README.md
Last active December 10, 2015 15:23
Set up git prompt

Single liner script to fetch and setup the useful git-prompt and git-completion utilities with your bash profile prompt

To use:

  • Copy script, paste on command line, hit enter

Enjoy:

  • Pretty colours man
  • Clear directory path info
  • If in git controlled dir, the current branch name (yay!)
  • Hit tab when typing git commands to complete the commands, remotes, and branch names (soo goddamn yay!)
@alechill
alechill / prompt.sh
Created November 11, 2015 15:40
Set up command line prompt with git completion and highlighting
export PS1='\[\e[35m\]\u\[\e[37m\]@\[\e[32m\]\h: \[\e[36m\]\w\[\e[33m\] $(__git_ps1 "(%s)") \[\e[31m\]\$\[\e[0m\] '
@alechill
alechill / the_human_league.feature
Last active August 29, 2015 14:00
I was working as a developer in a tech startup, that much is true
@human-league
Feature: Ascertain if you were ever wanted in the 80's
@guy
Scenario: As an 80's icon, I would like to change your life, Baby
Given You were working as a "<job_title>" in a "<workplace>"
When I met you
And I picked you out
And I shook you up
And I turned you around
@alechill
alechill / countrySinginCougars.coffee
Created April 9, 2014 21:15
Gettin' clammy for a Grammy
class CountrySinginCougar
name: 'something trashy'
grammys: 0,
isSluttyEnoughForGrammys: false,
inwardPersonalityTraits: ['depressed','horny']
def do_i_feel_bad_for_you_son? (has_girl, problems)
feel_bad = false
(0..problems).each {|it| feel_bad = true if has_girl && it == (bitch = 1)}
feel_bad
end
do_i_feel_bad_for_you_son?(true, 99)
body {
padding: 20px;
}
@alechill
alechill / Custom.css
Created February 9, 2012 13:03 — forked from bentruyman/Custom.css
IR_Black Theme for Chrome Developer Tools
/**********************************************/
/*
/* IR_Black Skin by Ben Truyman - 2011
/*
/* Based on Todd Werth's IR_Black:
/* http://blog.toddwerth.com/entries/2
/*
/* Inspired by Darcy Clarke's blog post:
/* http://darcyclarke.me/design/skin-your-chrome-inspector/
/*