Skip to content

Instantly share code, notes, and snippets.

View Cellebyte's full-sized avatar

Marcel Fest Cellebyte

View GitHub Profile
@Cellebyte
Cellebyte / backup.py
Last active December 16, 2019 17:38
Grafana Backup with requests and prometheus_client
from __future__ import annotations
import logging
from datetime import datetime
from enum import Enum
from typing import List
from urllib.parse import urlparse
from prometheus_client import REGISTRY, CollectorRegistry, Gauge, Info
@Cellebyte
Cellebyte / sharelatex_dump.py
Created March 28, 2018 18:05
Simple sharelatex to git repo dumper in python ugly but usefull
#!/usr/bin/env python3
'''
Simple Python Module to dump sharelatex onto gitlab
apt install git
apt install python3
apt install python3-requests
'''
import sys
import os
import shutil