Skip to content

Instantly share code, notes, and snippets.

View TheDevMinerTV's full-sized avatar

DevMiner TheDevMinerTV

View GitHub Profile
@thesamesam
thesamesam / xz-backdoor.md
Last active November 30, 2025 22:27
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.

Background

@aldy505
aldy505 / automated-deployment-systemd.md
Last active March 27, 2025 18:08
Automated deployment with systemd on remote server

Automated deployment with systemd on remote server

For any programming language, but this time, we'll do C# (ASP.NET Core backend application). I'm using GitHub Actions with no plugins or some fancy third party dependencies whatsoever, hopefully you can adapt this into your CI runner of choice.

The GitHub Actions file and the bash script file should be easily understood.

If you don't know what a certain command does, you should Google it.

Important

I would advise you to NOT use a public IP address, and you shouldn't open your port 22 publicly.

@wight554
wight554 / cool_down_to_temp_and_hold.py
Last active September 9, 2025 14:54
Klipper (kalico only) annealing macros
def format_time(minutes):
hours = minutes // 60
mins = minutes % 60
if hours > 0 and mins > 0:
return f"{hours}h{mins}m"
elif hours > 0:
return f"{hours}h"
else:
return f"{mins}m"