For Homebrew v2.6.x and below:
brew cask install ngrok
For Homebrew v2.7.x and above:
# If you work with git, you've probably had that nagging sensation of not knowing what branch you are on. Worry no longer! | |
export PS1="\\w:\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)\$ " | |
# This will change your prompt to display not only your working directory but also your current git branch, if you have one. Pretty nifty! | |
# ~/code/web:beta_directory$ git checkout master | |
# Switched to branch "master" | |
# ~/code/web:master$ git checkout beta_directory | |
# Switched to branch "beta_directory" |
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |
/** | |
* Specific error parser for django-rest-framework errors structure | |
* Tested on django-rest-framework v2.3.13 | |
* Live example at http://jsbin.com/wiqumo | |
* | |
* Error structure examples: | |
* | |
* // The most simple case | |
* { detail: "Authentication is required" } | |
* |