Today I learned how to use the QUOTIENT function in Excel ...
So, being the world's laziest person, I wanted to have Excel do some very very simple division and return the whole number portion, without the remainder.I've got a cell that contains a total amount...
View ArticleToday I Learned - useful keyboard shortcut for macOS
Last night, I chose to charge my Apple Magic Mouse - which, you might say, seems like a reasonable thing to do.The thing is that, anyone who "knows" the most recent generation of Magic Mice is aware of...
View ArticleGit is well-named - again
I was trying to push a newly created branch to a GitHub repository earlier, and kept seeing: -To github.com:Foobar/documentation.git ! [rejected] snafu-branch -> snafu-branch...
View ArticlePodman ate my hard disk ....
Well, not quitedocker build -t hello-world:latest -f Dockerfile .STEP 1/9: FROM nginx:mainline-alpineResolving "nginx" using unqualified-search registries...
View ArticleIBM Cloud Object Storage - where's my GUID
Before we start, GUID is an abbreviation for Globally Unique Identifier. It's a relatively widely used acronym, but I'd hate to assume that it's commonly known.So, whilst doing some work with IBM...
View ArticleYet more fun with jq, this time it's gosh-darned hyphens
I'm working with Kubernetes atm, and was trying / failing to retrieve a specific SecretThis was what I was running: -kubectl get secret bootstrap-token-abcdef --namespace kube-system --output JSON | jq...
View ArticleTIL - Logging into IBM Cloud with fewer keystrokes
So, back in the day i.e. earlier today, this is how I'd log into IBM Cloud: -ic login --apikey $(cat ~/keyfile_staging_payg.json | jq -r .apikey) -r us-south -a where I'm using cat and jq to parse a...
View ArticleWeirdness with the IBM Cloud CLI tool
A friend of mine was having some interesting fun and games with the IBM Cloud CLI tool: -ic plugin install vpc-infrastructureLooking up 'vpc-infrastructure' from repository 'IBM Cloud'...FAILEDUnable...
View ArticleFun with variables and space
Whilst doing some work with IBM Kubernetes Service (IKS), I wanted to define an environment variable containing a specific version of Kubernetes.Having checked what's available: -ic cs...
View ArticleMore fun with variables and spaces, with added jq
Following on from my earlier post: -Fun with variables and spaceI thought I'd have a little fun using jq to achieve a similar outcome, but without the need to munge the output using sed.This is with...
View ArticleGo and GitHub and downstream dependencies
I'm leaving this here to remind the future me ...Along with: -url.<base>.insteadOf which is better documented in git-config there's also a need to do something similar when using Go with...
View ArticleUbuntu, where's my stuff ( in /tmp ) ?
At present, I'm tinkering with Kubernetes on Ubuntu 18.04.6 LTS, and had placed some "important" files in /tmp.And then I rebooted ....And, of course, /tmp was cleared ... 🙀🙀🙀🙀This is, of course,...
View ArticlePort Stripping
So, like most things we do with tech, there's probably 73 different ways to achieve this particular requirement ...However, I had a specific need to parse a JSON document, pull out a specific key,...
View ArticleZSH and Git and auto-complete
Having finally made the switch to ZSH ( zsh ) on my Mac a few weeks back ( yeah, I know, right ? ), I've been tinkering with auto-complete etc.Lots of advice and guidance online, the simplest solution...
View ArticleMore fun with Git and ZSH, this time branch naming ...
Following on from my earlier post: -ZSH and Git and auto-completeI wanted to add the capability to display the name of the current GitHub repository branch in my Terminal.Thankfully, GitHub already...
View ArticlePodman say "No"
Whilst tinkering with podman today, I saw this: -podman imagesCannot connect to Podman. Please verify your connection to the Linux system using `podman system connection list`, or try `podman machine...
View ArticleZSH and history - going back in time
OK, so this didn't take long to "fix" ...As an ex-Bash user, I've had an alias setup on all my Unix boxen to allow me to list out my shell's history, without line numbers.So, therefore, rather than...
View ArticleBash and history - where's it gone ?
I logged into an Ubuntu 18.04.6 LTS box and noticed that my Bash history was completely and utterly gone.Having typed the command: -historyI got absolutely nothing back.Knowing that the command really...
View ArticleRunning Podman on Ubuntu 18.04
I'm leaving this to remind my future self ...echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_18.04/ /" | sudo tee...
View ArticleFun with Pip and Python on macOS 12.3 Monterey
I'm tinkering with a tool that uses pip and python, and was seeing: -zsh: /usr/local/bin/pip: bad interpreter: /usr/bin/python: no such file or directoryrepeatedly e.g.pip --version...
View Article