Fun with Git and branching
In very brief terms, I hit an issue last week where I'd created four branches in a repo, having cloned the main branch of the upstream repo.Therefore, I'd done something like this: -git clone -b main...
View ArticleGo modules and forks
I'm tinkering with a Go project ( let's call it foobar ), which has a dependency upon yet another Go project ( let's call it snafu ) in the same organisation.For the moment, I've got a fork of snafu...
View ArticleReminder to self - check out Finch
From this: -Today we are happy to announce a new open source project, Finch. Finch is a new command line client for building, running, and publishing Linux containers. It provides for simple...
View ArticleRemoving filenames with special characters - a reminder
I've written this down somewhere before but ...I have a file that I created, by mistake, by abusing the target during a scp commandls -altrc-rw-r--r-- 1 root root 2541 Feb 2 02:15 '~'and I wanted to...
View ArticleFun and games with Docker login on macOS
I've been around the houses with Docker Desktop, Podman and Docker via Homebrew on my Mac over the past few monthsI saw something curious this morning, whilst trying to log into IBM Container Registry...
View ArticleReading up on the differences between Zsh and Bash
Typically, when writing self-documenting scripts, especially those used during a demonstration, I'd add a command such as: -read -p "Press [Enter] to continue"However, using Zsh on macOS 13.2.1...
View ArticleTIL: FuzzyFinder - fzf - and jq
Today I learned ( well, actually it was yesterday but who's counting days ? ) about fzf in the context of using it to test JQ expressions.The revelation came from Julia Evans, author of WizardZines,...
View ArticleIBM Cloud CLI - Debugging
From this: -Tips and Tricks for Using the IBM Cloud CLIwe have some rather useful debugging env vars such as: -- IBMCLOUD_API_KEY- IBMCLOUD_TRACE- IBMCLOUD_COLORetc.
View ArticleIBM Cloud and JQ - more querying fun
A colleague laid down a challenge - well, he didn't actually lay it down, he merely posted a single-line script that used awk and sed and grep - so I decided to build a better mousetrap ...The...
View ArticleToday I Learned - Munging Epochs using awk
So today I had a requirement to convert some Epoch-formatted dates, located in a CSV file, into human-readable dates...So today I learned about awk vs. gawk, and the strftime() function ...I also...
View ArticleIBM Container Registry - searching and formatting
So, when querying images that have been pushed to a namespace within IBM Container Registry, one can format the output to only return certain columns such as repository (image) name and tag.Who knew...
View ArticleUnix - redirecting output to /dev/null
In the past, I've used redirection to send output to /dev/null such as: -foobar 2> /dev/nullwhere foobar is a non-existent command/binary, but I want the error output ( stderr ) such as: -zsh:...
View ArticleWhy oh why did I forget vimdiff ?
Whilst trying to compare two branches of a GitHub repo on my Mac, I was using diff to compare/contrast specific files, and trying to parse the differences.And then I remembered vimdiffSource: Linux...
View ArticleToday I Learned - how to deal with Shell Check SC2086
So, technically I learned this yesterday but 🤷♀️As part of our CI/CD testing, we run shellcheck against our shell scripts, and saw the following: - ^----^ SC2086 (info): Double quote to prevent...
View ArticleWow, why have I not been using 1Password for my SSH keys before today ?
As an avid user of 1Password, I've only really just delved into the Command-Line Interface (CLI), including the ability to create AND use SSH keys.I'm running on macOS 13.4 and, as per the...
View ArticleUsing 1Password to store API keys ...
Following on from my earlier post: -Wow, why have I not been using 1Password for my SSH keys before today ? I've got a little further, with various API keys now stored in my 1Password vaultThis is far...
View ArticleOn the subject of aliases ...
I'm a super-massive fan of time/labour saving devices, and that goes for command-line tips n' tricks to save me: -(a) typing more stuff(b) looking in my notes to remember what I need, in order to type...
View ArticlemacOS to macOS File Sharing - Don't work, try The IT Crowd
I use File Sharing between two Macs on the same network, both running the latest macOS 13.4 Ventura.For some strange reason I wasn't able to access one Mac - a Mini - from the other - a MacBook Pro.As...
View ArticleWhy I can't install jq on Ubuntu 20.04
A friend asked me why they were unable to install jq onto their Ubuntu 20.04 Linux box - which seems like a perfectly reasonable to do / ask. So I tried ... And failed ... lsb_release -a No LSB...
View ArticleMore on macOS SMB sharing
As a follow-up to an earlier post: -macOS to macOS File Sharing - Don't work, try The IT CrowdI hit this problem again and referred back to my post, and also to Dan's post: -Solving a file sharing...
View ArticleGetting started with Python in Jupyter Notebooks
So, as we get ready to start a new year, I'm tinkering with a bunch of new ( to me ) tech toys, including wrangling Python dependencies.Having spent much of of the past year or so using pip and pyenv...
View ArticleVisual Studio Code - Wow 🙀
Why did I not know that I can merely hit [cmd] [p] to bring up a search box allowing me to search my project e.g. a repo cloned from GitHub etc. for a file name ?How long have I spent manually...
View ArticleLest I forget - how to install pip on Ubuntu
I seem to forget to remember this almost monthly, every time I spin up a new Ubuntu VMThis time around, it's Ubuntu 22.04 and I'm trying to install python3-pip ( aka pip3 or just pip )apt-get install...
View ArticleNote to self - use kubectl to query images in a pod or deployment
In both cases, we use JSON ...For a deployment, we can do this: -kubectl get deployment foobar --namespace snafu --output jsonpath="{..image}"which returns the image name(s) on the same lineOr we can...
View ArticleReminder - installing podman and skopeo on Ubuntu 22.04
This follows on from: -Lest I forget - how to install pip on UbuntuI had reason to install podman and skopeo on an Ubuntu box: -lsb_release -aNo LSB modules are available.Distributor...
View Article