Quickly watch the GitHub run that you just pushed from the command line

 

The Github tools are cool, but mostly I just wanted a quicker way to confirm that my jobs had run successfully, rather than go to the web browser.

It was pretty easy to construct a command to make it a one liner, but first, the github cli tools need to be installed, and the jq utility.

Once thats setup when a git push has just been done, then this command should automatically watch the job.

Simon Lindsay Tue, 04/26/2022 - 08:39
Lightweight domain redirections with https support

I recently needed to perform some simple domain redirects, and surprise - there is a minimal docker container that is perfect for the job.

docker run -d --restart=always \
 -e REDIRECT_TARGET=https://domaintoredirect.biz \
 -e VIRTUAL_HOST=www.someotherdomain.com,someotherdomain.com \
 -e LETSENCRYPT_HOST=www.someotherdomain.com,someotherdomain.com \
 --name=domaintoredirect-biz -p 8080:80 morbz/docker-web-redirect

This works a treat, but does require a few things done first:

Simon Lindsay Mon, 03/22/2021 - 15:44

How to get MS Teams to do 'Always on Visible Workspace'

MS Teams has been adopted all over, but on Linux, they have annoyingly decided to not provide the default Window decorations, so Its not possible to right click, and enable 'Always on Visible Workspace' which is something I like to have on.

OOhhh, found a different way, hold down the ALT key and right click on the teams title bar and the popup has 'Always on Visible Workspace' as an option.

Creating components with Drupal

When you make a few Drupal sites, you will eventually find that you want to be able to take a feature that you created on one site and move it across to another site. After all, why re-invent the wheel!

My procedure for doing this has changed over time, using the features module was the way with Drupal 6 and Drupal 7, but with Drupal 8, we have better configuration management, and modules to help make things easier.

Features is again one of the modules that can be used, but I prefer a lighter approach, though its perhaps a little more work.

Simon Lindsay Mon, 01/25/2021 - 08:31
Furious fortnight

Covid means some extra time away from my day job at the University of Adelaide. This means I have a fortnight of time to work on side projects as if they were my full time gig. This is a great opportunity to knock some things out, so this is the plan.

Simon Lindsay Tue, 01/05/2021 - 14:09

macOS composer zsh issue

Recently I started having an issue with composer update or composer install on macOS. I ignored it for a bit and used Linux instead, but had to fix it eventually. When running composer update -n, the error was:

macOS setup for development

Mostly documenting for myself, but these are the steps it took to get quickly up to speed in macOS with php, composer, docker for development.

Disable blocking apps from the internet:

sudo spctl --master-disable

Now, install the applications that we want from known sources.

Simon Lindsay Thu, 10/01/2020 - 07:04
ssh agent forwarding on osx via ssh gotcha

With Docker Desktop for Mac, its finally possible to forward the ssh agents from the host through to a container. Wooohooo.

But. If you are accessing the Mac itself via ssh, then any ssh identities that are forwarded cannot be forwarded into the container.

Eg, I was on Linux, ssh'ing to the mac and trying to bring up the docker containers with the identity. It doesn't work, couldn't get the identities to come through.

Simon Lindsay Mon, 07/20/2020 - 19:50
Disabling snaps in Ubuntu 20.04

Have just upgraded to 20.04 and this time have disabled snaps completely.

https://www.kevin-custer.com/blog/disabling-snaps-in-ubuntu-20-10-and-20-04-lts/

Thanks Kevin and commenters.

Simon Lindsay Fri, 07/17/2020 - 19:06