Skip to content

Instantly share code, notes, and snippets.

@quantenProjects
quantenProjects / Readme
Last active May 13, 2017 19:50
Greasemonkey Exportscript für die Blitzanalyse auf http://kachelmannwetter.com/de/blitze
Zeit und Datum auswählen, dann in den gewünschten Bereich in der Karte klicken. Ein Fenster öffnet sich und zeigt die Blitzdetails an. Dieses wieder schließen und am Ende der Seite auf Export klicken. Dann den Inhalt des Textfeldes kopieren und in eine Datei mit Endung .gpx schreiben. Als Name wird die Stromstärke angegeben
@quantenProjects
quantenProjects / weather.py
Created November 22, 2015 12:22
Weather Plugin for Hangoutsbot. Usage /bot wetter Hamburg Weatherdata from OpenWeatherMap. API-Key: http://openweathermap.org/appid Hangoutsbot: https://github.com/hangoutsbot/hangoutsbot
import plugins
import pyowm
def _initialise(bot):
plugins.register_user_command(["wetter"])
def wetter(bot, event, *args):
# own API-Key from OpenWeatherMap needed
owm = pyowm.OWM('apikey')
@quantenProjects
quantenProjects / server_status.py
Created March 14, 2016 17:54
simple server status check for https://github.com/hangoutsbot/hangoutsbot don't forget to activate the plugin in the config
"""
execute w and df -h on server
"""
import plugins
import subprocess
def _initialize(bot):
plugins.register_admin_command(['w'])
plugins.register_admin_command(['df'])
@quantenProjects
quantenProjects / asb_filterlist.txt
Last active August 25, 2023 16:22
Axel Springer Blocker List for uBlock. Content from: https://goo.gl/D3u0Tz feel free to comment if changes are required. And for the people from Springer, this here is art or satrie or anything other inocent ;)
! Title: Axel Springer Filters
! Expires: 4 days
! Description: Filters with domains from Axel Springer SE, content from https://goo.gl/D3u0Tz (modified)
! Homepage: https://gist.github.com/quantenProjects/903ca1a9e4f395fafb93b2ff4502b665
axel-springer-akademie.de
ein-herz-fuer-kinder.de
ikiosk.de
bild.de
bz-berlin.de
welt.de
@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

@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 / 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"] = [];
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 / 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
@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.