- HTTP Request/Response Cycle
- MVC
How does the application know how to map HTTP requests to Controller actions?
Rails routes are a middleware that map the HTTP Verb and Path (within a HTTP request) to a Controller action.
# ~/.railsrc | |
--database=postgresql | |
--skip-bundle | |
--skip-spring | |
--skip-test-unit | |
--skip-turbolinks | |
--template=/path/to/rails_template.rb |
git@github.com:username/reponame.git | |
git@gitlab.com:username/another-repo.git |
<!doctype html> | |
<html class="no-js" lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Foundation CDN Starter Template</title> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/foundation/6.2.4/foundation.min.css"> | |
</head> | |
<body> |
PUID=1000 # id -u | |
PGID=1000 # id -g | |
EXTERNAL_HOSTNAME=your-hostname.duckdns.org | |
DUCKDNS_TOKEN="" # visit https://www.duckdns.org/ create an account, copy your token | |
EMAIL=your-email@somewhere.org | |
GITLAB_HOME=./gitlab | |
GITLAB_ROOT_PASSWORD=password |
#! /usr/bin/env bash | |
# apt install tigervnc-common tigervnc-scraping-server tigervnc-standalone-server tigervnc-xorg-extension | |
x0vncserver \ | |
-display :0 \ | |
-geometry 1024x768+1920+0 \ | |
-passwordfile $HOME/.vnc/passwd | |
# stop |
Windows Registry Editor Version 5.00 | |
;swap caps-lock and escape keys in Windows | |
;from https://raerav.com/how-to-remap-the-capslock-and-escape-key-in-windows/ | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] | |
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,3a,00,01,00,01,00,3a,00,00,00,00,00 |
# OS-Installed Font Stacks | |
https://codepen.io/brianhaferkamp/pen/BLdgjk | |
``` | |
Serif Fonts | |
Georgia, serif | |
'Palatino Linotype', 'Book Antiqua', Palatino, serif | |
'Times New Roman', Times, serif |
export EDITOR=subl | |
export PGHOST=127.0.0.1 | |
#export NOKOGIRI_USE_SYSTEM_LIBRARIES=true | |
function rails_new() { rails new $1 && cd $1 && git init && git add . && git commit -m 'Initial commit'; } | |
alias migrate='rake db:migrate && rake db:rollback && rake db:migrate' | |