Skip to content

Instantly share code, notes, and snippets.

@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;
@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 / 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 / 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 / printer_jena.geojson
Last active November 25, 2019 22:21
Thoska Drucker der FSU Jena. Da die Webseite mit der [Druckerkarte](https://www.rz.uni-jena.de/thoska_auto/copymap.php?copy_id=12) leider aufgrund mehrerer Gründe (mixed-content und fehlender Maps-API key) nicht funktioniert, gibts hier die Marker als geojson. (in thoska1.json ist blueIcon durch "blueIcon" ersetzt worden)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@quantenProjects
quantenProjects / dockDetection.sh
Created June 17, 2018 17:04
dirty Script to disable the powermanagment of KDE when inside my thinkpad dock, run with crontab every minute and it will inhibit powerdevil if the dock is present and unihibit if it is gone
export DISPLAY=":0"
export KONSOLE_DBUS_SESSION=/Sessions/1
export KONSOLE_DBUS_SERVICE=:1.30
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
STRDOCK=`lsusb | grep -o 17ef:100a`
ID="17ef:100a"
if [ -n "$STRDOCK" ]; then
#echo "in Dock"
if [ -e /run/user/1000/dockCookie ]; then
http://frv.tv/ab Funktionsgraphen erstellen mit dem GTR
http://frv.tv/ac Nullstellen bestimmen
http://frv.tv/ad Hochpunkte bestimmen
http://frv.tv/ae Funktionswerte berechnen
http://frv.tv/af Tiefpunkte bestimmen
http://frv.tv/ag Wendepunkte bestimmen
http://frv.tv/ah Integrale berechnen
http://frv.tv/ai Integralgleichungen lösen
http://frv.tv/aj Schnittpunkte von Graphen bestimmen
http://frv.tv/ak Ableitungsgraphen zeichnen
@quantenProjects
quantenProjects / toGeoJSON.js
Last active July 27, 2019 20:52
convert the overnight places from wildes-sh.de into a geojson Source: https://www.wildes-sh.de/index.php?id=12&t=1522940690568 --- Public Domain ---
var data = require("./wildesSH.json");
var features = [];
for (platz of data) {
//console.log(platz["ort"]["lon"]);
var feature = {"type":"Feature"};
feature["geometry"] = {"type":"Point"}
feature["geometry"]["coordinates"] = [];
@quantenProjects
quantenProjects / convert.py
Created June 23, 2017 19:16
Dirty script to convert WEO csv data to one Year each row
inputFile = open("WEOApr2017all.csv","r")
outputFile = open("output.csv","w")
allLines = inputFile.readlines()
print allLines[0].split("\t")[0:9]
outputFile.write("\t".join(allLines[0].split("\t")[0:9]) + "\tYear\tValue"+ "\n")
for i in allLines[1:-2]:
akkList = i.split("\t")
@quantenProjects
quantenProjects / CasioWES-QR.md
Last active April 20, 2017 19:34
A list of all vaild (for alone usage) 2 character Codes which are used by the Casio Classwiz Calculators in thier QR-Codes in the last "+E-" Section of the Url. In LaTeX, scraped from wes.casio.com

The last part of the Url starts with +E- and shows the input of the calculator. After the dash there is a odd number of characters.

I scraped this from the alt attribute of the images from their website wes.casio.com

For example:

http://wes.casio.com/math/index.php?q=I-251A+U-000B000461EF+M-C10000AA00+S-000410101010100E1010B00051DA+R-0300000000000000010000000000000000000000+E-31A632

which representate 1+2 = 3