This is a simple point-to-point tunnel between two hosts with no address
restrictions on traffic routed through it. Fixed link-local addresses of
fe80::1 and fe80::2 are assigned to the endpoints, suitable for running
RFC 5549 link-local BGP.
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
| #!/bin/bash | |
| set -o pipefail | |
| shopt -s extglob | |
| export LANG=C.UTF-8 | |
| export API=${API:-https://api.openai.com/v1/chat/completions} | |
| export KEY=${KEY:-$(< ~/.config/secrets/openai)} | |
| export MODEL=${MODEL:-gpt-4o} |
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
| #include <err.h> | |
| #include <errno.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <arpa/inet.h> | |
| #include <linux/netlink.h> | |
| #include <linux/rtnetlink.h> | |
| #include <net/if.h> | |
| #include <sys/socket.h> |
This note is mainly for my own benefit but might be handy for others too.
Whenever I want an ad hoc Debian root filesystem to build and test my software on a mainstream consumer Linux distribution, I am frustrated by my struggle to find and download one.
Search engines turn up lots of documentation, but everything seems to involve weird Debian-specific tooling like debootstrap. Please stop!
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
| #!/bin/python | |
| import functools, math, os, secrets, sys | |
| letters = list('abcdefghijklmnopqrstuvwxyz') | |
| digits = list('0123456789') | |
| vowels = list('aeiou') | |
| consonants = [ c for c in letters if c not in vowels ] | |
| clusters = { c + 'y' for c in consonants if c not in 'qy' } | { |
OlderNewer