Skip to content

Instantly share code, notes, and snippets.

View kotx's full-sized avatar

Kot C kotx

View GitHub Profile
@kotx
kotx / Caddyfile
Created August 3, 2022 04:05
Add trusted Cloudflare IPs to a Caddyfile you can import
localhost {
import /include/cloudflare-proxies
}
@kotx
kotx / CXWineWhisky.md
Last active October 27, 2024 16:08
Using Wine 8 / CXWine 23.7.1 on Whisky
  1. Download CXWine 23.7.1 from this repo.
  2. Backup the Wine folder in ~/Library/Application Support/com.isaacmarovitz.Whisky/Libraries to Wine.old or something similar.
  3. Extract the downloaded CXWine archive and move the contents of the extracted install folder to the previous location of Wine.
  4. Unquarantine the files in the extracted folder by running xattr -r -d com.apple.quarantine Wine.
  5. Profit!
  6. Except it doesn't work. Will try to figure out why someday!
@kotx
kotx / blackhole.mjs
Last active January 7, 2025 01:25
Cloudflare worker to send bad bots to
export default {
async fetch(request, env, ctx) {
const response = await fetch("https://cdn.yukata.dev/7cp001g.null"); // 10GB of zeroes gzipped
return new Response(response.body, {
headers: {
"Content-Encoding": "gzip",
"Content-Type": "text/plain; charset=utf-8"
},
encodeBody: "manual",