Skip to content

Instantly share code, notes, and snippets.

@jspaper
jspaper / vagrant_ubuntu.md
Last active August 21, 2017 13:28
Vagrant ubuntu

vagrant ubuntu/xenial64

sudo apt-get -y update
sudo apt-get install -y build-essential zlib1g-dev curl git-core sqlite3 libsqlite3-dev

sudo apt-get install -y libssl-dev libreadline-dev
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
@jspaper
jspaper / git_tutorial.md
Last active November 16, 2017 07:30
Git tutorial
git config --local credential.helper store
git config http.sslVerify false

git remote -v
git remote set-url origin https://..../example.git

# 取得遠端的branch並在本地端建立一個branch
git checkout --track -b feature_branch origin/feature_branch
@jspaper
jspaper / caching.md
Created October 13, 2017 04:46
Caching

Caching

1. Client-side caching

  • max-age
  • etag
  • last_modified

max-age