-
Prevent Exit When Receiving SIGPIPE with Pipefail Set
When a program that is part of a pipeline quits, it closes its stdin and stdout. Programs that produce the input for the quitted process may still try to write to its stdin. Since they cannot, they will receive a SIGPIPE from the kernel.
Read more… -
Create MacOS App Bundle from Script
I’m going to show how to create the smallest possible MacOS app bundle we can: one that simply executes a Bash script. Then, I’m going to expand a bit on that and add an icon to it. I’ll also show how open a Terminal app window so we can see the script’s output in it.
Read more… -
Make passmenu Show GUI Pinentry When Using Pinentry Curses by Default
Let’s take a look at how to use a GUI
Read more…pinentry
for one program, andcurses
for everything else. -
Readline .inputrc Configuration Examples
These are some of my favorite
Read more…readline
tweaks. -
Sudo With Examples
I’ve recently finished “Sudo Mastery” by Michael W. Lucas. He’s a great and fun author that writes both technical guides and novels. I bought his "$ git commit murder" some years ago and was sold.
This post is basically a write-down of what I learned about
Read more…sudo
from his book. -
Read File into JSON List with jq
You have a file and you want to convert the contents into a JSON list. How can we leverage
Read more…jq
to do that? -
Pipe to Multiple Commands with Bash
Sometimes it’s handy to filter the output of a command (with
Read more…grep
, for example) while still having the column names (the first line) available. How do we go about that? -
Maven's Versions Plugin Updates All Your Dependencies With a Single Command
It’s a good habit to use the latest versions of the dependencies you use. Not only because the updated version might contain new features or better performance (one can hope), but also because bugs are fixed and security issues are tackled. If you go about it by hand, however, updating dependencies is a boring and tedious task. Luckily for us, there is the Maven
Read more…versions
plugin to help us. -
Oracle Sqlplus in a Small Docker Container
When you only need Sql*Plus, it’s good to have a small Docker image that you can use. This post will look at how to create this Docker image.
Read more… -
Automatic Rollback of Transactions in Spring Tests
Put
Read more…@Transactional
on your test class or methods and test-managed transactions will automatically be rollbacked.