Skip to content

Instantly share code, notes, and snippets.

@VinDuv
VinDuv / acts_emu.py
Created February 2, 2024 06:09
ACTS time sync emulator for Atomic Clock 2.0
#!/usr/bin/env python3
"""
Simulates a modem that will connect to an ACTS time sync server.
"""
# https://www.nist.gov/pml/time-and-frequency-division/time-distribution/
# automated-computer-time-service-acts
# https://pdfs.semanticscholar.org/65b9/d62c0c0002781d22e00ff6456c8b1baa4420.pdf
#!/usr/bin/swift
/*
* Apple Photos duplicate remover
*
* This script identifies exact duplicates in the default Apple Photos library, and removes them.
*
* It uses the standard Apple Photos API so there is no risk of corrupting the library.
* When duplicates are found, it creates two albums with the duplicates to be kept and the ones to be removed
* so you can check the results.
@VinDuv
VinDuv / restore-classic-ipod-hfs.md
Created August 25, 2021 18:13
Restore a classic iPod to HFS+ without iTunes

How to restore a classic iPod to Mac format (HFS+) without iTunes

This tutorial explains how to reinstall the firmware of a classic iPod (tested on iPod 3G) to Mac format (Apple partition map and HFS+ filesystem — “MacPod”), without using iTunes. This is useful when you replace the iPod’s original HDD.

Use case

diff --git a/src/gxf.c b/src/gxf.c
index f306369..267d7a0 100644
--- a/src/gxf.c
+++ b/src/gxf.c
@@ -19,6 +19,8 @@ void *gl2_stack_base = &gl2_stack[GL_STACK_SIZE];
bool in_gl12(void)
{
+ return false;
+
@VinDuv
VinDuv / smol-penguins.diff
Created January 23, 2021 17:37
Display the boot logo at a smaller size for low-power CPUs
diff --git a/drivers/video/fbdev/core/fbmem.c b/drivers/video/fbdev/core/fbmem.c
index 8268bbee8..708c1846e 100644
--- a/drivers/video/fbdev/core/fbmem.c
+++ b/drivers/video/fbdev/core/fbmem.c
@@ -45,6 +45,8 @@
#define FBPIXMAPSIZE (1024 * 8)
+#define RESIZE_RATIO 75
+
@VinDuv
VinDuv / atalk-linux.md
Last active November 3, 2024 18:07
AppleTalk on Linux issues and fixes

AppleTalk on Linux

The appletalk Linux module provides support for AppleTalk sockets and routing, allowing the Netatalk tools to work properly. There are, however, some issues with the current implementation.

Note: All issues are now fixed; this document is left as reference.

Module loading issue (Linux kernel v5.1-rc1 to 5.8, fixed in 5.9)