Skip to content

Instantly share code, notes, and snippets.

View Brawn1's full-sized avatar

Günter Bailey Brawn1

View GitHub Profile
@Brawn1
Brawn1 / Dockerfile
Last active April 15, 2024 07:41
truncate log files in the given directory with spezified size in Gigabytes.
FROM python:3.11-slim-bullseye
MAINTAINER Gbailey
RUN mkdir -p "/app/log" && \
chmod -R 775 "/app"
WORKDIR "/app"
COPY app.py /app/
COPY README.md /app/
@Brawn1
Brawn1 / fonts-downloader.py
Last active July 10, 2023 08:52
Download all Links from Google Font File
import requests
import cssutils
from pathlib import Path
import os
from typing import Union
class CSSDownloader:
def __init__(self, fontdir: str = "./fonts/", baseurl: str = 'https://fonts.gstatic.com/'):
self.dlurls = list()
@Brawn1
Brawn1 / NGINX_SSL_Proxy_docker-compose.yaml
Last active May 27, 2018 15:24
Docker Compose script for easy setup jwilder Nginx-Reverse Proxy with Letsencrypt-Companion https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion
version: '2.0'
services:
nginx-proxy:
restart: always
image: jwilder/nginx-proxy:latest
ports:
- '80:80'
- '443:443'
volumes:
@Brawn1
Brawn1 / ntp-ckeck.py
Last active March 29, 2018 13:36
Simple NTP Network Scanner to scan class C Network for NTP Server.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#################################################################
# programm to scan and check ntp servers in class C Network #
# requirements: tool ntpdate #
# @author: Bailey #
# @date: 2017-11-28 #
# MIT License #
#################################################################
import json