brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
| from flask import Flask | |
| from flask_restful import Api, Resource, reqparse | |
| app = Flask(__name__) | |
| api = Api(app) | |
| users = [ | |
| { | |
| "name": "Nicholas", | |
| "age": 42, |
| CREATE USER 'user'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; | |
| GRANT ALL ON database_name.* TO 'user'@'localhost'; | |
| FLUSH PRIVILEGES; |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
When you open a Spotify URL in linux Google Chrome, this launches spotify web player instead of native application.
| var gulp = require('gulp'); | |
| var phpspec = require('gulp-phpspec'); | |
| var run = require('gulp-run'); | |
| var notify = require('gulp-notify'); | |
| gulp.task('test', function() { | |
| gulp.src('spec/**/*.php') | |
| .pipe(run('clear').exec()) | |
| .pipe(phpspec('', { notify: true })) | |
| .on('error', notify.onError({ |
| # 1. Download https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh | |
| # 2. Copy this file to somewhere (e.g. ~/.git-prompt.sh). | |
| # 3. Add the following lines to your ~/.bash_profile, ~/.bashrc or ~/.zshrc: | |
| source ~/.git-prompt.sh | |
| GIT_PS1_SHOWDIRTYSTATE=true | |
| GIT_PS1_SHOWUNTRACKEDFILES=true | |
| PS1='\W$(__git_ps1 " (\e[1;36m%s\e[0m)") \$ ' |