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
body = <<~HTML | |
<html> | |
<body> | |
<div class="tenor-gif-embed" data-postid="12136175" data-share-method="host" data-width="100%" data-aspect-ratio="1.4777448071216617"><a href="https://tenor.com/view/rick-ashley-dance-80s-music-gif-12136175">Rick Ashley Dance GIF</a> from <a href="https://tenor.com/search/rickashley-gifs">Rickashley GIFs</a></div><script type="text/javascript" async src="https://tenor.com/embed.js"></script> | |
</body> | |
</html> | |
HTML | |
app = ->(env) { | |
[ |
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
# This does work because a my custom thread status is unambiguous. | |
# | |
# However, you may notice that setting the status and sleeping are not atomic. | |
require "net/http" | |
responses = [] | |
thread = Thread.new do | |
Thread.current[:what_i_am_doing] = "starting" |
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
#!/usr/bin/env bash | |
set -e | |
./configure --with-opt-dir=$(brew --prefix gmp):$(brew --prefix jemalloc) | |
export CONFIGURE_ARGS="" | |
for ext in openssl readline libyaml zlib; do | |
CONFIGURE_ARGS="${CONFIGURE_ARGS} --with-$ext-dir=$(brew --prefix $ext)" | |
done |
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
FROM golang:1.24-bookworm | |
WORKDIR /app | |
COPY dumper.go . | |
RUN go mod init boltdbdumper && \ | |
go get go.etcd.io/bbolt@latest && \ | |
go mod tidy && \ | |
go build -o dumper |
OlderNewer