computer logo Welcome to Jon's Tools
random jigs from a K12 IT professional

Random Stuff - Volume 1

Posted on January 30th, 2026 by Jon

These are some random small utilities that don't really deserve their own post.

http.exe - Basic HTTP server. There's a million of them, but this one is mine. I like having something that can do this in my PATH.

  -cert string
        TLS certificate file (optional)
  -dir string
        Directory to serve files from (default ".")
  -key string
        TLS key file (optional)
  -port string
        Port to listen on

memory_test.exe - Tries to allocate and use a bunch of memory and tells you when things start to slow down. With so many applications adopting the philosophy of holding on to ram until they feel like the OS needs it back, figuring out how much is available if you need it can be surprisingly complex.

Memory Allocation Test
======================
Operations per test: 1000000
Slowdown threshold: 10.0x

Allocated: 100 MB
Benchmark time: 0.0094 seconds

Allocated: 110 MB - Benchmark time: 0.0099 seconds [1.05x baseline]
Allocated: 121 MB - Benchmark time: 0.0094 seconds [0.95x baseline]
...
Allocated: 20132 MB - Benchmark time: 0.0224 seconds [1.11x baseline]
Allocated: 22145 MB - Benchmark time: 0.2674 seconds [SLOWDOWN DETECTED: 11.94x]

Significant slowdown detected at 22145 MB
Final pool size: 22145 MB

Test complete.

raduis-debug.exe - Tries to authenticate with a RADUIS server and tells you if it works

  -password string
        User password
  -secret string
        RADIUS shared secret
  -server string
        RADIUS server address
  -username string
        User name

ppv.exe - File handler for .pprof files. Just executes `go tool pprof` (so you need to get that command working first) to convert the pprof file to an SVG, then opens the SVG with your default viewer. Save this somewhere permanent before running the register command.

Usage:
  ppv register      - Register as handler for .pprof files
  ppv <pprof-file>  - Convert and open .pprof file as SVG
icon created by juicy_fish (flaticon.com)

Leave a Comment

To reduce spam comments must be manually approved (you won't see them right away)
Comments containing links will have them removed

Leave a Reply

Your email address will not be published. Required fields are marked *