Skip to content

Instantly share code, notes, and snippets.

View weygoldt's full-sized avatar

Patrick Weygoldt weygoldt

View GitHub Profile
@weygoldt
weygoldt / Makefile
Created July 22, 2024 06:35
A simple makefile for quarto presentations.
QUARTO_SOURCE = slides.qmd
QUARTO_OUTPUT = slides.html
AUX_FILES = slides_files
.PHONY: all watch clean
all: $(QUARTO_OUTPUT)
$(QUARTO_OUTPUT): $(QUARTO_SOURCE)
quarto render $(QUARTO_SOURCE) --output=$(QUARTO_OUTPUT)
@weygoldt
weygoldt / rsync_backup.py
Created December 11, 2023 16:34 — forked from seebk/rsync_backup.py
Python rsync backup script
#!/usr/bin/python3
#######################################################
# Python rsync Backup script
# Sebastian Kraft, 24.06.2013
#
#######################################################
#-----------------------------------------------------
# Config
@weygoldt
weygoldt / backup.md
Created November 30, 2023 18:46 — forked from niklaskeerl/backup.md
Encrypted backup using an external hard drive with luks and timeshift
@weygoldt
weygoldt / suicide
Created April 12, 2023 13:51
A simple shell script that deletes itself.
#!/bin/bash
# Make sure to make a backup of me before you run me!
# This is a script that deletes itself!
# Why? Just for fun!
ABSOLUTE_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/$(basename "${BASH_SOURCE[0]}")"
echo "Bye!"
rm $ABSOLUTE_PATH
@weygoldt
weygoldt / platformio-cli-setup.md
Last active April 4, 2023 12:34
Everything I need to interface with MCUs on the command line.

PlatformIO - Lazy hardware development on the command line

From the pio website:

PlatformIO is a cross-platform, cross-architecture, multiple framework, professional tool for embedded systems engineers and for software developers who write applications for embedded products.

It is mainly advertised to be a VSCode plugin, that turns VSCode into an ArduinoIDE like thing. But that is too mainstream for us. PlatformIO is based on a simple command line toolbox, so lets use that instead. Everything I mention here are just notes I took while reading the official doc. Refer to that for more info.

Installation