Requirements:
- hub (https://github.com/github/hub)
- copy
git-pull-reqinto/usr/local/bin
Usage:
git co -b my-branch
git commit -a "My commit"
| dscacheutil -flushcache |
| # -*- encoding : utf-8 -*- | |
| # Because Capybara.app gets run by Thin in a separate thread, errors raised in | |
| # the application during request_specs get hidden and just show up in the | |
| # selenium-controller browser as 500 errors with no extra info. This module | |
| # helps us dig into those errors. | |
| module RequestSpecs | |
| module ExceptionHelper | |
| @@last_exception = nil |
| ack | |
| binutils | |
| colordiff | |
| coreutils | |
| curl | |
| curl-ca-bundle | |
| ffmpeg | |
| ffmpegthumbnailer | |
| findutils | |
| git |
| PROMPT='%{$fg[grey]%}%n@%m %{$fg[green]%}%~%{$reset_color%}$(__git_ps1) %{$fg[green]%}$%{$reset_color%} ' | |
| ZSH_THEME_GIT_PROMPT_PREFIX="(" | |
| ZSH_THEME_GIT_PROMPT_SUFFIX=") " |
| * Get rid of default gems: turbolinks, uglifier | |
| * Replace require 'rails/all' with specific railties | |
| * Add lib to autoload path: `config.autoload_paths += %W(#{config.root}/lib)` | |
| * Replace default railties | |
| * Add some other gems |
| # This prevents capistrano from hanging when executing long tasks | |
| # /etc/ssh/sshd_config | |
| TCPKeepAlive yes | |
| ClientAliveInterval 15 | |
| ClientAliveCountMax 5 | |
| # Restart sshd |
Requirements:
git-pull-req into /usr/local/binUsage:
git co -b my-branch
git commit -a "My commit"
| class SimpleExceptionHandler < I18n::ExceptionHandler | |
| def self.call(exception, locale, key, options) | |
| if exception.is_a?(I18n::MissingTranslation) | |
| exception.keys.last.to_s.gsub('_', ' ').gsub(/\b('?[a-z])/) { $1.capitalize } | |
| else | |
| super | |
| end | |
| end | |
| end |
| file { "/home/${username}/.ssh/authorized_keys": | |
| mode => 644, | |
| owner => $username, | |
| group => $username, | |
| source => "https://github.com/knoopx.keys" | |
| } |
| git new release # creates a new release branch (release/X.Y.Z) from the latest tagged version incrementing minor version from upstream's integration branch | |
| git new release --bump major # creates a new release branch (release/X.Y.Z) from the latest tagged version incrementing major version | |
| git new feature branch-name # creates a new feature branch (feature/branch-name) from upstream's integration branch | |
| git new hotfix branch-name # creates a new hotfix branch (hotfix/branch-name) from upstream's stable branch |