Skip to content

Instantly share code, notes, and snippets.

View Moondarker's full-sized avatar

Moondarker

  • Saint-Petersburg, Russia
  • 16:52 (UTC +03:00)
View GitHub Profile
@Moondarker
Moondarker / README.md
Last active October 19, 2024 10:38
Fixing device UUIDs in BCD under Linux

Fixing device UUIDs in BCD under Linux

Please note, it's easier to just use a recovery flash drive/dvd disk!

I just wanted a new challenge, and I found it:

Info on target system

My friend has switched from Windows to Fedora. Somehow in the process, Windows Bootloader went missing from EFI partition (I would love to know how did that happen as much as you do or don't, but I wasn't supervising at the moment, so... no idea)

@Moondarker
Moondarker / upscmd.py
Created November 26, 2023 03:04
upscmd python3 rewrite for telnetlib3
#!/usr/bin/python3
import asyncio, telnetlib3
import sys
user = "REPLACEME_UPS_USER"
pwd = "REPLACEME_UPS_PWD"
if len(sys.argv) == 2:
cmd = sys.argv[1]
else:
@Moondarker
Moondarker / keybase.md
Created November 20, 2023 06:30
keybase.md

Keybase proof

I hereby claim:

  • I am Moondarker on github.
  • I am vaker (https://keybase.io/vaker) on keybase.
  • I have a public key whose fingerprint is 17C7 273C 9551 5929 948C 5E55 71A1 6E49 35D1 0DA1

To claim this, I am signing this object:

@Moondarker
Moondarker / rplace_palette.py
Last active April 12, 2022 17:40
rplace palette checker
from PIL import Image, ImageColor
from math import sqrt
import sys
PALETTE = ["#6D001A", "#BE0039", "#FF4500", "#FFA800", "#FFD635", "#FFF8B8", "#00A368", "#00CC78", "#7EED56", "#00756F", "#009EAA", "#00CCC0", "#2450A4", "#3690EA", "#51E9F4", "#493AC1", "#6A5CFF", "#94B3FF", "#811E9F", "#B44AC0", "#E4ABFF", "#DE107F", "#FF3881", "#FF99AA", "#6D482F", "#9C6926", "#FFB470", "#000000", "#515252", "#898D90", "#D4D7D9", "#FFFFFF"]
rgb_palette = []
def hex_to_rgb(hex: str):
return ImageColor.getcolor(hex, "RGB")
@Moondarker
Moondarker / an_rplace_timelapse_tools
Last active April 7, 2022 18:16
Barebones Node.JS + ffmpeg multithreaded image processing scripts used for my r/place zoomed in timelapses
~~used for name only~~