Skip to content

Instantly share code, notes, and snippets.

@WinLinux1028
WinLinux1028 / proof.md
Created October 26, 2024 06:51
Keyoxide認証用

openpgp4fpr:029BE97239D16F6A8B08151B8EBB335CB284FB75

@WinLinux1028
WinLinux1028 / ipgp.py
Last active October 14, 2024 19:56
RFC4398 IPGP certificate generator
import sys
import base64
args = sys.argv
if len(args) != 4 or "--help" in args or "-h" in args:
print("./" + args[0] + " " + "FINGERPRINT URL EMAIL_ADDRESS")
sys.exit()
f = bytes.fromhex(args[1])
url = args[2].encode()
@WinLinux1028
WinLinux1028 / domain_blocks.csv
Last active November 7, 2024 22:48
Mastodonブロックリスト
#domain #severity #reject_media #reject_reports #public_comment #obfuscate
trycloudflare.com suspend false false サブドメイン貸し出し false
ngrok.io suspend false false サブドメイン貸し出し false
repl.co suspend false false サブドメイン貸し出し false
github.io suspend false false サブドメイン貸し出し false
pages.dev suspend false false サブドメイン貸し出し false
ngrok-free.app suspend false false サブドメイン貸し出し false
ngrok-free.dev suspend false false サブドメイン貸し出し false
ngrok.app suspend false false サブドメイン貸し出し false
ngrok.dev suspend false false サブドメイン貸し出し false
@WinLinux1028
WinLinux1028 / README.md
Created September 5, 2023 15:23
Yugabyteのrun_sysbench.shをPostgreSQLでも動くようにしてみた
@WinLinux1028
WinLinux1028 / README.md
Last active September 5, 2023 15:20
ドメインが書かれたテキストファイルから同じTLDの数を数えるやつ
@WinLinux1028
WinLinux1028 / iptables_cloudflare.sh
Created March 19, 2023 14:49
Cloudflare以外が443番ポートにアクセスすることを阻止するシェルスクリプト
#!/bin/bash
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -i lo -j ACCEPT
for ip in `curl "https://www.cloudflare.com/ips-v4"`
do
iptables -A INPUT -p tcp -m multiport --dports 443 -s ${ip} -j ACCEPT
done
iptables -A INPUT -p tcp -m multiport --dports 443 -j DROP
@WinLinux1028
WinLinux1028 / escape_chroot
Last active October 25, 2024 07:08
chroot脱獄ツール