create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
#!/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: |
[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 |
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 |
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 |
/** | |
* 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 | |
* |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
Backbone.Notifications = {}; | |
_.extend(Backbone.Notifications, Backbone.Events); |
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