Ubuntu tweaks

By | May 28, 2024

To remove the confirmation every time you shutdown or reboot, type this into the terminal. To remove the GRUB (the GRand Unified Bootloader) option during startup to boot faster, add to the file /etc/default/grub. (sudo is required to edit). eg: GRUB is basically a boot loader that helps uses to choose what OS they want… Read More »

Displaying data with dynamic accordion

By | November 12, 2023

If you want to have an accordion feature to show extra data where you are displaying data from a database on an existing row, you need create set some extra attributes on the first row. One important attribute is data-target which needs to contain a dynamic value such as This then points to the second… Read More »

Thumbnail bug in python simple gallery

By | November 8, 2023

Python simple gallery is pretty neat but there is an issue when generating thumbnails if your photos are named a certain way. The filename is split at the first dot and then .jpg is added to the file name. My photos are named: 2023-09-24 19.00.43.jpg which means everything after the hour is truncated. ie the… Read More »

Adding a GitHub webhook to Django

By | October 26, 2023

Here is a neat article to follow if you are looking to use Django to respond to a GitHub webhook. https://simpleisbetterthancomplex.com/tutorial/2016/10/31/how-to-handle-github-webhooks-using-django.html

Category: Git