讓 VSCode 識別 .js 成 JavascriptReact jsx 這樣才可以 autocomplete
因為上網找好幾次了很煩,註記一下 在設定裡面加上 ``` { "files.associations": { "*.js": "javascriptreact" } } ``` 以 rails + webpacker 為例 ``` { "files.assoc...
Disable 煩人的 zsh 更新檢查
``` vim ~/.zshrc ``` ``` DISABLE_AUTO_UPDATE="true" ``` before the source $ZSH/oh-my-zsh.sh reference: https://stackoverflow.com/qu...
Capistrano forward agent
Capistrano forward agent 可以讓我們不用把 server 上的key 加到 github 也能拉 private repo 今天遇到 permission deny 的問題,結果是因為 mac 重開機就清空了 ssh agents ,導致沒有 ...
Server 安裝 zsh
不能 autocomplete 太痛苦了 ``` apt-get install zsh curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh ``` 然後默...
rails console 的實用技巧
``` reload! app app.get "/movies" helper helper.link_to("Movies", app.movies_path) ``` https://pragmaticstudio.com/blog/2014/3/11...
用 nvm 裝 nodejs
裝 nvm ``` curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.5/install.sh | bash nvm install v8.7.0 npm install pm2 -g `...
用 screen 在 server 執行程序
screen 可以讓程序在背景跑,不會因為斷線而結束 https://blog.gtwang.org/linux/screen-command-examples-to-manage-linux-terminals/