- Open Registry Editor
- Go to:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
- Edit, or add, binary value key:
Scancode Map
(see below) - Restart to take effect
redis-cli KEYS "Sidekiq:*:stat:processed:*" | xargs -n 100 redis-cli DEL |
# 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 |
# 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| |
def load_from_path(path) | |
Dir.chdir(path) { | |
Dir.foreach('.') { |f| load f unless File.directory?(f) } | |
} | |
end | |
paths = [ | |
'conf.d', | |
'plugins' | |
] |
opts = { | |
indent: ' ', | |
space: ' ', | |
object_nl: "\n", | |
array_nl: "\n" | |
} | |
JSON.fast_generate(obj, opts) |
http { | |
# Shared cache size; 1MB = 4000 sessions | |
ssl_session_cache shared:SSL:10m; | |
# Decrease timeout if resources are low | |
ssl_session_timeout 10m; | |
# Good-bye SSL | |
ssl_protocols TLSv1.1 TLSv1.2; | |
ssl_prefer_server_ciphers on; | |
ssl_ciphers ECDH+AESGCM:ECDH+AES256:ECDH+AES128:!ADH:!AECDH:!MD5; | |
# OCSP stapling |
# | |
# Build and Package RubyGems for AWS Lambda Layer Use | |
# | |
all: build package | |
build: | |
gem i firebase-ruby -Ni ruby/gems/2.5.0 | |
gem i darksky-ruby -Ni ruby/gems/2.5.0 | |
ls -m ruby/gems/2.5.0/gems |
{ | |
"version":2, | |
"path":"/event", | |
"httpMethod":"GET", | |
"headers":{ | |
"Content-Length":"0", | |
"Host":"abcde12345.execute-api.us-west-2.amazonaws.com", | |
"User-Agent":"curl/7.54.0", | |
"X-Amzn-Trace-Id":"Root=1-67891233-abcdef012345678912345678", | |
"X-Forwarded-For":"192.168.1.23", |