Skip to content

Instantly share code, notes, and snippets.

View SteGab's full-sized avatar

Stefan SteGab

  • Netlution München GmbH
  • Munich
View GitHub Profile
@SteGab
SteGab / SSH-Keys_unter_Linux.md
Created August 28, 2025 13:57
Verwalten von SSH-Keys auf Linux

Remote Rechner

SSH-Verzeichnis anlegen

Erstellen des Verzeichnisses .ssh Berechtigungen setzen: chmod 700 .ssh

Erlaubte Schlüssel für die Anmeldung festlegen

Datei authorized_keys: Die Datei enthält die PUBLIC Keys der Schlüssel, die sich anmelden dürfen.

@SteGab
SteGab / get_holidays.py
Created August 25, 2025 07:51
Plantuml Gantt: Liste mit Feiertagen erstellen, die sich in Gantt importieren lässt.
import requests
import json
state = "BY"
year = "2024"
holidayUrl = f"https://feiertage-api.de/api/?jahr={year}&nur_land={state}"
headers = {"Content-type": "application/json"}
session = requests.Session()
@SteGab
SteGab / tmux.conf
Last active July 16, 2025 06:12
tmux.conf
# allow reload of this file with PRE r
bind r source-file ~/.tmux.conf \; display "Reloaded."
# switch prefix to control-a, unmap b, allow double-a to go through
#set -g prefix C-a
#unbind C-b
#bind C-a send-prefix
# -r repeat time (Default 500 millis)
set -g repeat-time 2000