Hacker News with Generative AI: Command Line

ANSI Escape Sequences Cheatsheet (github.com)
Instantly share code, notes, and snippets.
/usr/bin/env -S uv run (simonwillison.net)
This is a really neat pattern. Start your Python script like this:
chawan: A web browser for your terminal (sr.ht)
MdBook – a command line tool to create books with Markdown (rust-lang.github.io)
mdBook is a command line tool to create books with Markdown. It is ideal for creating product or API documentation, tutorials, course materials or anything that requires a clean, easily navigable and customizable presentation.
Install FreeBSD with One Command (wordpress.com)
While I like the FreeBSD bsdinstall(8) profile named Auto (ZFS) – there is one thing that I really do not like about it.
Useful built-in macOS command-line utilities (weiyen.net)
Sometimes when I'm bored, I like to look at the list of macOS Bash commands. Here's some commands that I found interesting:
Parsing arguments in Rust with no dependencies (ntietz.com)
When pairing with my friend Emily, we had a choice of what to implement in her project: start a new feature, or add a command line argument parser? We opted for the latter, because it had to happen eventually and it was more well bounded. It ended up having a lot of depth!
Show HN: A Terminal filesystem navigator (github.com/willmcgugan)
An experimental filesystem navigator for the terminal, built with Textual
Creating Runtime and Application Images with JLink (2021) (dev.java)
With the command line tool jlink you can select a number of modules, platform modules as well as those making up your application, and link them into a runtime image.
ASCII control characters in my terminal (jvns.ca)
Hello! I’ve been thinking about the terminal a lot and yesterday I got curious about all these “control codes”, like Ctrl-A, Ctrl-C, Ctrl-W, etc. What’s the deal with all of them?
You-get: Dumb downloader that scrapes the web (github.com/soimort)
You-Get is a tiny command-line utility to download media contents (videos, audios, images) from the Web, in case there is no other handy way to do it.
The Anvil Text Editor (anvil-editor.net)
Anvil is a graphical, multi-pane tiling editor that makes bold use of the mouse and integrates closely with the shell. It supports syntax highlighting, multiple cursors and selections, remote file editing, and contains a powerful text manipulation language.
Cat without cat on the commandline (2020) (jarv.org)
Say you want to display the contents of a file on the command line. The first tool we most of us reach for is cat, which does a fine job at just this.
The useful use of cat (mrmr.io)
Some people insist that we should never use a cat.
bc Is the Only Calculator You Need in Unix (medium.com)
bc, for basic calculator, is an arbitrary-precision calculator language with syntax similar to the C programming language. In this post, we will explore the features of bc and how to use it.
Node.js, Pipes, and Disappearing Bytes (sxlijin.github.io)
Someone in one of my online communities recently asked about why their Node command was dropping output when piped to another command:
Show HN: Makedown – A Markdown powered Makefile alternative (github.com/tzador)
makedown (aka Makefile + Markdown) is motivated by developers need to define multiple scripts in one file next to their documentation, and have a handy way to run them from terminal.
macOS defaults: a list of macOS defaults commands with demos (macos-defaults.com)
The Unix Workbench (seankross.com)
This work by Sean Kross is licensed CC0. Zero rights reserved.
We need more zero config tools (arne.me)
Recently, I’ve become fond of (command line) tools that just work, out of the box.
Show HN: Facad – A colorful directory listing tool for the command line (github.com/yellow-footed-honeyguide)
A modern, colorful directory listing tool for the command line 🗃️
Show HN: Pipet – CLI tool for scraping and extracting data online, with pipes (github.com/bjesus)
Pipet is a command line based web scraper. It supports 3 modes of operation - HTML parsing, JSON parsing, and client-side JavaScript evaluation. It relies heavily on existing tools like curl, and it uses unix pipes for extending its built-in capabilities.
How to test CORS on the command line with curl (zufallsheld.de)
In my last TIL I talked about how to set additional security headers for Gitlab. But I also had to do this for other applications I was supporting, where it was more straight-forward to do it (meaning: with code).
The Dune Shell (adam-mcdaniel.github.io)
Dune is a shell designed for powerful scripting. Think of it as an unholy combination of bash and Lisp.
Plain Text Accounting (PTA) (plaintextaccounting.org)
Welcome! Plain text accounting is a way of doing bookkeeping and accounting with plain text files and scriptable, command-line-friendly software, such as Ledger, hledger, or Beancount.
Git Bash is my preferred Windows shell (ii.com)
Browsing Hacker News in the Terminal (ggerganov.com)
HNTerm is a Hacker News client for the terminal.
Cron Jobs on Linux – Comprehensive Guide with Examples (ittavern.com)
Cron jobs are scheduled and automated tasks that run commands or scripts on Linux.
Creating a Git commit the hard way (avestura.dev)
Desed: Demystify and debug your sed scripts (github.com/SoptikHa2)
Demystify and debug your sed scripts, from comfort of your terminal.