Skip to content

Instantly share code, notes, and snippets.

View thefactus's full-sized avatar
programming

Pablo Bello thefactus

programming
View GitHub Profile
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# switch panes using Alt-arrow without prefix
# bind -n M-h select-pane -L
# bind -n M-l select-pane -R
# bind -n M-k select-pane -U
# bind -n M-j select-pane -D
class User < ApplicationRecord
has_many :user_todo_lists
has_many :todo_lists, through: :user_todo_lists
has_many :todos, through: :todo_lists
end
class UserTodoList < ApplicationRecord
belongs_to :user
belongs_to :todo_list
end
@thefactus
thefactus / docker-pry-rails.md
Created February 11, 2021 19:15 — forked from briankung/docker-pry-rails.md
Using pry-rails with Docker
@thefactus
thefactus / postgres-brew.md
Created October 18, 2020 16:17 — forked from ibraheem4/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update