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

Image may be NSFW.
Clik here to view.

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 Article


Image may be NSFW.
Clik here to view.

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


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

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

Image may be NSFW.
Clik here to view.

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


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

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

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


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


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

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

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

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


Image may be NSFW.
Clik here to view.

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

Image may be NSFW.
Clik here to view.

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


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

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


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

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

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


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