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 python | |
from collections import Counter | |
spammers = [ | |
{"domain": "lewohner.top", "ip": "5.189.207.59", "asn": "AS50896", "mx": "mxsrv.mailasrvs.pw"}, | |
{ | |
"domain": "vesigarna.site", | |
"ip": "185.71.1.152", | |
"asn": "AS200557", |
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 python | |
import itertools | |
import pathlib | |
value = 0 | |
seen = set() | |
for line in itertools.cycle( | |
int(line) for line in pathlib.Path("input/1.txt").read_text().splitlines() |
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 python3 | |
import pytest | |
def up_n(arrows, a, b): | |
"""Return a ↑(arrows times) b.""" | |
if arrows == 1: | |
return a ** b |
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
{ | |
"name": "drumbit", | |
"metadata": { | |
"author": "", | |
"title": "", | |
"remarks": "" | |
}, | |
"options": { | |
"tempo": 63, | |
"swing": 0, |
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
--- | |
:concurrency: 25 | |
:queues: | |
- [default, 6] | |
- [push, 4] | |
- [mailers, 2] | |
- [pull] |
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
version: '3' | |
services: | |
[...] | |
sidekiq_1: | |
build: . | |
image: tootsuite/mastodon | |
restart: always | |
env_file: .env.production | |
command: bundle exec sidekiq -c 25 | |
volumes: |
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 python | |
from functools import cache | |
real = True | |
with open("real_1.txt" if real else "test_1.txt") as infile: | |
data = infile.read().strip() | |
OlderNewer