I hereby claim:
- I am bestie on github.
- I am bestie (https://keybase.io/bestie) on keybase.
- I have a public key ASAU_62OgyyQ6IpGAlmQkLNK-JwXmslWMiOAueQy95ieOgo
To claim this, I am signing this object:
| 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 |
| #!/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 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" |
| 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) { | |
| [ |
| require "socket" | |
| rx_port = 2222 | |
| tx_port = 2223 | |
| host = "localhost" | |
| socket = UDPSocket.new | |
| socket.bind(host, rx_port) | |
| socket.connect(host, tx_port) |
| # Run this script with the ENV var payload. | |
| # Payload will be executed as part of your request to visit a prisoner. | |
| # The goal is to free a prison in as few characters as possible. | |
| module PrisonBreak | |
| class Visit | |
| attr_accessor :free_prisoner | |
| attr_reader :prison, :payload |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env ruby | |
| require "optparse" | |
| options = { | |
| :n_passwords => 1, | |
| :password_length => 4, | |
| :separator => " ", | |
| } |
| require "bundler" | |
| bundle = Bundler::LockfileParser.new(Bundler.read_file(Bundler.default_lockfile)) | |
| gem_name_version_map = bundle.specs.map { |spec| | |
| [ | |
| spec.name, | |
| spec.version.to_s, | |
| ] | |
| } |
| # Task: Count how many users have each favorite color | |
| User = Struct.new(:id, :favorite_color) | |
| colors = [:red, :green, :blue, :hot_pink] | |
| users = 10.times.map { |n| User.new(n, colors.sample) } | |
| # The follow two example print the same result |