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
| # | |
| # Runs two blocks in parallel, yielding a barrier to each for | |
| # synchronization. The barrier may be called multiple times in each | |
| # block to establish multiple synchronization points. | |
| # | |
| # parallel do | |
| # process do |barrier| | |
| # ... | |
| # barrier.call | |
| # ... |
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
| #!/usr/bin/env ruby | |
| # | |
| # Run redis-server with settings taken from the command line. | |
| # | |
| # Source: https://gist.github.com/929513 | |
| # | |
| require 'optparse' | |
| require 'fileutils' |
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/sh | |
| ###################################################################### | |
| # | |
| # switch_bundler_environment OLD-BRANCH NEW-BRANCH | |
| # | |
| # Swap out the old branch's Bundler environment, and swaps in the new | |
| # branch's. Arguments may be branch names or SHAs. | |
| # | |
| # For best results, add this to .git/hooks/post-checkout: |
NewerOlder