This file contains hidden or 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
| SSH_AUTH_SOCK="/run/user/$(id -u)/gnupg/S.gpg-agent.ssh" | |
| export SSH_AUTH_SOCK | |
| # There may be concurrency conflicts during WSL startup. | |
| # Let's wrap program luanching with locks. | |
| flock -n -o ~/.local/state/zshrc.init.lock -c ~/.zshrc.init || true |
This file contains hidden or 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
| // npm install ws | |
| const WebSocket = require("ws"); | |
| const KUBERNETES_HOST = "127.0.0.1:443"; | |
| const KUBERNETES_NAMESPACE = "default"; | |
| const KUBERNETES_TOKEN = "CHANGEME"; | |
| const pod = "changeme"; | |
| if (!process.stdin.isTTY && !process.stdout.isTTY) { | |
| console.error("not tty"); |
This file contains hidden or 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 regex as re | |
| from glob import iglob | |
| def main(): | |
| pattern = re.compile(r'([\p{ishan}]+)', re.unicode) | |
| total = 0 | |
| for filename in sorted(iglob('data/chap*.tex')): |
This file contains hidden or 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 | |
| # -*- coding:utf-8 -*- | |
| from datetime import datetime | |
| import os | |
| from wsgiref.handlers import format_date_time | |
| from time import mktime | |
| import hashlib | |
| import base64 | |
| import hmac |