This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.0' | |
services: | |
nginx-proxy: | |
restart: always | |
image: jwilder/nginx-proxy:latest | |
ports: | |
- '80:80' | |
- '443:443' | |
volumes: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |