Skip to content

Instantly share code, notes, and snippets.

View olf42's full-sized avatar

olf olf42

  • Leipzig
View GitHub Profile
@olf42
olf42 / find_gls_packages.py
Created November 16, 2017 14:16
Find GLS Packages if you only have a rough range/idea of the tracking ID
# coding: utf-8
"""
Find GLS Packages if you only have a rough range/idea of the tracking ID
"""
import requests
import datetime
import json
from time import sleep
@olf42
olf42 / orwell.py
Created March 10, 2016 21:25
Fetches number of currently connected listeners from status.xml of icecast2 streaming server and pushes it to InfluxDB (at least v.0.10)
#!/usr/bin/env python3
import requests
import sys
import xml.etree.ElementTree as ET
import datetime
# ICECAST RELATED CONSTANTS
STATS_URL = "http://<URL>"
ICECAST_USER = "<USER>"