~ft/snippets

Random snippets of C code that are in public domain
dial: dial(2) for POSIX
0cd57b45 — Sigrid Solveig Haflínudóttir 4 months ago
add kbd.[ch] (thanks phil9)
6c5f25a2 — Sigrid Solveig Haflínudóttir 5 months ago
gridup: chatnicks is no longer, make it chat again

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~ft/snippets
read/write
git@git.sr.ht:~ft/snippets

You can also use your local clone with git send-email.

#Snippets

Random snippets of code and scripts that are in public domain. Just copy and use for whatever you want. Except for doing any kind of harm.

  • atomics9* a set of atomics for Plan 9

  • c_builtins* a few _builtin* for Plan 9, useful for porting other software

  • dial.c dial(2) (with "proto!hostname!port" support) for POSIX

  • kbd.[ch] API to handle keyboard on lower level, with all modifiers accessible, on Plan 9

  • lrint.c lrint* implementation

  • msr.c MSR reading tool

  • nanosec.c nanosec(), a replacement for (way more expensive) nsec()

  • qt.[ch] QP tries

  • xml.[ch] XML parser, works as a streaming parser as well

  • clear removes all program output from the terminal, leaving only commands used

  • gridup connects to 9p.zone, mounts stuff from its registry and starts chat windows

  • helpmeport generates files needed to port a Unix library or a binary

  • watch watch-like tool, imagine

  • st-xx-lha-convert extract *.lha archives and convert samples to WAV, on UNIX