Skip to content

Instantly share code, notes, and snippets.

View santi-ifontana's full-sized avatar
:octocat:
Shaping the digital world, one repo at a time

Santiago Fontana santi-ifontana

:octocat:
Shaping the digital world, one repo at a time
View GitHub Profile
@chetan
chetan / dumpcerts.traefik.v2.sh
Created November 9, 2023 16:24
Convert traefik acme.json to PEM files
#!/usr/bin/env bash
# Copyright (c) 2017 Brian 'redbeard' Harrington <[email protected]>
#
# dumpcerts.sh - A simple utility to explode a Traefik acme.json file into a
# directory of certificates and a private key
#
# Usage - dumpcerts.sh /etc/traefik/acme.json /etc/ssl/
#
# Dependencies -
# util-linux
@martinclaus
martinclaus / tljh_system_user
Last active April 29, 2025 08:28
Converts hub login names to unix system user names when using the tljh.UserCreatingSpawner
#!/usr/bin/env python
# Author: Martin Claus <[email protected]>
import sys
# Maybe there is a better way to import tljh.
sys.path.insert(0, '/opt/tljh/hub/lib/python3.6/site-packages/')
from tljh.normalize import generate_system_username
import argparse