Skip to content

Instantly share code, notes, and snippets.

@jakob-hede
jakob-hede / apple_sleep.md
Last active March 25, 2024 15:05
apple_sleep 2023-11-15

apple_sleep 2023-11-15

Explanation

Fedora Linux on Apple MacBook might not be able to wake from sleep.
(Or it might eventually wake up, but it can take several minutes.)

This package apple_sleep is a workaround using isolation of CPUs, that allows the laptop to wake up from sleep within a normal timeframe.

@jakob-hede
jakob-hede / dupletor.py
Last active October 28, 2023 11:42
challenge_duplicate_file_deletor
#!/usr/bin/env python3
import sys
from pathlib import Path
# Do noisy debug spouting?:
# dobug = True
dobug = False
class File:
@jakob-hede
jakob-hede / gist:3fa0eb8c38e718536afd328ffab1becc
Last active October 21, 2023 08:29
SYSTEMD_UNIT_PATH | How to provide *additional* search paths for systemd unit files.
SYSTEMD_UNIT_PATH note 2023.10.21
How to provide *additional* search paths for systemd unit files.
----------------------------------------------------------------
SYSTEMD_UNIT_PATH can be used to provide additional search paths for systemd unit files - IF the variable ends with a colon.
SYSTEMD_UNIT_PATH MUST be available before systemd is started.
So the only way I have found to do this is to set it as "kernel parameters".