Skip to content

Instantly share code, notes, and snippets.

@ma4a
ma4a / speed.py
Created July 23, 2012 22:14
Python script for Vodafone Easybox 802 - get current internet speed
import re, string, sys, time, urllib
"""
*tested with Easybox 802 Firmware 20.02.233
"""
#SETTINGS *** only change values in this area
routerIP = "192.168.0.1" #address of router
routerUser = "root" #default: root
routerPW = "secret123" #pass for login
@ma4a
ma4a / shrink.py
Created July 4, 2012 09:42
Python Recursive Image Shrinker
"""
Author: Matze
Date: July 2012
Website: https://github.com/ma4a
About functions:
*creates same recursive folder structure in parallel with resized images
*you have two folder structures. the first untouched one with the source files and the one with resized images and copied videos
*resize any found image that's larger than needed -> EXIF data not copied
*just copy any image that's smaller than needed - no resize necessary -> EXIF data may be copied