Skip to content

Instantly share code, notes, and snippets.

l15n / Local Branches
Last active Apr 22, 2020 — forked from schacon/gist:942899
Delete all remote branches on your fork `mine` which have already been merged into upstream `origin/master`
View Local Branches
$ git branch --merged master |
grep -v '*' |
grep -v master |
xargs -L1 |
xargs git branch -d
l15n /
Created Jul 13, 2012 — forked from jasonrudolph/
List remote Git branches and the last commit's author and author date for each branch. Sort by most recent commit's author date.
# Credit
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ai %ar by %an" $branch | head -n 1` \\t$branch; done | sort -r
View devise.ja.yml
not_found: "は見つかりませんでした"
# not_found: "not found"
already_confirmed: "は既に登録済みです"
# already_confirmed: "was already confirmed"
not_locked: "は凍結されていません"
# not_locked: "was not locked"
l15n / gist:361852
Created Apr 10, 2010 — forked from wayneeseguin/gist:296055
rails3-beta on mput-heard with rvm gemset
View gist:361852
# This example shows how to setup an environment running Rails 3 beta2 under 1.9.2-head (mput) with a 'rails3' gem set.
∴ rvm update --head
# ((Open a new shell)) or do 'rvm reload'
# If you do not already have the ruby interpreter installed, install it:
∴ rvm install mput-head
# Switch to 1.9.2-head and gemset rails3, create if it doesn't exist.
∴ rvm --create use mput-head@rails3
View screen.rb
# Autotest::Screen is test result notify GNU Screen's statusline.
# === screenshots
# * <img src="" />
# * <img src="" />
# require 'autotest/screen'
# # Autotest::Screen.statusline = '%H %`%-w%{=b bw}%n %t%{-}%+w (your statusline)'
You can’t perform that action at this time.