prettycrontab
sysbox
prettycrontab | sysbox | |
---|---|---|
1 | 9 | |
1 | 209 | |
- | - | |
0.0 | 4.8 | |
about 3 years ago | 9 months ago | |
Go | Go | |
MIT License | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
prettycrontab
-
Ask HN: Tools you have made for yourself?
A bunch of shell scripts I've written over the years are available from https://git.marcofontani.it/mfontani/scripts
Very useful ones:
- evenodd, to colorize the background of lines of text so it's easier to see which start of text corresponds to which end of text
- time-rollup, to time the time it takes to run a given command and provide percentage-based statistics on the execution
- a wrapper around "jq" to make it DWIM w/regards to gzipped, bzipped, and zstd-compressed files
I've also put some full-fledged binaries on github:
- https://github.com/mfontani/prettycrontab which is a crontab pretty-printer which parses a possibly specially commented crontab to give you an overview of what's coming up next
- https://github.com/mfontani/tstdin to timestamp your stdin, and provide when the line was received, how long it was since the start of the command, and how long it was since the last line was received. Useful to add at the end of a pipe to both log and perform analysis on the output and time it took to do stuff
- https://github.com/mfontani/rofixec to "sorta template" a rofi (a X11 runner) runner so it picks commands from a given list (provided as yaml or json configuration) and executes the picked item in a background job
- https://github.com/mfontani/git-recent which helps you pick the most recent branches you've worked on, very useful when paired with fzf for picking
- https://github.com/mfontani/los-opinionated-git-tools instead contains a ton of useful little git-related scripts, from one which DWIMs the master/main/blead branch name to one which helps you reauthor the last commit, to one (git-rr) which helps you perform a git rebase with context info about the commits you're rebasing: which files they touched, etc - to make it easier to fixup together commits which touched the same file... which is an operation I do so often I've created a "git-fixup" script, which automates fixing up the currently committed file to the last commit which touched that file in the branch
sysbox
-
OpenBSD cron(8) now supports random ranges with steps
Yes, I first learned this and the name "splay" from CFengine, back in the day.
I put together a small busybox-like collection of sysadmin tools, and one of the subcommands is "splay" to sleep for a random amount of time. It's one of those things that is useful surprisingly often, even outside cron.
https://github.com/skx/sysbox
-
The Rust Implementation of GNU Coreutils Is Becoming Remarkably Robust
I remember in 1999 there was a project to reimplement a bunch of these tools in perl:
https://perlpowertools.com/
I even contributed a little, back then. I guess writing basic versions of "ls", for example, is trivial. But there's a lot of work getting all the tools done, with all the flags implemented and behaving as expected.
I guess there are tools like busybox, toybox, and similar, which also implement a lot of "stuff" to varying degrees of completion. From my side the biggest takeaway from those projects is the sheer convenience of deploying a single binary and installing symlinks to change functionality.
I replicated something similar with my sysbox project, collecting tools together in one golang binary with various subcommands:
https://github.com/skx/sysbox
I use at least one of those tools on a daily basis, though I suspect they're not so universally useful.
-
Operating Systems
If you've got perl installed you'll might have a "GET" binary present, mine is /usr/bin/GET, which comes with the WWW-module.
Although this is written in portable perl, rather than being compiled, so the static vs. dynamic choice doesn't really mean much it is a simple alternative.
Otherwise I built a simple busybox-inspired collection of tools, written in golang, which includes a simple HTTP client too:
https://github.com/skx/sysbox
Those are just a couple of examples, I'm certain there are multiple other choices out there. But I guess curl is ubiquitous enough that most people just use it directly, and add it when missing!
- sysbox: sysadmin/scripting utilities, distributed as a single binary
- Show HN: A collection of sysadmin utilities, in a single binary
-
M4 – the one true templating language
That's pretty cool.
I wrote something similar in my static collection of sysadmin tools - https://github.com/skx/sysbox - In my simple pre-processor I only allow two special things:
#include "file/goes/here"
-
Ask HN: Tools you have made for yourself?
I bundled together a small collection of sysadmin/scripting-tools here:
https://github.com/skx/sysbox
Those are probably amongst the things that I use most often which are non-standard.
-
Sd: My Script Directory
I used to have very full ~/bin, and ~/$(hostname), directories. In the end I pared them back and started bundling things together in one binary.
The end result is very similar to this approach, I run "sysbox blah", or "sysbox help", and use integrated subcommands.
Very helpful and makes deployment easy by having only a single binary:
https://github.com/skx/sysbox
Not bash/shell, but similar and useful idea to experiment with.
-
New Cli Tool (Golang) for custom commands (input during the execution) and with REPL
I support that in my sysbox utility-box, via the subcommands processor, and it is very helpful.
What are some alternatives?
pico8-deploy - An easy way to export and deploy PICO-8 projects to itch.io
jinja2-cli - CLI for Jinja2
shpotify - A command-line interface to Spotify.
dockly - Immersive terminal interface for managing docker containers and services
diffimg - Differentiate images in python - get a ratio or percentage difference, and generate a diff image
wireguird - wireguard gtk gui for linux
qdoc - Convert documentation within a Lua script into a Markdown file.
swuniq - A command-line tool for deduplicating entries in a file or stream with constant memory usage
m4b-tool - m4b-tool is a command line utility to merge, split and chapterize audiobook files such as mp3, ogg, flac, m4a or m4b
bluecircle-json-interf