Skip to content

Instantly share code, notes, and snippets.

View oscarsiles's full-sized avatar

Oscar Siles Brügge oscarsiles

  • University of Nottingham
  • Nottingham, UK
View GitHub Profile
@cannikin
cannikin / README.md
Last active December 4, 2025 03:58 — forked from p123ad/README.md
Use Raspberry Pi Camera with Prusa Connect

Use Raspberry Pi and Pi Cam for Prusa Connect

I couldn't get the script from p123ad to work on my Pi Zero W 2 with Camera Module 3 (all kinds of ffmpeg errors). There are several built-in tools for working with the camera now, so I tried to figure out if I could use one of those instead.

Behold this version, which uses the built-in libcamera-still tool to actually interact with the camera and save a JPEG. That image is then uploaded to Prusa Connect, same as the original script.

Instructions

  1. Go to the Cameras section at https://connect.prusa3d.com
  2. Add a new camera by clicking "Add new other camera"
@ishad0w
ishad0w / README.md
Last active October 16, 2025 15:23
Debian 12 on Oracle Cloud (Free Tier) - (AMD64/ARM64)

Requirements:

⚠️ Only FRESH and CLEAN instances are supported. Ubuntu 22.04 (Minimal) images ONLY ⚠️

⚠️ Also you NEED to temporarily open the connection to the 1022 port in Security List / Ingress Rules for your VCN ⚠️

⚠️ After transformation YOU get a clean Debian 12 instance. All other data will be lost. ⚠️

The tmpfs partition is limited to 700m for x86_64 (free tier) compatibility.

@EhsanKia
EhsanKia / unpack_savedata.py
Created March 21, 2022 08:46
Unpacks Game Pass SAVEDATA for Tunic into individual Steam format
import re
with open('5E113D5F383749AEB72703486DD8247B', 'rb') as fp:
data = fp.read()
filenames = re.findall(rb'\d+\.txt', data)
contents = re.findall(rb'(true\|1[^\0]+)', data, re.DOTALL)
for name, content in zip(filenames, contents):
with open(name.replace(b'.txt', b'.tunic'), 'wb') as fp: