Twelve Go Best Practices
Francesc Campoy Flores Gopher at Google @francesc http://campoy.cat/+
- Best practices
Twelve Go Best Practices
Francesc Campoy Flores Gopher at Google @francesc http://campoy.cat/+
| 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 |
| "***************************************************************************** | |
| "" Vim-PLug core | |
| "***************************************************************************** | |
| if has('vim_starting') | |
| set nocompatible " Be iMproved | |
| endif | |
| let vimplug_exists=expand('~/.config/nvim/autoload/plug.vim') | |
| let g:vim_bootstrap_langs = "javascript,php,python,ruby" |
| call plug#begin() | |
| Plug 'terryma/vim-multiple-cursors' | |
| Plug 'sheerun/vim-polyglot' | |
| Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | |
| Plug 'junegunn/fzf.vim' | |
| Plug 'Numkil/ag.nvim' | |
| Plug 'mileszs/ack.vim' | |
| Plug 'cohama/lexima.vim' | |
| Plug 'SirVer/ultisnips' | |
| Plug 'honza/vim-snippets' |
| Process: ruby [15679] | |
| Path: /Users/USER/*/ruby | |
| Identifier: ruby | |
| Version: 0 | |
| Code Type: ARM-64 (Native) | |
| Parent Process: zsh [8634] | |
| Responsible: iTerm2 [543] | |
| User ID: 502 | |
| Date/Time: 2021-02-08 13:38:54.767 +0000 |
| # Ring the bell if any background window rang a bell | |
| set -g bell-action any | |
| # Default termtype. If the rcfile sets $TERM, that overrides this value. | |
| set -g default-terminal screen-256color | |
| # Keep your finger on ctrl, or don't | |
| bind-key ^D detach-client | |
| # Create splits and vertical splits |
| name: "Ruby on Rails CI" | |
| on: pull_request | |
| env: | |
| RAILS_ENV: test | |
| DATABASE_URL: "postgres://rails:password@localhost:5432/rails_test" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest |
| version: '3.2' | |
| services: | |
| db: | |
| image: postgres:latest | |
| environment: | |
| - POSTGRES_PASSWORD=password | |
| ports: | |
| - "5432:5432" | |
| volumes: | |
| - "dbdata:/var/lib/postgresql/data" |
Apple MacBook Pro M1, 32 GB, Ventura 13.2
Documentation based on comments in this Github Elasticsearch issue.