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

More fun with sed

Problem to be solved - I was looking for a way to insert a line into a file ( it's actually related to Terraform but, for the purpose of illustration, it's just a text file ), using sed.Here's a sample...

View Article


And even more sed fun - inserting a file into a file ...

Following on from an earlier post: -More fun with sedI can also choose to insert a whole block of text: -cat insert.txt  backend "s3" {    bucket                      = "$bucket"    endpoint...

View Article


Every day is a school day - Bash and macOS and aliases etc.

 So I've been using Bash on various Unices for the longest time - I think I started with BSD back in the late 90s, and then switched to various distributions of Linux, via AIX, and now mainly working...

View Article

A reminder - querying Kubernetes nodes by their labels

I have a requirement to inspect a particular label of the nine nodes that comprise my Kubernetes ( actually Red Hat OpenShift Container Platform ) cluster.The label in question is...

View Article

Automated creation of a Red Hat OpenShift cluster on IBM Cloud using the...

Talking of plugins, this is my post pluggin' someone else's blog: -Automated creation of a Red Hat OpenShift cluster on IBM Cloud using the existing CLIs and pluginsThis blog post is about automating...

View Article


Fun with Python and PyEnv on macOS

Via the Advent of Code 2021 I've been doing more with Python on macOS, and was struggling with versions, given that Apple kindly include Python 2 embedded in the OS, whereas I needed Python 3.10.0 for...

View Article

More fun with JQ - formatting

Following on from prior posts, a bit more tinkering with JQ, this time formatting the output.So here's my starting point, a JSON document: -simpsons.json [    {        "givenName": "Maggie",...

View Article

Image may be NSFW.
Clik here to view.

Don't be blue - debugging Bluetooth in macOS Monterey

Having noticed that Apple quietly removed Reset the Bluetooth module option: -in macOS 12 Monterey, I was pleased to "discover" that there is the "nuclear" option of kill the Bluetooth stack, via:...

View Article


JQ and output control and searching ... I must remember this

As per many many previous posts, I'm continuing to learn - and love - jq.One thing that's especially useful is the ability to be able to corral multiple facets together using the pipe ( | ) symbol,...

View Article


IBM Key Protect - Computer says "No"

Whilst tinkering with IBM Key Protect, the computer was most definitely saying "No" ic kp keys --instance-id $guidRetrieving keys...FAILEDkp.Error:...

View Article

TIL: Tracing IBM Cloud CLI

For no particular reason, I've "discovered" how to trace the IBM Cloud Command Line Interface (CLI) tool, which is useful.I'm mainly running on macOS and Linux and, in both cases, I can trace the CLI...

View Article

TIL: Logging into RedHat OpenShift Container Platform using an API key

So I've been logging into various OpenShift Container Platform (OCP) clusters for the longest time now, mostly using an API key.To facilitate this, I have an alias in my current shell ( I'm using macOS...

View Article

JQ vs jsonpath

Not sure why I'm not doing more with jsonpath but I do admire the elegance and simplicity of this: -kubectl get service cluster-proxy -n default -o=jsonpath='{.spec.clusterIP}'as compared to my default...

View Article


Kubernetes - messing about with nodes and taints

I've probably blogged about this before, but, today, I'm tinkering with Kubernetes ( well, OpenShift Container Platform ) nodes, in terms of understanding what taints are applied to what nodes, in...

View Article

Hey Aptitude, where's my disk space gone ?

Whilst upgrading an Ubuntu 20.04.3 LTS box, I hit messages such as: -...Ign:25 http://ubuntu.example.net/ubuntu-ports focal-security/universe s390x PackagesErr:27 http://ubuntu.example.net/ubuntu-ports...

View Article


IBM Cloud - Cleaning things up

I've been looking through my IBM Cloud account, with a view to nuking unwanted / unused components, services, capabilities etc.Today I'm targeting Cloud Foundry (CF), and, via the web UI, I found that...

View Article

Today I Learned - IBM Container Registry - Formatting the output ...

Having got into the use of JSON to format the output from various different IBM Cloud CLI tools, using jq and jsonpath as per this example: -JQ vs jsonpathHowever, for reasons known to them, the...

View Article


TIL: Suppressing Apple's "nagware" about ZSH

Whilst helping a colleague get to grips with shells on his Mac, including seeing what shells are out there: -cat /etc/shells# List of acceptable shells for chpass(1).# Ftpd will not allow users to...

View Article

In other news, upgrading Bash

Following on from my earlier post: -TIL: Suppressing Apple's "nagware" about ZSH reflecting the fact that macOS 12.1 Monterey still includes Bash 3.X: -bash --versionGNU bash, version 3.2.57(1)-release...

View Article

SSH keys and variables

Leaving this here to remind my future self ...I wanted to generate a variable containing my SSH public key ..I tried to simply copy the key to my clipboard and paste it into the variable: -export...

View Article
Browsing all 1850 articles
Browse latest View live


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