This file contains 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
# 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: |
This file contains 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 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" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
#!/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}"; |
This file contains 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
# /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 |
This file contains 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
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 |