Skip to content

Instantly share code, notes, and snippets.

View VerachadW's full-sized avatar

Verachad Wongsawangtham VerachadW

  • Fastwork
  • Bangkok, Thailand
View GitHub Profile
@VerachadW
VerachadW / android_drawable_importer.sh
Created September 25, 2015 04:08
Script for import drawable with 'ic_' prefix
#!/bin/sh
display_usage() {
echo "Usage: ./drawable_importer [src_path] [dest_path]"
}
if [ -z "$1" ]; then
echo "src path is not supplied"
display_usage
exit 1
fi
@VerachadW
VerachadW / gist:8079e8ab8e9324395e7c
Last active June 5, 2017 04:01
Git cleanup local branches without when remote is gone.
# Original from http://stackoverflow.com/questions/17983068/delete-local-git-branches-after-deleting-them-on-the-remote-repo
delete-no-remote = "!git fetch --all -p; git branch -vv | grep \": gone]\" | awk '{ print $1 }' | xargs -n 1 git branch -D"