Open in a web browser: https://slack.com/oauth/authorize?scope=bot&client_id=12345.67890
- Use Client ID from App Credentials.
- Use
bot
for scope.
# Generate the now preferred Ed25519 key | |
ssh-keygen -t ed25519 | |
# Search in known_hosts file | |
ssh-keygen -F "hostname" | |
# Remove key(s) from known_hosts file | |
ssh-keygen -R "hostname" |
opts = { | |
indent: ' ', | |
space: ' ', | |
object_nl: "\n", | |
array_nl: "\n" | |
} | |
JSON.fast_generate(obj, opts) |
Firebase REST queries require access_token
parameter for full access. This is Google’s OAuth 2.0 for service accounts.
def load_from_path(path) | |
Dir.chdir(path) { | |
Dir.foreach('.') { |f| load f unless File.directory?(f) } | |
} | |
end | |
paths = [ | |
'conf.d', | |
'plugins' | |
] |
# 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| |
# 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 |
redis-cli KEYS "Sidekiq:*:stat:processed:*" | xargs -n 100 redis-cli DEL |