Quantcast
Channel: A Portal to a Portal

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 Article


Go 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 Article


Reminder 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 Article

Removing 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 Article

Fun 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 Article


Image may be NSFW.
Clik here to view.

Reading 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 Article

Image may be NSFW.
Clik here to view.

TIL: 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 Article

IBM 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 Article


IBM 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 Article


Today 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 Article

IBM 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 Article

Unix - 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 Article

Image may be NSFW.
Clik here to view.

Why 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 Article


Image may be NSFW.
Clik here to view.

Today 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 Article

Image may be NSFW.
Clik here to view.

Wow, 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 Article


Using 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 Article

On 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 Article


macOS 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 Article

Why 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 Article

Image may be NSFW.
Clik here to view.

More 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 Article

Image may be NSFW.
Clik here to view.

Getting 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 Article


Image may be NSFW.
Clik here to view.

Visual 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 Article


Lest 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 Article

Note 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 Article

Reminder - 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



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>