Skip to content

Instantly share code, notes, and snippets.

Avatar
🏹
Out to lunch

Matt Joiner anacrolix

🏹
Out to lunch
View GitHub Profile
View all-trackers-ips-location
Netherlands 93.158.213.92 udp://tracker.opentrackr.org:1337/announce
Netherlands 93.158.213.92 http://tracker.opentrackr.org:1337/announce
France Roubaix 151.80.120.115 udp://9.rarbg.com:2810/announce
France Roubaix 151.80.120.112 udp://9.rarbg.com:2810/announce
France Roubaix 151.80.120.114 udp://9.rarbg.com:2810/announce
France Roubaix 151.80.120.113 udp://9.rarbg.com:2810/announce
United Kingdom 45.154.253.5 udp://tracker.openbittorrent.com:6969/announce
United Kingdom 45.154.253.6 udp://tracker.openbittorrent.com:6969/announce
United Kingdom 45.154.253.4 udp://tracker.openbittorrent.com:6969/announce
United Kingdom 45.154.253.7 udp://tracker.openbittorrent.com:6969/announce
@anacrolix
anacrolix / fuck.sh
Last active Mar 22, 2022
Removing stolon keeper from Fly.io postgres-ha
View fuck.sh
fly ssh console -a <postgres app>
export $(cat /data/.env | xargs)
stolonctl removekeeper <keeper id>
View gist:6e0e24d7d600ef834970c1d5230d23aa
anacrolix@anacrolix-mbp-2018:~/src/replica-haskell$ cabal v2-repl
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: replica-haskell-0.1.0.0 (user goal)
[__1] next goal: base (dependency of replica-haskell)
[__1] rejecting: base-4.14.1.0/installed-4.14.1.0, base-4.15.0.0,
base-4.14.1.0, base-4.14.0.0 (constraint from project config TODO requires
==4.13.0.0)
[__1] rejecting: base-4.13.0.0 (constraint from non-upgradeable package
requires installed instance)
View gist:fa0768126ac3535787b307c124f626d2
async def sendto(self, bytes, addr):
try:
await self.socket.sendto(
bytes, addr,
)
finally:
exc_value = sys.exc_info()[1]
if exc_value is not None:
exc_value = str(exc_value)
with self.db_conn:
View main.pony
use "net"
use "logger"
use "time"
actor Main
new create(env: Env) =>
let auth =
try
View main.pony
use "net"
actor Main
new create(env: Env) =>
let auth =
try
env.root as AmbientAuth
else
env.err.print("couldn't get auth")
View main.pony
use "net"
actor Main
new create(env: Env) =>
let auth =
try
env.root as AmbientAuth
else
env.err.print("couldn't get auth")
View main.pony
use "net"
use "logger"
use "time"
actor Main
new create(env: Env) =>
let auth =
try
View main.pony
actor Main
new create(env: Env) =>
let chain = DivisibleFilter(2, Printer(env), env)
let g = Generator(1_000_000, chain)
actor Generator
var _i: I = 2
let _max: I
let _next: Next
new create(max: I, next: Next) =>
View main.pony
actor Main
new create(env: Env) =>
let chain = DivisibleFilter(2, Printer(env), env)
let g = Generator(100000000, chain)
actor Generator
new create(max: I, next: Next tag) =>
var i: I = 2
while i <= max do
next.apply(i)