No description
Find a file
2026-02-01 03:08:37 +09:00
adb Update adb/README.md 2025-02-01 11:07:10 +00:00
ahk Update ahk/README.md 2024-11-22 11:55:01 -05:00
asyncio Update asyncio/README.md 2024-10-04 01:55:27 -04:00
asyncio-threading Add asyncio-threading/README.md 2025-02-03 20:44:16 +00:00
auto-csv Update auto-csv/README.md 2024-09-22 04:17:12 -04:00
auto-regex add requirement 2024-07-15 19:10:26 +09:00
beej Add beej/telnot.go 2025-09-26 19:04:24 +09:00
browser Add browser/README.md 2025-01-27 02:16:16 +00:00
bvh-min-dist add bvh example 2024-07-20 02:48:50 +09:00
cgo-libzmq Update cgo-libzmq/README.md 2025-01-22 10:36:17 +00:00
chrome Update chrome/README.md 2025-02-05 03:26:55 +00:00
chrome-linux Update chrome-linux/README.md 2024-08-27 16:48:11 -04:00
colab-jupyterlab add colab example md 2024-08-06 20:07:06 +09:00
color Update color/README.md 2025-03-23 14:18:13 +00:00
color-palette Update color-palette/README.md 2024-10-13 12:52:37 -04:00
color-print change line align 2024-07-20 22:22:25 +09:00
comfy-flux scrub 2024-08-30 13:04:43 +09:00
cpu-bench clean bashrc 2025-09-18 09:16:05 +09:00
cron Add cron/README.md 2025-04-01 13:47:53 +00:00
datetime-python Add datetime-python/README.md 2025-01-24 11:16:23 +00:00
ddns-cloudflare Update ddns-cloudflare/README.md 2024-08-23 09:41:56 -04:00
debian-cpu-benchmark merge 2024-11-30 01:19:39 -05:00
debian-python3-pip update conda case 2024-07-02 12:48:55 +09:00
docker-compose Update docker-compose/README.md 2024-12-11 02:05:20 +00:00
elasticsearch-streamlit use simpler setting in elasticsearch 2024-07-01 18:21:05 +09:00
everything Add everything/README.md 2024-10-30 03:31:28 -04:00
ext latest 2026-01-14 19:53:24 +09:00
fedora Update fedora/README.md 2025-09-13 08:35:00 +09:00
firefox translate 2026-02-01 03:08:37 +09:00
flask Add flask/README.md 2025-12-26 17:34:37 +09:00
gemma-2-translator update 2024-07-16 22:07:14 +09:00
golang Add golang/README.md 2025-09-28 01:06:12 +09:00
gtk-dark-theme Add gtk-dark-theme/README.md 2024-08-21 08:00:50 -04:00
help add warning 2024-07-16 20:33:47 +09:00
hunet Update hunet/README.md 2024-12-27 07:03:30 +00:00
image-on-terminal new display image on terminal manual 2024-07-18 20:30:49 +09:00
ip-renew Update ip-renew/README.md 2025-01-18 21:37:28 +00:00
jasofix Add jasofix/README.md 2024-10-12 19:37:52 -04:00
jupyterlab-import new import pattern manual 2024-07-03 20:34:14 +09:00
jupyterlab-ipynb-checkpoints Add jupyterlab-ipynb-checkpoints/README.md 2024-08-27 03:50:51 -04:00
jupyterlab-isolated change layout 2024-08-05 07:27:48 +09:00
linux-bash update 2026-01-30 06:47:08 +09:00
llama-cpp-logits Update llama-cpp-logits/README.md 2024-09-01 03:24:24 -04:00
llama.cpp Update llama.cpp/README.md 2025-03-17 20:08:41 +00:00
Makefile Update Makefile/Makefile 2024-08-25 13:48:09 -04:00
minio Update README.md 2024-06-30 02:46:26 +09:00
mitmproxy Update mitmproxy/README.md 2025-12-04 20:57:28 +09:00
mobile Update mobile/README.md 2025-02-04 01:20:46 +00:00
mongo-replica Add mongo-replica/README.md 2024-08-23 05:05:45 -04:00
nest-asyncio Update nest-asyncio/README.md 2025-03-01 14:52:43 +00:00
netshare-mitmproxy Add netshare-mitmproxy/README.md 2024-08-30 23:45:48 -04:00
network-connection-test network-connection-test: initial commit 2024-08-10 02:02:35 +09:00
nginx-proxy-manager npm pass manual 2024-08-18 13:53:58 +09:00
nssm Add nssm/README.md 2025-02-24 10:19:38 +00:00
parallel Add parallel/README.md 2025-02-16 04:21:55 +00:00
pip Update pip/README.md 2024-08-27 01:36:58 -04:00
pkg-config Update pkg-config/READMD.md 2024-08-21 08:01:59 -04:00
playwright Update playwright/README.md 2025-03-01 04:44:52 +00:00
powershell Add powershell/README.md 2025-02-28 18:31:32 +00:00
python-exception Add python-exception/README.md 2024-08-21 08:26:30 -04:00
ramdisk Update ramdisk/README.md 2024-08-23 12:04:30 -04:00
rclone-sync-crontab update rclone manual 2024-07-01 17:27:36 +09:00
redis-log Add redis-log/README.md 2024-08-21 02:44:47 -04:00
redisql Update redisql/README.md 2024-09-25 23:48:58 -04:00
schtasks Add schtasks/README.md 2025-03-19 22:35:46 +00:00
security Add security/README.md 2025-09-28 01:38:35 +09:00
sni Update sni/README.md 2026-01-13 12:36:45 +09:00
snurad Add snurad/README.md 2024-10-13 00:17:56 -04:00
sqlite3/Files Update sqlite3/Files/README.md 2024-09-26 01:45:35 -04:00
sqlite3-python Update sqlite3-python/README.md 2024-12-03 06:25:54 +00:00
squid Add squid/README.md 2025-01-21 17:23:13 +00:00
sudo sudo: initial README.md 2024-08-26 06:37:03 +09:00
supervisor Update supervisor/README.md 2025-05-05 22:57:35 +09:00
thread-python Add thread-python/README.md 2025-02-22 10:46:48 +00:00
ThreadPoolExecture Add ThreadPoolExecture/README.md 2024-12-20 04:15:38 +00:00
ublock Add ublock/README.md 2026-01-28 16:00:06 +09:00
User-Agent Client Hints Add User-Agent Client Hints/REAMDE.md 2025-01-31 05:22:44 +00:00
windows Add windows/README.md 2025-01-23 21:21:18 +00:00
windows-C++ Update windows-C++/README.md 2025-03-07 02:54:56 +00:00
windows-gcc Add windows-gcc/README.md 2025-01-24 13:23:22 +00:00
windows-libzmq Update windows-libzmq/README.md 2025-01-24 23:54:32 +00:00
wireguard merge 2024-11-30 01:19:39 -05:00
wsl-docker Update wsl-docker/README.md 2025-08-31 09:42:29 +09:00
x11 update 2026-01-30 06:47:08 +09:00
xfce-perchannel-xml default status 2026-01-26 07:04:24 +09:00
zmq-sqlite clean bashrc 2025-09-18 09:16:05 +09:00
.gitignore clean bashrc 2025-09-18 09:16:05 +09:00
autopip.py hide error msg 2024-09-04 12:46:48 +00:00
jimm.py update handle 2024-11-27 00:07:48 +09:00
LICENSE Initial commit 2024-06-27 21:32:24 +09:00
README.md Update README.md 2025-07-04 20:16:25 +09:00

Debian

sudo apt update && sudo apt upgrade -y
sudo apt install -y curl python3-venv

curl -fsSL https://code-server.dev/install.sh | sh
mkdir -p ~/.config/code-server
tee ~/.config/code-server/config.yaml <<EOF
bind-addr: 0.0.0.0:8888
auth: none
cert: false
EOF
sudo systemctl enable --now code-server@$USER

about:config
dom.events.testing.asyncClipboard
true

python3 -m venv .venv
tee -a ~/.bash_aliases <<EOF
export PATH=~/.venv/bin:\$PATH
EOF
source .bashrc

pip install ipykernel jupyterlab mitmproxy

sqlite3 [25-03-17]

import sqlite3, os, json
class SQL:
    def __init__(sql, db='.db'):
        if not os.path.exists(db): os.makedirs(db); SQL(db).con.executescript(
            "PRAGMA journal_mode=WAL; CREATE TABLE kv(k,v,t DEFAULT CURRENT_TIMESTAMP);"
            "CREATE INDEX idx_kv_v ON kv(v); CREATE INDEX idx_kv_k_t ON kv(k,t DESC);")
        (con := sqlite3.connect(f'{db}/sql', check_same_thread=False,
            isolation_level=None)).execute(f"PRAGMA busy_timeout={1e9}")
        sql.con, sql.db = con, db
    def __call__(sql, q, *p): return [*sql.con.execute(q, p)]
    def __setitem__(sql, k, v): return sql("INSERT INTO kv(k,v) VALUES(?,?)",
        k, v if type(v) is bytes else json.dumps(v, ensure_ascii=False))
    def __getitem__(sql, k):
        if (v := sql("SELECT v FROM kv WHERE k=? ORDER BY t DESC LIMIT 1", k)):
            return json.loads(v) if type(v := v[0][0]) is str else v
    def __delitem__(sql, rows):
        for row in rows: sql("DELETE FROM kv WHERE k=? AND v=? AND t=?", *row)
    def __contains__(sql, k): return bool(sql("SELECT 1 FROM kv WHERE k=?", k))
    def __eq__(sql, query): return sql("SELECT * FROM kv WHERE k LIKE ?", query)
    def __ne__(sql, query): return sql("SELECT * FROM kv WHERE k NOT LIKE ?", query)
    def __repr__(sql): return f"SQL(db={sql.db})"
sql = SQL()

tauri + svelte + shadcn

git clone https://github.com/alysonhower/tauri2-svelte5-shadcn.git
cd tauri2-svelte5-shadcn
bun i
bun run dev -- --host

syncify

def sync(coro):
    import asyncio, functools, nest_asyncio; nest_asyncio.apply()
    return functools.wraps(coro)(lambda *args, **kwargs:
        asyncio.run(coro(*args, **kwargs)))

@sync
async def main(): print('hello'); return 'world'

main()

playwright [25-03-01]

def Page():
    def sync(obj):
        import asyncio, functools
        if asyncio.iscoroutine(coro := obj):
            loop, future = asyncio.get_event_loop(), asyncio.ensure_future(coro)
            while not future.done():
                loop._process_events(loop._selector.select(0))
                if (ready := loop._ready) and not (handle := ready.popleft())._cancelled:
                    task = (tasks := asyncio.tasks._current_tasks).pop(loop, None)
                    handle._run()
                    tasks[loop] = task
            return future.result()
        if asyncio.iscoroutinefunction(func := obj): return functools.wraps(func)(
            lambda *args, **kwargs: sync(func(*args, **kwargs)))
        for attr in dir(obj):
            if asyncio.iscoroutinefunction(method := getattr(obj, attr)):
                setattr(obj, attr, sync(method))
        return obj

    from playwright.async_api import async_playwright
    browser = sync(sync(async_playwright().start()).firefox.launch())
    page = sync(sync(browser.new_page()))
    page._repr_png_ = page.screenshot
    return page

page = Page()
page.goto('https://naver.com')
page

wireguard

wg genkey|%{$_;$_|wg pubkey}