Skip to content

Instantly share code, notes, and snippets.

View bushong1's full-sized avatar

Charles Bushong bushong1

View GitHub Profile

Keybase proof

I hereby claim:

  • I am bushong1 on github.
  • I am charlesbushong (https://keybase.io/charlesbushong) on keybase.
  • I have a public key whose fingerprint is F770 07AF 538B 48F9 BF1B 4672 6A1E 5661 6626 23F0

To claim this, I am signing this object:

@bushong1
bushong1 / Bowerfile
Created October 23, 2015 01:27
shine through chapter 6
asset 'bootstrap-sass-official'
asset 'angular', '~> 1.4'
#asset 'angular-mocks'
@bushong1
bushong1 / git.sh
Last active August 29, 2015 14:15
Git submodule management
#add new dependency
cd github-mirror
git submodule add <url/ssh> <namespace>/<project-name>/<branch>
cd <namespace>/<project-name>/<branch>
git checkout <branch>
cd ..
git add <branch>
git commit -m "Adding <namespace>/<project-name>/<branch>"
cd <branch>
@bushong1
bushong1 / npmdeps.sh
Last active August 29, 2015 14:14
Determine full npm dependencies of a node.js package.
#Add to .bashrc
#Usage: npmdeps <package>[@<version>]
function npmdeps {
regex="^[- |]*$"
regex_space="^ *$"
regex_github="github\.com"
if [[ "$1" =~ $regex ]]; then
return
else
DEPS=`npm info $1 dependencies|perl -0777 -pe 's/^.*{//gs'|perl -0777 -pe 's/}.*$//gs'| sed "s/[\{\}' ]//g" | sed 's/, \?/\n/g' | sed "s/:/@/g"`
@bushong1
bushong1 / .gitconfig
Created December 23, 2014 21:48
Charles' gitconfig lg
[alias]
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = !"git lg1"
[color]
ui = auto