Skip to content

Instantly share code, notes, and snippets.

@DeusFigendi
DeusFigendi / analyse_erdbeereis.py
Last active November 25, 2023 07:45
analyses a diaspora profile export to find the oldest posting
#!/usr/bin/python3
import json
from datetime import datetime
from os import listdir
import sys
def get_pod_base_url_from_handle(handle):
return(handle.split('@')[-1])
@DeusFigendi
DeusFigendi / OSM.Wohnklo.md
Last active September 6, 2023 07:39
Herausforderung: Kartografiere dein Wohnklo!

Herausforderung: Kartografiere dein Wohnklo!

Dies ist eine Aufforderung an euch alle das Gebäude in dem ihr wohnt in OpenStreetMap ausführlich zu kartografieren, also tragt einfach alle Informationen ein, die ihr über das Gebäude wisst.

Zwei Überlegungen vorab, bevor ich erkläre, wie das am Besten geht:

  1. Es ist wahrscheinlich, dass ihr nicht wollt, dass andere wissen wo ihr wohnt, aber Änderungen in #OpenStreetMap werden natürlich mit dem Account, mit dem sie erstellt werden verknüpft und das ist öffentlich einsehbar. Wenn ihr also nicht wollt, dass jeder herausfinden kann wo ihr wohnt, dann empfehle ich, dass ihr einen OSM-Account anlegt, der nicht euer Standard-Nickname ist. Wenn ihr also normalerweise @flottebiene23 heißt, dann nennt euch einfach Brummer42 oder sogar KcA4TbGsu ist ja auch ein schöner Benutzername. Nur könnt ihr dann halt mit eurer Leistung auch nicht angeben.
  2. Zweck der Aktion ist unter anderem ein paar Leute mit dem OSM-Fieber zu "infizieren". Also dazu zu bringen, dass sie
vec {0A} = left ( stack{0 # 0 # 0} right )
newline
vec {0B} = left ( stack{3 # 3 # 0} right )
newline
vec {0E} = left ( stack{0 # 3 # 5} right )
#!/usr/bin/env python3
from mastodon import Mastodon
from os.path import exists
# first run:
if (not(exists('pixelfed2galery.secrets'))):
Mastodon.create_app(
@DeusFigendi
DeusFigendi / USB2LAN NintendoSwitch.md
Last active April 9, 2022 09:06
List of USB/LAN-Adapters compatible with Nintendo Switch or not

This is a table of USB-Ethernet adapters and if they are compatible with Nintendo Switch. Please if you have tried one and it worked or did not work, let me know to extend this table. (Just write a comment below this document) To test your adapter, connect it directly to your Nintendo Switch or during an USB-Hub (the dock for example). Then try to make a wired connection to the internet. The Nintendo Switch shows another symbol next to the time when connected via wired LAN.

Symbols:

  • ✅ works fine
  • ❌ does not connect
  • _ not tested
  graph TD;
      Aufgabe-->Angreifen;
      Angreifen-->Waffe_wählen-->Ziel_wählen[Ziel wählen, Ziel_verletzt?];
      Ziel_wählen-- Ja -->Zielverletzt[Irgendwas mit Bedrohung +1];
      Ziel_wählen-- Nein -->tödlicher_Angriff_festlegen[Bestimmen ob der Angriff tötlich sein soll];
      Zielverletzt-->tödlicher_Angriff_festlegen;
      tödlicher_Angriff_festlegen-- Ja -->Angriff_ist_tödlich[+1 Bedrohung];
      tödlicher_Angriff_festlegen-- Nein -->FernOderNah[Nahkampf oder Fernkampf?];
      Angriff_ist_tödlich-->FernOderNah;
@DeusFigendi
DeusFigendi / randomlocation_list.md
Created July 8, 2021 17:17
Dieses Dokument sammelt die Veröffentlichungen, die ich im Rahmen von #randomlocation so gemacht habe.
@DeusFigendi
DeusFigendi / paclientbind.py
Last active April 7, 2021 20:03
This python3 script randomly chooses an output device and tells pulse audio to bind ALL the outputs from all the programs to that device.
#!/usr/bin/python3
import subprocess
import random
# get a list of all available sinks (output-devices)
get_the_sinks = subprocess.check_output(["pactl", "list", "short", "sinks"]).decode('utf-8').split("\n")
list_of_sinks = []
for outputline in get_the_sinks:
this_sink_listing = outputline.split("\t")
@DeusFigendi
DeusFigendi / KMLbluepushpin.svg
Created July 14, 2020 15:56
For OpenTracks…
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.