Skip to content

Instantly share code, notes, and snippets.

View KevinHonka's full-sized avatar

Kevin Honka KevinHonka

  • Karlsruhe, BW, Germany
View GitHub Profile
@KevinHonka
KevinHonka / mail_fetch.py
Created July 19, 2023 16:58
Mail Fetch Script
#!/usr/bin/env python
#
# Adjusted the python script from https://gist.github.com/robulouski/7442321
# This is now better suited for python3 environments.
#
import argparse
import imaplib
import logging
import os
server {
listen 80;
server_name icinga.domain.de;
root /usr/share/icingaweb2;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html index.php;
@KevinHonka
KevinHonka / collect_apt_packages.py
Created May 7, 2018 12:15
Script to collect apt packages
#!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import print_function
import logging
import os
import subprocess
import sys
import apt