I hereby claim:
- I am michaelkitson on github.
- I am michaelkitson (https://keybase.io/michaelkitson) on keybase.
- I have a public key whose fingerprint is 4A86 FBDD 4083 57C0 83AE 8A2A 434E 0259 A6FE 17CA
To claim this, I am signing this object:
#!/usr/bin/env bash | |
set -euo pipefail | |
# Dependencies: openssl, xxd, base32 (coreutils) | |
# generate_totp key [time_sec [digits]] | |
generate_totp() { | |
key=$1 | |
key_hex=$(base32 -d <<<"$key" | xxd -plain) | |
time_sec=${2:-$(date +%s)} |
DIR=`pwd` | |
read -p 'Acme Account Thumbprint: ' ACME_THUMBPRINT | |
# Basics | |
sudo apt update | |
sudo apt upgrade -y | |
# Turn off systemd DNS resolver | |
sudo sed -ri 's/#?DNSStubListener=yes/DNSStubListener=no/g' /etc/systemd/resolved.conf | |
sudo sh -c 'rm /etc/resolv.conf && ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf' |
# config/initializers/sprockets.rb | |
class ImageTransformer | |
def call(input) | |
filename, content_type = input.values_at(:filename, :content_type) | |
new_extension = content_type.split('/').last | |
converted = ImageProcessing::Vips.source(filename).convert!(new_extension) | |
{ data: converted.read, charset: nil } | |
ensure | |
converted&.unlink | |
end |
require 'json' | |
require 'rubygems/package' | |
unless ARGV.length == 1 | |
puts "Usage: ruby sourcemap_to_tar.rb <sourcemap_file>" | |
exit 1 | |
end | |
sourcemap_filename = ARGV.shift | |
sourcemap = JSON.parse(File.read(sourcemap_filename)) |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
* * | |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
* * * * | |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
* * * * * * |
I hereby claim:
To claim this, I am signing this object: