TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

What's your favorite short, stand-alone program that is fun or useful?

2 pointsby arturo40over 3 years ago
When I say "stand alone" I mean not just a few lines of script in a complex software ecosystem. Calls to standard libraries are OK.

2 comments

mindcrimeover 3 years ago
Working with Kubernetes in our environment, I work with a lot of different K8S clusters. As such, I&#x27;m constantly needing to switch contexts, or double check what my current context is (pretty important, don&#x27;t want to run kubectl commands on the wrong cluster!). As such, I wrote a short program and installed it as a kubectl plugin, which lets me run a command like this:<p>kubectl context<p>and get a menu with a list of all the contexts currently stored in my kubeconfig, an indication of which one is selected, and the ability to select a new one by entering a single digit numeric ID.<p>It&#x27;s a fairly trivial thing, but it&#x27;s been disproportionately useful to me.
arturo40over 3 years ago
A couple very short programs I find useful are 1. a password generator 2. a math quiz program<p><a href="https:&#x2F;&#x2F;github.com&#x2F;majestical2022&#x2F;useful-and-pleasant" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;majestical2022&#x2F;useful-and-pleasant</a>