Skip to content

Instantly share code, notes, and snippets.

@quantenProjects
quantenProjects / annot.py
Last active February 9, 2019 12:15
combine the site with annotations of many PDFs to one file
import poppler, os.path
import os
filenames = []
handels = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
for name in os.listdir('.'):
if name[-4:] == ".pdf":
@quantenProjects
quantenProjects / 99-wifionice
Last active March 14, 2024 14:26 — forked from hacker-bastl/bahn.sh
NetworkManager WIFIonICE login automation
#!/bin/bash
# this script goes to /etc/NetworkManager/dispatcher.d/
IF=$1
STATUS=$2
case "$2" in
up)
if [ "$CONNECTION_ID" == "WIFIonICE" ]
@quantenProjects
quantenProjects / ICE_Tacho.py
Last active August 10, 2019 14:22
Big Font Tacho for Wifi-On-ICE with figlet
import requests
import json
import time
import sys
import os
from colorama import init
init(strip=not sys.stdout.isatty()) # strip colors if stdout is redirected
@quantenProjects
quantenProjects / openslides
Created January 20, 2021 15:34
nginx openslides reverse proxy configuration TLS
server {
access_log off;
listen 80 default_server;
listen [::]:80 default_server;
# enforce https
return 301 https://$host$request_uri;
}
server {
access_log off;