Skip to content

Instantly share code, notes, and snippets.

View willbowling's full-sized avatar

Will Bowling willbowling

  • Front End Consulting
  • Acworth, GA 30101
View GitHub Profile
@willbowling
willbowling / npm_installer.sh
Created April 14, 2015 16:00
Shell Script - npm installer
#!/bin/sh
# A word about this shell script:
#
# It must work everywhere, including on systems that lack
# a /bin/bash, map 'sh' to ksh, ksh97, bash, ash, or zsh,
# and potentially have either a posix shell or bourne
# shell living at /bin/sh.
#
# See this helpful document on writing portable shell scripts:
@willbowling
willbowling / .gitconfig
Created April 14, 2015 15:43
My gitconfig
[alias]
#pu = !"git fetch origin -v; git fetch upstream -v; git merge upstream/master"
last = cat-file commit HEAD
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
lsd = log --graph --decorate --pretty=oneline --abbrev-commit --all
exclude = !sh -c 'echo "$1" >> .git/info/exclude' -
# http://lukas.zapletalovi.com/2012/07/my-git-aliases-again.html
pu = pull
@willbowling
willbowling / rename-branch.sh
Last active August 29, 2015 14:18 — forked from lttlrck/gist:9628955
Git Rename Branch Locally and Remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@lttlrck
lttlrck / gist:9628955
Created March 18, 2014 20:34
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@willbowling
willbowling / annoying.js
Created August 9, 2012 15:29 — forked from Kilian/annoying.js
How to be an asshole
/**
* Annoying.js - How to be an asshole to your users
*
* DO NOT EVER, EVER USE THIS.
*
* Copyright (c) 2011 Kilian Valkhof (kilianvalkhof.com)
* Visit https://gist.github.com/767982 for more information and changelogs.
* Visit http://kilianvalkhof.com/2011/javascript/annoying-js-how-to-be-an-asshole/ for the introduction and weblog
* Check out https://gist.github.com/942745 if you want to annoy developer instead of visitors
*
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@berzniz
berzniz / gist:2045615
Created March 15, 2012 17:52
Adding a global notification system to backbone.js
Backbone.Notifications = {};
_.extend(Backbone.Notifications, Backbone.Events);
@qrush
qrush / Inconsolata-dz-Powerline.otf
Created January 11, 2012 16:50
vim-powerline patched fonts
@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@olivierlacan
olivierlacan / launch_sublime_from_terminal.markdown
Created September 5, 2011 15:50
Launch Sublime Text 2 from the Mac OS X Terminal

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl

You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html

Installation