Skip to content

Instantly share code, notes, and snippets.

View Gerg's full-sized avatar

Greg Cobb Gerg

View GitHub Profile
@Gerg
Gerg / README.md
Last active August 29, 2015 13:56

Git Pair Timeout

Simple pre-commit hook to block commits if you haven't paired in the last 9 hours.

Setup

  1. Add the correct path to your .gitconfig file on line 5
  2. Put the script in your repo's .git/hooks/ directory
Acknowledgments

Built at Pivotal Labs

@Gerg
Gerg / README.md
Last active August 29, 2015 13:56
Example Custom Jasmine Matchers

Example Custom Jasmine Matchers

Note: Some matchers require underscore.js and/or jQuery.

General Purpose Matchers

  • toHaveElement
  • toContainText
  • toContainTranslation
  • toHaveLength
@Gerg
Gerg / README.md
Last active August 29, 2015 13:56
Set HipChat display name when using Git-Pair

Git Pair + HipChat

This script makes your git pair automatically update the display name for your workstation's HipChat account.

Dependencies

  1. You need a (HipChat)[https://www.hipchat.com/] account for each workstation
  2. You need to have (git pair)[https://github.com/pivotal/git_scripts] set up

Setup

  1. Install hipchat-api gem gem install hipchat-api