Skip to content

Instantly share code, notes, and snippets.

View plut0nium's full-sized avatar

Charles plut0nium

  • Belgium
View GitHub Profile
@plut0nium
plut0nium / README.md
Last active January 11, 2026 15:50
Installing a 3.5" TFT screen on a Raspberry Pi 4b

Pi TFT 3.5"

Most of the online documentation ask for running the infamous GoodTFT [LCD-Show] scripts.

I have issues running scripts from untrusted sources as root, and a quick look at the LCD35-Show script did not really convince me, as they:

  • are poorly written (imho)
  • call sudo on every command
  • will move/replace/erase existing config files without asking for user permission
  • may try to fetch other things from the net, using wget and/or git
  • are not up to date for latest versions of Raspberry Pi OS (e.g. some files have moved from /boot/ to /boot/firmware/)
@plut0nium
plut0nium / PKGBUILD
Last active August 29, 2025 13:14
PKGBUILD to build an Archlinux package for QCAD Professional Edition
# Maintainer: Charles Fourneau <charles.fourneau@proton.me>
pkgname=qcad-professional
pkgver=3.32.3.1
pkgrel=1
pkgdesc="A 2D CAD package based upon Qt - Professional Edition"
arch=('x86_64')
url="https://qcad.org"
license=('GPL-3.0-or-later')
provides=('qcad')
@plut0nium
plut0nium / 10-octoprint
Last active October 18, 2021 09:51
Getting a fully functional Octoprint installation on ArchlinuxARM (Raspberry Pi 3)
# edit with 'visudo -f /etc/sudoers.d/10-octoprint'
# allow octoprint to restart/poweroff
octoprint ALL =NOPASSWD: /usr/bin/systemctl poweroff,/usr/bin/systemctl halt,/usr/bin/systemctl reboot
@plut0nium
plut0nium / chaos_game.py
Created April 18, 2017 14:10
Draw a Sierpinski triangle using the Chaos game algorithm
# draw a Sierpinski triangle using the Chaos game algorithm
import random
import tkinter as tk
width = 640
height = 640
background_color = "#000000"
foreground_color = "#ffffff"
root = tk.Tk()