Skip to content

Instantly share code, notes, and snippets.

View shogo82148's full-sized avatar
🏠
Working from home

ICHINOSE Shogo shogo82148

🏠
Working from home
View GitHub Profile
@shogo82148
shogo82148 / gist:4005784
Created November 3, 2012 03:56
Linux等のメッセージを自由に変えるスクリプト
#!/bin/sh
# -*- coding: utf-8 -*-
# .moファイルのあるディレクトリ。適宜変えてください。
LOCALE_DIR='/usr/share/locale'
LOCALE='ja'
backup_dir="`pwd`/mo_backup"
pattern_file=''
@shogo82148
shogo82148 / gist:3214667
Created July 31, 2012 07:50 — forked from mzp/gist:1131618
git-master
#!/bin/sh
MASTER=${1:-"master"}
WORKING_BRANCH=`git branch -l | grep "*" | cut -d " " -f 2`
git rebase $MASTER && git checkout $MASTER && git reset --hard $WORKING_BRANCH && git branch -D $WORKING_BRANCH