Table of Contents generated with DocToc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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} |
- Save this file to
repo-path/.git/hookswith the nameprepare-commit-msg. - Make it executable using
chmod +x. - 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
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!)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export PS1='\[\e[35m\]\u\[\e[37m\]@\[\e[32m\]\h: \[\e[36m\]\w\[\e[33m\] $(__git_ps1 "(%s)") \[\e[31m\]\$\[\e[0m\] ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class CountrySinginCougar | |
| name: 'something trashy' | |
| grammys: 0, | |
| isSluttyEnoughForGrammys: false, | |
| inwardPersonalityTraits: ['depressed','horny'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body { | |
| padding: 20px; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /**********************************************/ | |
| /* | |
| /* 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/ | |
| /* |
NewerOlder