shithub: snippets


clone: git:// gits://
push: hjgit://
patches to: sigrid on grid, freenode, or

Last commit

d3bd7f09 – Sigrid – 2021-03-03T05:53:53-05:00
helpmeport: clean up the mess of OFILES


# 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

* `c_builtins*` a few __builtin_* for Plan 9, useful for porting other software
* `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
* `helpmeport` generates files needed to port a Unix library or a binary
* `watch` watch-like tool, imagine