development

Mac OS X: role “postgres” does not exist

Install Postgres brew install Postgres Try to log in. $ psql -h localhost -d postgres -U postgres psql: error: could not connect to server: FATAL: role “postgres” does not exist Create the user $ /usr/local/opt/postgres/bin/createuser -s postgres Start the server $ pg_ctl -D /usr/local/var/postgres start pg_ctl: another server might be running; trying to start server […]

Read more
development

Neovim, Vim and Go Setup on Mac

Installing neovim pip2 install –user neovim pip3 install –user neovim If you need Homebrew’s Python 2.7 run brew install python@2 You can install Python packages with pip3 install <package> They will install into the site-package directory /usr/local/lib/python3.7/site-packages Path of neovim rc New location is ~/.config/nvim/init.vim https://github.com/zchee/deoplete-jedi/wiki/Setting-up-Python-for-Neovim – So far the most complete Go-vim setup: https://labs.signalsciences.com/setup-vim-for-golang-development […]

Read more