SShortSingh.
Back to feed

tinytools: 200 offline CLI utilities built on Node's standard library alone

0
·3 views

The author built tinytools, a set of 200 offline command-line utilities accessed through a single tt command, using only Node's standard library. The write-up highlights technical lessons, such as implementing TOTP via HMAC-SHA1 and testing it against RFC 6238 vectors, and handling cron's day-of-month and day-of-week semantics. It also describes a recursive-descent parser for the calc feature and a stdout truncation bug on macOS CI caused by calling process.exit right after a large pipe write. Each tool is tested against independently known answers, and the author notes that some of their own expected values were wrong until checked with Python. The project is MIT-licensed, downloads nothing, sends no telemetry, and changes files only when given an explicit flag.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingHacker News ·

Anthropic Shares Dip Below $83 IPO Price in Premarket Trading

Shares of Anthropic have fallen below their $83 initial public offering price during premarket trading, according to a Bloomberg report dated November 24, 2026. The move signals early investor pressure on the newly listed company's stock. The article text available is limited to a link and metadata, so further details on the cause of the decline are not confirmed here. Trading reports of this kind typically reflect early-session activity before regular market hours open. Readers are encouraged to consult the full Bloomberg article for complete context.

0
ProgrammingDEV Community ·

Generating Realistic Brazilian Job Titles in Python with Faker

A Python tutorial shows how to use the faker_job_brazil package to produce plausible Brazilian Portuguese occupation names for test data. The package adds a profissao() method to Faker that picks a random title from an embedded list of occupations. The guide covers installation in an isolated environment, registering the provider on a Faker instance, and seeding the generator for reproducible output. It also cautions that the package is an early, Alpha-stage release (0.0.1.dev0) with limited validation and outdated Python classifiers. Developers are advised to pin versions and avoid asserting specific random values in brittle tests.

0
ProgrammingDEV Community ·

Developer builds zero-dependency Mega.nz downloader for macOS without Java

A developer wanted to download Mega links on a Mac without installing a Java runtime, so they built MegaGet, a small Node server paired with a local web interface. The write-up explains how Mega's 32-byte file key is split to derive the AES key and nonce, which allows resuming interrupted downloads by setting the CTR counter to the byte offset divided by 16. It also describes how the chunked CBC-MAC integrity check maps onto Node's built-in aes-128-cbc, and how login's HTTP 402 Hashcash challenge is solved across four worker threads in a few seconds. The tool does not bypass Mega's transfer quota but waits and resumes when it is reached, and it is download-only. The project is MIT-licensed, has been tested mainly against a mock server, and the author is seeking real-world bug reports.

0
ProgrammingDEV Community ·

Ivory Adds ZooKeeper Plugin for Troubleshooting Ensemble Leaders, Followers and Znodes

A new ZooKeeper plugin for the Ivory tool lets operators inspect an ensemble's leader, followers, sync state and znodes from one screen. ZooKeeper coordinates systems such as ClickHouse replication and leader election in other HA tools, so its failures can cause hard-to-trace outages. Previously, diagnosing these issues meant manually running four-letter-word commands like mntr on each node, which were often blocked by the whitelist setting. Ivory reads the ensemble through mntr and conf commands and shows each node's role, members and version, flagging nodes configured into a different ensemble. The tool deliberately omits per-follower replication lag, since an inaccurate figure would be worse than none, and it offers configuration viewing and znode management but not manual leader election.