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 | |
| # Bump the version of the current git project | |
| # | |
| # Installation instructions: copy to /usr/local/bin/git-bump-version and set | |
| # permissions to 0755. | |
| # | |
| # Author: Scott Woods <scott@westarete.com> | |
| # Ref: https://gist.github.com/woods/7424599 | |
| require 'rubygems' |
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
| # Use the "hub" wrapper for git (https://github.com/defunkt/hub) | |
| eval "$(hub alias -s)" | |
| # Enable autocomplete for built in git functions | |
| source ~/.git-completion.sh | |
| # git aliases. Add new ones to the bottom of ~/.git-completion.bash to enable | |
| # autocomplete. | |
| alias ga='git add' | |
| alias gap='git add -p' |
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 | |
| # | |
| # When a machine is on a dynamic IP address cable modem, we use this script to | |
| # periodically update DNS with the current record. | |
| # | |
| # Keep the contents of this file secret, since it contains the domain's API | |
| # key. The ID of the record to be updated by hovering over it in DNSimple's | |
| # web interface. | |
| IP_ADDRESS="`curl -s http://icanhazip.com/`" |
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 | |
| # | |
| # Since paig is on a dynamic IP address cable modem, we use this script to | |
| # periodically update DNS with the current record. In this case, we're using | |
| # the hostname paig.2surfers.com. | |
| # | |
| # Keep the contents of this file secret, since it contains the domain's API | |
| # key. The ID of the record to be updated by hovering over it in DNSimple's | |
| # web interface. |
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 | |
| # This script will clean out old capistrano releases from a set of | |
| # subdirectories, but will keep a minimum number. It's designed to be run as | |
| # a cron job. | |
| # | |
| # (c) Copyright 2008 West Arete Computing, Inc. | |
| require 'date' | |
| 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
| Exception | |
| NoMemoryError | |
| ScriptError | |
| LoadError | |
| NotImplementedError | |
| SyntaxError | |
| SignalException | |
| Interrupt | |
| StandardError | |
| ArgumentError |
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
| en: | |
| helpers: | |
| label: | |
| payment: | |
| first_name: First Name | |
| last_name: Last Name | |
| email: Email | |
| company: Company | |
| card_number: Credit Card Number | |
| card_expiration_date: Expiration Date |
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
| # git aliases. Add new ones to the bottom of ~/.git-completion.bash to enable | |
| # autocomplete. | |
| alias ga='git add' | |
| alias gap='git add -p' | |
| alias gau='git add -u' | |
| alias gb='git branch' | |
| alias gc='git commit -v' | |
| alias gca='git commit -a -v' | |
| alias gco='git checkout' | |
| alias gd='git diff' |
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
| module GoogleMapsHelper | |
| # Returns a URL to use in an iframe for embedding a Google map | |
| # Reference: http://asnsblues.blogspot.com/2011/11/google-maps-query-string-parameters.html | |
| def google_maps_embed_url(address) | |
| "#{google_maps_url(address)}&output=embed" | |
| end | |
| # Returns a URL to use for linking to a Google map | |
| # Reference: http://asnsblues.blogspot.com/2011/11/google-maps-query-string-parameters.html |