- 13" Macbook Pro 3.3 GHz i7 (late 2016)
- Microsoft Surface Book (2016)
- Dell up3216q 32" monitor
export BASH_SILENCE_DEPRECATION_WARNING=1 | |
eval "$(/opt/homebrew/bin/brew shellenv)" | |
# --- git command prompt --- | |
# Pre-requisites: | |
# brew install bash-completion | |
if [ -f $(brew --prefix)/etc/bash_completion ]; then | |
. $(brew --prefix)/etc/bash_completion | |
fi |
This a collection of interesting links found in The Imposter's Handbook by Rob Conery.
Content:
If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.
Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.
If in doubt about what git is doing when you run these commands, just
Outdated note: the process is a lot easier now: after you brew install postgresql
you can initialize or stop the daemon with these commands: brew services start postgresql
or brew services stop postgresql
.
new out put may look like
To have launchd start postgresql now and restart at login:
brew services start postgresql
Or, if you don't want/need a background service you can just run:
pg_ctl -D /usr/local/var/postgres start
alias gh='git config --get remote.origin.url | ruby -ne "puts %{https://github.com/#{\$_.split(/.com[\:\/]/)[-1].gsub(%{.git},%{})}}"| xargs open'
#Creating an app called my_great_app | |
rails new my_great_app -T -d postgresql --skip-turbolinks | |
cd my_great_app | |
git init | |
git add . | |
git commit -m "Initial commit. Rails boilerplate." | |
# Edit gemfile | |
# #Remove the reference to coffee-rails. |