Skip to content

Instantly share code, notes, and snippets.

Create an application using npm

$: npx create-react-app my-project --use-npm 
brew install rbenv ruby-build
# Add rbenv to bash so that it loads every time you open a terminal
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
source ~/.bash_profile
rbenv install 2.4.6
rbenv global 2.4.6
ruby -v
In terminal
ssh-agent
ssh-add -K ~/.ssh/[your-private-key]
in ~/.ssh/config
Add UseKeychain yes before host
Reboot and test
@gagnedan
gagnedan / vs-code-extension.txt
Last active December 6, 2019 14:58
VS Code Extension
patbenatar.advanced-new-file
formulahendry.auto-close-tag
formulahendry.auto-rename-tag
fosshaas.fontsize-shortcuts
BriteSnow.vscode-toggle-quotes
Zignd.html-css-class-completion
christian-kohler.npm-intellisense
christian-kohler.path-intellisense
octref.vetur
dbaeumer.vscode-eslint
@gagnedan
gagnedan / gist:2897806
Created June 8, 2012 19:50 — forked from jocubeit/gist:1713910
Install Nokogiri on Mac OSX Lion including libiconv using Homebrew
# Install libxml2 using Homebrew
# If you don't have Homebrew, follow the instructions at:
# https://github.com/mxcl/homebrew/wiki/Installation
# -------------------------------------------------------
brew install libxml2
# Install libxslt from source code
# If you don't have wget, follow the instructions at:
# http://www.mactricksandtips.com/2008/07/installing-wget-on-your-mac-for-terminal.html
# Or use Homebrew:
@gagnedan
gagnedan / gist:1995293
Created March 7, 2012 19:24
Nested Form in Rails 3
# controller
def new
@account = Account.new
@account.build_user # build a blank user or the child form won't display
@account.build_company # build a blank company or the child form won't display
end
# model
belongs_to :user, :foreign_key => "account_holder_id"
belongs_to :company, :foreign_key => "primary_company_id"