Skip to content

Instantly share code, notes, and snippets.

View alvinlai's full-sized avatar

Alvin Lai alvinlai

  • Mountain View, CA
View GitHub Profile
@alvinlai
alvinlai / install-multiple-jdk-on-macos-high-sierra.md
Created February 28, 2018 00:33 — forked from ntamvl/install-multiple-jdk-on-macos-high-sierra.md
Install Multiple Java Versions on macOS High Sierra

Install Multiple Java Versions on macOS High Sierra

Install Homebrew Cask

On Mac, Homebrew is the de-facto package manager, and Homebrew Cask is the app manager. I’m going to use Cask to install Java 7 and 8.

Install Homebrew Cask first if you haven’t:

brew update
brew tap caskroom/cask
@alvinlai
alvinlai / install.sh
Last active December 31, 2017 07:43 — forked from chaos-ad/install.sh
Installing erlang in ubuntu
#!/bin/bash
# installing erlang on ubuntu's
VERSION="18.2.1"
sudo apt-get install build-essential libncurses5-dev openssl libssl-dev
sudo mkdir -p /opt/erlang/
cd /usr/local/bin/
sudo curl -O https://raw.githubusercontent.com/kerl/kerl/master/kerl && chmod a+x kerl

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

Rich Hickey on becoming a better developer

Rich Hickey • 3 years ago

Sorry, I have to disagree with the entire premise here.

A wide variety of experiences might lead to well-roundedness, but not to greatness, nor even goodness. By constantly switching from one thing to another you are always reaching above your comfort zone, yes, but doing so by resetting your skill and knowledge level to zero.

Mastery comes from a combination of at least several of the following:

@alvinlai
alvinlai / README.md
Created April 6, 2016 23:39 — forked from jimothyGator/README.md
Nginx configuration for Mac OS X with Homebrew, using sites-enabled directory.
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf

File locations:

  • nginx.conf to /usr/local/etc/nginx/
  • default.conf and default-ssl.conf to /usr/local/etc/nginx/sites-available
  • homebrew.mxcl.nginx.plist to /Library/LaunchDaemons/
@alvinlai
alvinlai / public.pem
Created December 4, 2013 05:16
test pubkey
-----BEGIN PUBLIC KEY-----
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAon10gBWBgBvj3k9M2dLz
h1wSr0aeiX2Fs+Bx+e2T5JG/NQRaBiQBtMESCN+c0dldrgo/72Ayj/phOjW7CGNN
vpvCC/zzbnfSoT8NJQqiTw34OmuCOvMDiuCRpIe8Y9tdLJxIJP4gxDyPL7b4Ml5T
TaSpcuaGCbDYlRIY2N1tj0q8qFRxumXMemxcvHy2+IPURyVmRKGKyCKNVs8D6sy9
d1cKBEE+ddIKYOA4R8ByghdxhLLhRyqRMsIdw0ON0GtYjQiPRMjHfvsJSOVFpZnT
FgLE+0WCeWEA2RhSvMOfD7hU2N1jgXnOZf5dGAiQ6YJc7TYdvdZ5IOqI/xMFDut2
Ng3SuKDkFhUEQBSsoC4yXUiwDjdQJzBgnTXF/RLh2mqkd9v7NfdTIaPlYvWB4f5D
gNzpoCEqQKHiJVBI758WrFw1+C+IrbY5ZRN5vhvGsDso2NlwvQyrbMB8AafaZI/5
cDBNwOFtn+B3dXS84y7+Pg1zQwEzQ+Ctkg8tS7TCAVvfJICj1TMtp+dDeNkqXGHg
@alvinlai
alvinlai / Gemfile
Last active December 30, 2015 02:39
makermail Gemfile for Docker
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.2'
# Use postgresql as the database for Active Record
gem 'pg'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'
@alvinlai
alvinlai / Gemfile
Last active December 28, 2015 06:48
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0'
gem 'pg'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0'
# Use postgresql as the database for Active Record
gem 'pg'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'
@alvinlai
alvinlai / Gemfile
Created November 10, 2013 18:36
Gemfile for dockernotes
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'