2015-06-10 23:29:52 +00:00
|
|
|
GOUTILS
|
|
|
|
|
|
|
|
This is a collection of small utility code I've written in Go; the `cmd/`
|
|
|
|
directory has a number of command-line utilities. Rather than keep all
|
2023-05-05 00:10:41 +00:00
|
|
|
of these in superfluous repositories of their own, or rewriting them
|
|
|
|
for each project, I'm putting them here.
|
|
|
|
|
|
|
|
The project can be built with the standard Go tooling, or it can be built
|
|
|
|
with Bazel.
|
2016-06-16 06:24:51 +00:00
|
|
|
|
2015-06-10 23:29:52 +00:00
|
|
|
Contents:
|
|
|
|
|
2017-11-16 16:22:46 +00:00
|
|
|
ahash/ Provides hashes from string algorithm specifiers.
|
2016-04-28 21:16:37 +00:00
|
|
|
assert/ Error handling, assertion-style.
|
2015-10-26 23:08:17 +00:00
|
|
|
cmd/
|
2017-05-03 18:01:01 +00:00
|
|
|
atping/ Automated TCP ping, meant for putting in cronjobs.
|
2015-10-26 23:08:17 +00:00
|
|
|
certchain/ Display the certificate chain from a
|
|
|
|
TLS connection.
|
|
|
|
certdump/ Dump certificate information.
|
2017-01-06 05:02:28 +00:00
|
|
|
certexpiry/ Print a list of certificate subjects and expiry times
|
|
|
|
or warn about certificates expiring within a certain
|
|
|
|
window.
|
2016-01-15 07:08:12 +00:00
|
|
|
certverify/ Verify a TLS X.509 certificate, optionally printing
|
2016-04-28 21:16:37 +00:00
|
|
|
the time to expiry and checking for revocations.
|
2016-01-15 06:09:55 +00:00
|
|
|
clustersh/ Run commands or transfer files across multiple
|
2015-12-23 04:54:59 +00:00
|
|
|
servers via SSH.
|
2017-11-15 19:27:38 +00:00
|
|
|
cruntar/ Untar an archive with hard links, copying instead of
|
|
|
|
linking.
|
2016-04-28 21:16:37 +00:00
|
|
|
csrpubdump/ Dump the public key from an X.509 certificate request.
|
2023-05-12 02:41:33 +00:00
|
|
|
data_sync/ Sync the user's homedir to external storage.
|
2023-05-05 05:58:21 +00:00
|
|
|
diskimg/ Write a disk image to a device.
|
|
|
|
eig/ EEPROM image generator.
|
2015-10-26 23:08:17 +00:00
|
|
|
fragment/ Print a fragment of a file.
|
2015-10-26 23:37:44 +00:00
|
|
|
jlp/ JSON linter/prettifier.
|
2018-09-15 22:08:37 +00:00
|
|
|
kgz/ Custom gzip compressor / decompressor that handles 99%
|
|
|
|
of my use cases.
|
2023-05-05 05:58:21 +00:00
|
|
|
parts/ Simple parts database management for my collection of
|
|
|
|
electronic components.
|
2016-01-15 06:09:55 +00:00
|
|
|
pem2bin/ Dump the binary body of a PEM-encoded block.
|
2015-10-26 23:08:17 +00:00
|
|
|
pembody/ Print the body of a PEM certificate.
|
2017-01-06 05:02:28 +00:00
|
|
|
pemit/ Dump data to a PEM file.
|
2015-10-26 23:08:17 +00:00
|
|
|
readchain/ Print the common name for the certificates
|
|
|
|
in a bundle.
|
2017-05-03 18:01:01 +00:00
|
|
|
renfnv/ Rename a file to base32-encoded 64-bit FNV-1a hash.
|
2017-11-16 16:22:46 +00:00
|
|
|
rhash/ Compute the digest of remote files.
|
2023-05-04 23:07:34 +00:00
|
|
|
showimp/ List the external (e.g. non-stdlib and outside the
|
|
|
|
current working directory) imports for a Go file.
|
2017-09-26 23:01:36 +00:00
|
|
|
ski Display the SKI for PEM-encoded TLS material.
|
2023-05-05 05:58:21 +00:00
|
|
|
sprox/ Simple TCP proxy.
|
|
|
|
stealchain/ Dump the verified chain from a TLS
|
2023-05-04 23:07:34 +00:00
|
|
|
connection to a server.
|
2023-05-05 05:58:21 +00:00
|
|
|
stealchain- Dump the verified chain from a TLS
|
|
|
|
server/ connection from a client.
|
2017-10-20 19:38:41 +00:00
|
|
|
subjhash/ Print or match subject info from a certificate.
|
2015-11-18 17:36:05 +00:00
|
|
|
tlskeypair/ Check whether a TLS certificate and key file match.
|
2017-01-06 05:02:28 +00:00
|
|
|
utc/ Convert times to UTC.
|
2017-05-03 18:01:01 +00:00
|
|
|
yamll/ A small YAML linter.
|
2023-05-05 05:58:21 +00:00
|
|
|
config/ A simple global configuration system where configuration
|
|
|
|
data is pulled from a file or an environment variable
|
|
|
|
transparently.
|
|
|
|
dbg/ A debug printer.
|
2016-04-28 21:16:37 +00:00
|
|
|
die/ Death of a program.
|
2017-11-16 16:23:12 +00:00
|
|
|
fileutil/ Common file functions.
|
2015-12-23 04:54:59 +00:00
|
|
|
lib/ Commonly-useful functions for writing Go programs.
|
|
|
|
logging/ A logging library.
|
|
|
|
mwc/ MultiwriteCloser implementation.
|
2023-05-05 05:58:21 +00:00
|
|
|
rand/ Utilities for working with math/rand.
|
2015-12-23 04:54:59 +00:00
|
|
|
sbuf/ A byte buffer that can be wiped.
|
2023-05-05 05:58:21 +00:00
|
|
|
seekbuf/ A read-seekable byte buffer.
|
|
|
|
syslog/ Syslog-type logging.
|
2017-11-16 16:23:12 +00:00
|
|
|
tee/ Emulate tee(1)'s functionality in io.Writers.
|
|
|
|
testio/ Various I/O utilities useful during testing.
|
|
|
|
testutil/ Various utility functions useful during testing.
|
2015-12-23 04:54:59 +00:00
|
|
|
|
2017-11-15 19:27:38 +00:00
|
|
|
|
2016-04-28 21:21:44 +00:00
|
|
|
Each program should have a small README in the directory with more
|
|
|
|
information.
|
2015-06-10 23:29:52 +00:00
|
|
|
|
2023-05-04 23:07:34 +00:00
|
|
|
All code here is licensed under the ISC license.
|