Find the official macOS wallpapers complied in a neat Google Photos album.
This setup relies on a few GNOME shell extensions, all of which are available from the AUR.
#!/usr/bin/env deno run -A | |
import { readStringDelim } from "https://deno.land/std@0.186.0/io/read_string_delim.ts"; | |
import * as path from "https://deno.land/std@0.186.0/path/mod.ts"; | |
async function extractMetricNames(f) { | |
const filename = path.join(Deno.cwd(), f); | |
let fileReader = await Deno.open(filename); | |
let metrics = new Set(); |
// homerunner is Brad's shitty Docker wrapper after he got tired of running | |
// HA nine-VM Kubernetes clusters. Earlier versions of this tried to use podman | |
// and fancy cloud-init and CNI stuff but then I decided to go to the other | |
// extreme and write something super specific to what I need and super dumb: | |
// run my containers from gcr.io, and use my home Ceph cluster for mounts/state. | |
// | |
// This primarily runs Home Assistant, HomeSeer, an MQTT server, and some cameras. | |
// And some omitted misc stuff. | |
package main |
Find the official macOS wallpapers complied in a neat Google Photos album.
This setup relies on a few GNOME shell extensions, all of which are available from the AUR.
// https://medium.com/@mlowicki/http-s-proxy-in-golang-in-less-than-100-lines-of-code-6a51c2f2c38c | |
// #!/usr/bin/env bash | |
// case `uname -s` in | |
// Linux*) sslConfig=/etc/ssl/openssl.cnf;; | |
// Darwin*) sslConfig=/System/Library/OpenSSL/openssl.cnf;; | |
// esac | |
// openssl req \ | |
// -newkey rsa:2048 \ | |
// -x509 \ |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
) | |
func main() { |
function string.fromhex(str) | |
return (str:gsub('..', function (cc) | |
return string.char(tonumber(cc, 16)) | |
end)) | |
end | |
function string.tohex(str) | |
return (str:gsub('.', function (c) | |
return string.format('%02X', string.byte(c)) | |
end)) |