Quantcast
Channel: A Portal to a Portal
Browsing all 1850 articles
Browse latest View live

YIL - Where does Apple keep its podcasts on macOS ?

I wanted to grab a copy of a bunch of podcasts that I'd downloaded via the Apple Podcasts app ( I usually listen to them on my iPhone, but they're also replicated on my MacBook ).A quick Google led me...

View Article


Image may be NSFW.
Clik here to view.

TIL - Searching back through zsh history on macOS

A friend just showed me a rather nifty CLI hack on macOS.With an iTerm session going, hit [ctrl][r] and search back through zsh historySo, as per the screenshot, I hit that sequence and typed in kube -...

View Article


Reminder - how to split strings in a shell script

There's almost certainly 73 different ways to do this, but this worked for meThe problem to be solved ... I have a string containing three container architectures: -export architecture="amd64 s390x...

View Article

Giving Twitter the bird ...

After 15 years or so, I decided to jump out of the Twitter-verse, and join Mastodon ...I'm probably following the herd ( well, a mastodon is kinda like a mammoth, which must've been a herd critter ),...

View Article

Weirdness with Go

Whilst tinkering ( my fave word ) with a Go project,  I was trying to force a complete rebuild of the module, via go mod tidy.Now I started by removing go.mod and go.sum : -rm go.modrm go.sumAnd, when...

View Article


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
Browsing all 1850 articles
Browse latest View live


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