$ touch circleci.sh
$ vim circleci.sh
i
alias branch='git symbolic-ref --short HEAD' | |
alias upstream='git push --set-upstream origin $(echo $(branch))' | |
# use | |
# cd some_project | |
# upstream |
ignore() { | |
echo "\n$1" >>.gitignore | |
echo "added $1 to .gitignore" | |
} | |
# use | |
# ignore .DS_STORE |
grep -rnw './' -e '//TODO:' |
curl "https://api.github.com/users/username/repos?per_page=100" | grep -o 'git@[^"]*' | sed "s/.git//g" | sed "s/github.com://g" |
repos=( | |
"user/repo" | |
"user/repo1" | |
"user/repo2" | |
) | |
for i in "${repos[@]}" | |
do | |
: | |
curl -XDELETE -H 'Authorization: token yourtokenhere' "https://api.github.com/repos/$i "; |
$ touch circleci.sh
$ vim circleci.sh
i
git clone $@ && cd `echo $@ | sed "s/.git//g" | sed "s/.*\///g"` && rm -rf .git && git init |
PACKAGE_VERSION=$(cat package.json | grep '"version":' | awk -F: '{ print $2 }' | sed 's/[",]//g' | sed 's/[ ,]//g') |
brew list > brew-list.txt | |
brew uninstall $(cat brew-list.txt) | |
brew install $(cat brew-list.txt) |