The ClickHouse website (https://clickhouse.com/) serves different content based on the User-Agent header in the HTTP request.
When accessed with command-line tools like curl or wget, the server returns a shell installation script:
| """Add Noto Sans Thai Looped's Thai glyphs to JetBrains Mono (Nerd Font) as "JetBrains Mono Thai". | |
| 1. Subset Noto Sans Thai Looped to Thai, keeping its shaping (ccmp, locl, mark, mkmk). | |
| 2. Fit every spacing glyph into one 600-unit cell: centre it, and narrow (horizontally only) | |
| the ones that are wider than the cell, such as ญ ฌ ณ. Marks keep zero advance. | |
| Base and ligature anchors move with their glyph, so vowels and tone marks still land on it. | |
| 3. Merge into JetBrains Mono and rename the family. | |
| Usage (run once per style: Regular, Bold, Italic, Bold Italic): |
| [tools] | |
| zig = "latest" |
The ClickHouse website (https://clickhouse.com/) serves different content based on the User-Agent header in the HTTP request.
When accessed with command-line tools like curl or wget, the server returns a shell installation script:
| #!/usr/bin/env -S uv run --script | |
| # /// script | |
| # dependencies = [ | |
| # "ipaddress", | |
| # ] | |
| # /// | |
| """ | |
| IPv6 Finder - A utility to find IPv6 addresses for Tailscale 4via6 subnet routers. |
| pg_dump -h dev_host -U dev_user -d dev_db -- no-owner -- no-privileges -f db_dev.sql | |
| psql -h 127.0.0.1 -U local_user local_db -f db_dev.sql |
| $cursorPath = "c:\Users\lifep\AppData\Local\Programs\cursor\resources\app\bin\cursor" | |
| $arguments = "--wait", "--reuse-window" | |
| if ($args.Count -gt 0) { | |
| $arguments += $args | |
| } | |
| Start-Process -FilePath $cursorPath -ArgumentList $arguments -WindowStyle Hidden -Wait |
| CREATE OR REPLACE FUNCTION clone_schema(source_schema text, dest_schema text) | |
| RETURNS void AS $$ | |
| DECLARE | |
| object text; | |
| buffer text; | |
| default_ text; | |
| column_ text; | |
| BEGIN | |
| EXECUTE 'CREATE SCHEMA ' || dest_schema; |
| #!/usr/bin/env bash | |
| # mise description="Generate the DB schema for the AI Contexts" | |
| set -euo pipefail | |
| cd "$(git rev-parse --show-toplevel)" | |
| mkdir -p ./AIContexts/ | |
| docker run --rm -v "$PWD/AIContexts:/data" postgres:15 \ | |
| pg_dump $POSTGRES_URL -s -O -x -n public -t public.* -f /data/db_schema.sql |
| #!/usr/bin/env bash | |
| # mise description="Generate the DB schema for the AI Contexts" | |
| set -euo pipefail | |
| cd "$(git rev-parse --show-toplevel)" | |
| mkdir -p ./AIContexts/ | |
| docker run --rm -v "$PWD/AIContexts:/data" postgres:15 \ | |
| pg_dump $POSTGRES_URL -s -O -x -n public -t public.* -f /data/db_schema.sql |