If you bake 2 lasagnes, and stack them, do you have 1 or 2 lasagnes?
This is the question that I asked a group of around 50 people this evening as part of a food for thought exercise. 37 replied before I decided to write this blog post, and here is a quick summary… The question was “If you bake 2 lasagnes, and then put one on top of the…
VSCode & PHP XDebug from Localhost, WSL2 and Docker containers
VSCode seems to be one of the up and coming IDEs over the last year. I personally switched from Jetbrains IDEs to VSCode fo most of my development work at some point in 2020. Apparently up until now I have avoided running the PHP debugger Xdebug. I had to do a little search around to…
dockerit v0.0.5 (Easier than docker run)
dockerit is a small CLI tool that I have been working on during the start of 2021. It’s intended to make running one off commands and CLI tooling easier in docker. Rather than having to write a long string of parameters for docker run, instead you can just use dockerit. This applies to both CLI…
Programmatically convert Github master branch to main
Back in 2020 Github said that the default settings for new repositories would change. On Oct. 1, 2020, any new repositories you create will use main as the default branch, instead of master Some blog post on Medium Github provided some advice for renaming branches focused around how this can be done in the UI.…
Testing WDQS Blazegraph data load performance
Toward the end of 2020 I spent some time blackbox testing data load times for WDQS and Blazegraph to try and find out which possible setting tweaks might make things faster. I didn’t come to any major conclusions as part of this effort but will write up the approach and data nonetheless incase it is…
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…
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…
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…
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…
Test if docker volume mounts are working
If you need some quick commands to paste to check if your docker volume mounting is working correctly here you go! Commands below!