Month: January 2021

PHP 7 composer docker image digest

At some point in the last weeks the composer docker image that can be found on docker hub switched from PHP7 to PHP8. Some projects, such as wikibase-docker, still require PHP7 for installation. It looks like the composer image is not going to be providing an additional tag using a pre PHP 8 version, thus…

By addshore January 30, 2021 0

Go Docker SDK, Raw Terminal Ctrl+C handling

I spent my weekend in working on a new project called dockerit. It’s a simple wrapper around Docker written in Go and making use of the Docker SDK. One of the biggest sticking points for me, being fairly new with the Golang world, was trying to pass stdin stdout and stderr between the container and…

By addshore January 10, 2021 5

Simple Go defer code example

In Go, a defer statement will execute a function call just before the function it is called from returns. I found that most of the examples of a Go defer call online seemed to do complicated things with numbers. So here is a nice simple example with just text output. Example You can run this…

By addshore January 10, 2021 1

My Git Aliases

Overtime key presses really add up, especially when you use certain tools all throughout the day. Here are the bash and git aliases that I use for git to avoid doing some of these keypresses. I’m not sure how many times a day I use these shortcuts, or how many key presses I skip, but…

By addshore January 9, 2021 6