Check out this picture and toggle dark mode or light mode on your GitHub profile to see it change!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys, os, stat, errno, operator, time, datetime, requests | |
from fuse import FUSE, Operations, LoggingMixIn, FuseOSError | |
from mastodon import Mastodon | |
from cachetools import TTLCache, cachedmethod | |
from mastodon.return_types import MediaAttachment, Account, Status | |
class PathItem: | |
def __init__(self, path_type, mtime=None, size=0, symlink_target=None, read_fn=None, listdir_fn=None): | |
self.path_type = path_type | |
self.mtime = mtime or time.time() |
Since February 2025, Debian 13 (Trixie) and APT introduced the deb822 format for managing APT sources. This new format replaces the traditional /etc/apt/sources.list
file with the more structured and readable /etc/apt/sources.list.d/debian.sources
file.
This change was introduced by APT, starting with an update that enabled users to run:
apt modernize-sources
This command automatically converts the old sources.list
format to the new deb822
format.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: helm.toolkit.fluxcd.io/v2 | |
kind: HelmRelease | |
metadata: | |
name: &name mosquitto-printer | |
namespace: homeautomation | |
spec: | |
chart: | |
spec: | |
chart: mosquitto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import itertools | |
import typing | |
import math | |
import cairo | |
import shapely.affinity | |
import shapely.geometry | |
DISTANCE_CUTOFF = 2 # max jump length to bridge with a curve |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from time import sleep, monotonic | |
import pi_servo_hat | |
# from brachiograph import BrachioGraph | |
# from plotter import Plotter | |
import tqdm | |
import math | |
import json | |
import readchar | |
import pprint | |
import numpy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
import argparse | |
SOURCE_PORT = 1900 | |
DESTINATION_PORT = 2021 | |
MULTICAST_ADDRESS = '239.255.255.250' | |
def main(): | |
payload = get_payload() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# scruss, 2024-12 | |
# MicroPython | |
""" | |
a very simple Cheerlights MQTT client for MicroPython | |
Uses Peter Hinch's MicroPython Asynchronous MQTT library | |
— https://github.com/peterhinch/micropython-mqtt/ | |
Install it with: | |
mpremote mip install github:peterhinch/micropython-mqtt |
Caution
This table is outdated. See also the [Fedify's docs].
The [OpenTelemetry Semantic Conventions] currently do not have a specification for ActivityPub as of November 2024. However, Fedify provides a set of semantic attributes for ActivityPub. The following table shows the semantic attributes for ActivityPub:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ColorSchemeApp.swift | |
// ColorScheme | |
// | |
// Created by Craig Hockenberry on 9/11/24. | |
// | |
import SwiftUI | |
@main |
NewerOlder