Skip to content

Instantly share code, notes, and snippets.

View gtoroap's full-sized avatar
💭
Coding

Gustavo Toro gtoroap

💭
Coding
View GitHub Profile
@danielvidal
danielvidal / open_pr
Last active September 12, 2019 19:18
# Add this function to your `.bash_profile`
function open_pr() {
repo_name="${PWD##*/}"
ref=$(git symbolic-ref HEAD 2> /dev/null)
git_branch="${ref#refs/heads/}"
open "https://github.com/youse-seguradora/${repo_name}/compare/master...${git_branch}"
}
@deHelden
deHelden / "torn" 1 Setup vps.md
Last active April 24, 2024 15:12
Deploy Rails 7.0.4.2 to VPS(DigitalOcean Ubuntu 20). Nginx, Puma, Capistrano3, PostgreSQL, Rbenv.

SETUP VPS

based on DigitalOcean guide

Create local project

local$ rails new appname -T -d postgresql
local$ rails g scaffold Story title:string body:text
local$ rails db:migrate
@vasanthk
vasanthk / System Design.md
Last active May 3, 2024 16:37
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?