Making a *bold statement.*
Emphasis with _italic text._
Let's ~strike out~ post this message.
This file contains 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
# Change settings below if font renderings appear to thin or bold. | |
# 0: Always disabled. | |
# 1: Always enabled. | |
# 2: Disabled for dark themes. | |
# 3: Disabled for dark themes on high-DPI displays (default). | |
# Generaly, set the value to 1 if renderings appear too thin | |
defaults write com.macromates.TextMate.preview fontSmoothing 1 | |
# Reset to default |
This file contains 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
# Better to be root | |
sudo bash | |
# Change IP address (static) | |
nano /etc/network/interfaces | |
# Update hostnames | |
nano /etc/hostname | |
nano /etc/hosts |
This file contains 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
# Usage: | |
# - Install npm | |
# - Configure package.json | |
# - Place source code in "src/" | |
# - Outputs to "app.js" | |
npm run build |
This file contains 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
redis-cli KEYS "Sidekiq:*:stat:processed:*" | xargs -n 100 redis-cli DEL |
This file contains 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
# See: https://rvm.io/rvm/install | |
# Install public key | |
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 | |
# Single-user install | |
\curl -sSL https://get.rvm.io | bash -s stable --ruby | |
# Multi-user install; after install, add users to "rvm" group | |
\curl -sSL https://get.rvm.io | sudo bash -s stable |
This file contains 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
# Convert all Hash keys to lowercase symbols | |
# @param obj [Object] any Ruby object | |
def keys_to_sym(obj) | |
case obj | |
when Array | |
obj.each do |v| | |
keys_to_sym(v) | |
end | |
when Hash | |
obj.keys.each do |k| |
This file contains 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
def load_from_path(path) | |
Dir.chdir(path) { | |
Dir.foreach('.') { |f| load f unless File.directory?(f) } | |
} | |
end | |
paths = [ | |
'conf.d', | |
'plugins' | |
] |
Firebase REST queries require access_token
parameter for full access. This is Google’s OAuth 2.0 for service accounts.
- https://firebase.google.com/docs/reference/rest/database/user-auth
- https://developers.google.com/identity/protocols/OAuth2ServiceAccount
- Firebase Console > Settings > Project settings > Service accounts tab