Skip to content

Instantly share code, notes, and snippets.

URL `../methods/timelines/#public-timeline'
Name `GET /api/v1/timelines/public'
Parent URL https://docs.joinmastodon.org/client/public/, line 1, col 10117
Real URL https://docs.joinmastodon.org/client/methods/timelines/#public-timeline
Check time 2.953 seconds
Result Error: 404 Not Found
URL `../methods/accounts/#account'
Name `GET /api/v1/accounts/:id'
Parent URL https://docs.joinmastodon.org/client/public/, line 27, col 883
# /etc/systemd/system/[email protected]
# for https://github.com/mxschmitt/fritzbox_exporter/
[Unit]
Description=Fritz!Box prometheus exporter for %i
[Service]
User=fritzbox_exporter
EnvironmentFile=/etc/fritzbox_exporter/.env-%i
ExecStart=/etc/fritzbox_exporter/exporter
#!/bin/bash
export LE_WORKING_DIR="/root/.acme.sh"
acmesh="/root/.acme.sh/acme.sh"
# https://stackoverflow.com/a/2317171
function join_by {
local d=${1-} f=${2-};
if shift 2;
then printf %s "$f" "${@/#/$d}";
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@e1mo
e1mo / trim-generations.sh
Created February 25, 2023 11:20 — forked from Bondrake/trim-generations.sh
NixOS script to keep 10 generations or 7 days, whichever is more (configurable, profile is selectable)
#!/usr/bin/env bash
set -euo pipefail
## Defaults
keepGensDef=10; keepDaysDef=7
keepGens=$keepGensDef; keepDays=$keepDaysDef
## Usage
usage () {
printf "Usage:\n\t trim-generations.sh (defaults are: Keep-Gens=$keepGensDef Keep-Days=$keepDaysDef Profile=user)\n\n"
@e1mo
e1mo / chaos.jetzt-community-to-mediawiki.py
Created July 22, 2023 17:33 — forked from f4814/chaos.jetzt-community-to-mediawiki.py
Quick&Dirty script to create a mediawiki table containing all rooms in a matrix community.
# Run like this:
# curl "https://[matrixserver]/_matrix/client/r0/groups/+chaos.jetzt:chaos.jetzt/rooms?access_token=[your token here] | python chaos.jetzt-community-to-mediawiki.py
import json
import sys
data = json.load(sys.stdin)
for room in data['chunk']:
try: