Skip to content

Instantly share code, notes, and snippets.

Avatar

Verachad Wongsawangtham VerachadW

View GitHub Profile
@VerachadW
VerachadW / android_drawable_importer.sh
Created Sep 25, 2015
Script for import drawable with 'ic_' prefix
View android_drawable_importer.sh
#!/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 Jun 5, 2017
Git cleanup local branches without when remote is gone.
View gist:8079e8ab8e9324395e7c
# 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"
You can’t perform that action at this time.