Introducing openapi-sorbet
, a command-line tool for generating Sorbet types from OpenAPI (2 mins read).

How to generate Sorbet type-checked models from OpenAPI specifications.
Introducing openapi-sorbet
, a command-line tool for generating Sorbet types from OpenAPI (2 mins read).
How to generate Sorbet type-checked models from OpenAPI specifications.
A simple, fast, and fun package for building command line apps in Go - GitHub - urfave/cli: A simple, fast, and fun package for building command line apps in Go
Go subcommand library. Contribute to google/subcommands development by creating an account on GitHub.
a little shell-based emoji picker. Contribute to biox/shmoji development by creating an account on GitHub.
Small tip: a delightful bash alias that helped me today alias '$'='' lets you copy tutorials that include '$' verbatim.swyx 🌴 (@swyx)Mon, 07 Feb 2022 16:19 GMT
A tool for glamorous shell scripts 🎀. Contribute to charmbracelet/gum development by creating an account on GitHub.
Weirdness with git diff-index
showing 1 file changed, 0 insertions(+), 0 deletions(-)
(1 mins read).
Something weird I hit last week with git diff-index
, which shows 1 file changed, but no changes.
Constructing a serialised YAML string in Ruby (1 mins read).
How to convert a YAML document to a string representation, preserving escaped newlines, with Ruby.
I have been a Vim user for 12 years and one important thing that you learn the first days using it is that you can be super efficient…
When should I use env
to start a command with environment variables? (2 mins read).
When you should use the env
command to specify environment variables when executing a command on the command-line (TL;DR: always).
Determining if there are uncommitted changes in Git (1 mins read).
A one-liner to work out whether there are uncommitted changes in a repository.
Building a fault-tolerant work queue for command-line executions with GNU Parallel (2 mins read).
How to use parallel
to create a lightweight work queue of commands, with retry logic and a record of what's been executed.
Removing 'smart' quotes from a file, on the command-line (2 mins read).
A one-liner with sed
to replace 'smart' quotes with regular quotes.
Recommended read: Introducing zq: an Easier (and Faster) Alternative to jq | Brim Data https://www.brimdata.io/blog/introducing-zq/
TIL MacOS has a built-in speed test tool.
Luke Holder (@lukeholder)Fri, 08 Apr 2022 01:39 +0000
TIL zgrep(1) is a shell script. BSD basically does “zcat | grep”, but GNU does “gzip -dc | sed”. How did I learn that? The fun way! CVE-2022-1271, arbitrary-file-write _and_ code execution vulnerability in GNU zgrep / gzip. openwall.com/lists/oss-secu…Jan Schaumann (@jschauma)Fri, 08 Apr 2022 13:30 +0000
Recommended read: That simple script is still someone's bad day https://rachelbythebay.com/w/2022/04/05/pipe/
Recommended read: More Than a Dozen Command Line Tools I've Written—and So Can You! · The Ethically-Trained Programmer https://blog.carlmjohnson.net/post/2018/go-cli-tools/
I've recently been doing similar with some of my utilities, albeit with an informal comparison between Ruby and Go versions, but would agree that for large, production critical scrips, this is a great way to do it
Recommended read: Rewriting Bash scripts in Go using black box testing https://stackoverflow.blog/2022/03/09/rewriting-bash-scripts-in-go-using-black-box-testing/
Running a command on a visual selection in Vim (1 mins read).
How to pipe the text in a visual selection to a command, either to run it, or to replace the text in the seletion.
Converting Spring Boot Property Variables to Environment Variables with Go (1 mins read).
A command-line script to convert a Spring Boot property to an environment variable.
Pretty Printing JSON Web Tokens (JWTs) on the Command Line using Go (2 mins read).
How to easily introspect and pretty print a signed JWT (JWS) or an encrypted JWT (JWE) on the command line using Go.
Reading all of stdin
on the command-line with Go (1 mins read).
How to read the whole of stdin
, up to EOF, with Go.
Combining an Audio-only and Video-only MP4 with ffmpeg
on the command-line (1 mins read).
How to use ffmpeg
to combine two MP4 files, where each file contains audio and video separately.
there is a special place in hell for developers who give their cli’s -v flag a meaning other than version/verbose
Anna 🏳️⚧️ #blm (@addaleax)Wed, 16 Feb 2022 13:13 GMT
Bundling Multi-File OpenAPI Documents into a Single File (2 mins read).
Looking at the options we have for converting a multi-file OpenAPI specification to a single document.
Generating Favicons using ImageMagick on the Command-Line (1 mins read).
How to generate a multi-size favicon.ico
on the command-line using ImageMagick.
The fact that “grep” stands for global regex print, which is 4000x times easier to understand than trying to understand grep in abstract just neatly summarises the entire Linux ecosystem in a nutshell to me 😂
Lou ☁️ 👨💻🏋️♂️🎸🚴🏻♂️🏍 (@loujaybee)Sat, 05 Feb 2022 20:13 GMT
The worst crime the open source community ever committed was making two tools, one called 'useradd' and the other called 'adduser' and making them do almost the same thing.
🍃 f o r e s t ~ w i t c h 🌻 (@endlesstemple)Fri, 04 Feb 2022 05:16 GMT
Replacing Text in Vim with the Output of a Command (1 mins read).
How to replace text under the cursor with the output of a command.
Create Executables, not Shell Aliases or Functions (2 mins read).
Why I create standalone executable scripts instead of shell aliases or functions.
Decades of UNIX and Linux use have taught me to love the terminal more than any other app out there. If there's one thing I'd recommend any newcomer learn, it's how to tame the command line.
Daniel Cuthbert (@dcuthbert)Tue, 25 Jan 2022 16:42 GMT
I find it absurdly funny that you can type "man <command>" unironically and have the command explained to you
Tierney Cyren, the Cosmic Equine (@bitandbang)Fri, 07 Jan 2022 19:49 GMT
How old were you when realized that grep was g/re/p ? I'm 39
Juan Pablo Daniel (@jpdborgna)Mon, 27 Dec 2021 19:42 GMT
Recommended read: Fix the unit test and open a giant hole everywhere http://rachelbythebay.com/w/2021/12/24/mkdir/
TIL that it’s possible (if not easy) to use `locate` & `updatedb` with independent directory structures in addition to system wide. A la # locate -d ./locatedbGrant Taylor (@DrScriptt)Sun, 19 Dec 2021 08:39 GMT
Getting the Battery Status of a Bluetooth Device on Linux (1 mins read).
How to use dbus-send
to retrieve the percentage of battery left on a Bluetooth device on Linux.
Converting an Image to a Base64 data
URL with Node.JS (1 mins read).
How to convert an image to a data
URL using Node.JS on the command-line.
Recommended read: How to use dig https://jvns.ca/blog/2021/12/04/how-to-use-dig/
did you know that if you put `+noall +answer` into `~/.digrc`, it'll make your dig output easier to read? here's a before/after
🔎Julia Evans🔍 (@b0rk)Sat, 04 Dec 2021 14:59 GMT
Recommended read: shell - What is the difference between the Bash operators [[ vs [ vs ( vs ((? - Unix & Linux Stack Exchange https://unix.stackexchange.com/questions/306111/what-is-the-difference-between-the-bash-operators-vs-vs-vs
Controlling the Linux Backlight via the Command-Line (1 mins read).
How to manage your screen backlight on the command-line, without installing any tools.
RT @type__error Running something with the —verbose flagCarol 🌻 (@CarolSaysThings)Thu, 19 Aug 2021 11:26 +0000
Encoding Strings for Embedding in JSON with Ruby on the Command-Line (1 mins read).
How to easily convert a string to a format that can be used as a value for JSON strings.
Parsing Encoded JSON Strings on the Command-Line with Ruby (1 mins read).
How to decode an encoded JSON string.
Fun fact: Alfred Aho is the A in Awk. The w and k are Peter Weinberger and Brian Kernighan. The trio created the software tool in 1977Post details
And the Turing Award for best compilation goes to... Jeffrey Ullman and Alfred Aho reg.cx/3Za7The Register (@TheRegister)Thu, 01 Apr 2021 01:06 +0000
The Register (@TheRegister)Thu, 01 Apr 2021 18:21 +0000
You're currently viewing page 1 of 3, of 137 posts.