- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
# Install x-code command line tools
xcode-select --install
# Install homebrew itself
This lets you set the preload headers for your assets, so that the browser can start fetching them before it begins parsing HTML.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { | |
| const labels = [ | |
| // Platform | |
| { name: "typescript", color: "#BFD4F2" }, | |
| { name: "javascript", color: "#BFD4F2" }, | |
| // Problems | |
| { name: "bug", color: "#EE3F46" }, | |
| { name: "security", color: "#EE3F46" }, | |
| { name: "production", color: "#F45D43" }, | |
| // Mindless |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| desc "switch rails logger to stdout" | |
| task :verbose => [:environment] do | |
| Rails.logger = Logger.new(STDOUT) | |
| end | |
| desc "switch rails logger log level to debug" | |
| task :debug => [:environment, :verbose] do | |
| Rails.logger.level = Logger::DEBUG | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // +build windows | |
| package screen | |
| import ( | |
| "fmt" | |
| "image" | |
| "reflect" | |
| "syscall" | |
| "unsafe" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module ActiveRecord | |
| module Scopes | |
| module SetOperations | |
| extend ActiveSupport::Concern | |
| class_methods do | |
| def union_scope(*scopes) | |
| apply_operation 'UNION', scopes | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Defaults / Configuration options for homebridge | |
| # The following settings tells homebridge where to find the config.json file and where to persist the data (i.e. pairing and others) | |
| HOMEBRIDGE_OPTS=-U /var/lib/homebridge | |
| # If you uncomment the following line, homebridge will log more | |
| # You can display this via systemd's journalctl: journalctl -f -u homebridge | |
| # DEBUG=* |