Posts By: jonny

Fish Shell Escape Delay

Using the fish shell I needed to increase a timeout to allow me to use Esc-. keyboard sequence to print the last argument from the previous line: Add the following line to ~/.config/fish/fish_variables to fix the problem:

Run a Linux Mint Web App from the CLI

I wanted to run 4-5 applications based on a keyboard shortcut on Linux Mint. The shortcut key runs a shell script that launches the applications I want for that key press. Some of the applications Creating the keyboard shortcut is straight-forward in Mint and is shown below: Then the script I wanted to run could… Read more »

Number 1

I was number 1 most active mapper in the UK charts today due to my contributions in County Down and East Belfast over the last few months. I can’t see that continuing as another Irish mapper b-unicycling is sure to take top spot soon.

Python Threads Querying CouchDB

With a list of 500,000 CouchDB endpoints to hit for info I wanted to speed up the process. There are multiple ways to do that but queues and threads worked fine for me. The script reads in a list from the file input.txt , then uses that to retrieve a list of documents from an… Read more »

Removing template_file from terraform state

I’ve run into this issue a few times so recording here for future reference. template_file has been deprecated in terraform but I occasionally perform a terraform init before realising that there is a template_file command in the code. I get the error: So I need to remove the template_file resource from state to continue. Listing… Read more »

Add Auth to Prometheus Container

Using docker-compose to run a prometheus container that I wanted basic auth added to. My docker-compose file is shown below: Notice that I am mounting a directory from the host into /etc/prometheus on the container exposing the web.yml file (see below). Also I am specifying the web.yml file as a command line parameter when prometheus… Read more »

Use Docker Registry in Podman

By default podman needs the full URL to pull in a docker image. So instead of: you need: To configure podman to to check the docker registry by default amend: And add the following