Skip to content

Instantly share code, notes, and snippets.

Avatar

Mario Guggenberger protyposis

View GitHub Profile
@protyposis
protyposis / MediaPlayerWorkarounds.java
Created Mar 12, 2017
MediaPlayer-Extended Workaround for Samsung libstagefright bug with JPEG thumbnail tracks
View MediaPlayerWorkarounds.java
/*
* Copyright 2017 Mario Guggenberger <mg@protyposis.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@protyposis
protyposis / tvunblock.sh
Created Nov 8, 2015
TVUnblock.com IP update script for OpenWRT
View tvunblock.sh
#!/bin/sh
# TVUnblock.com IP updater
# Checks for changed WAN IP and registers it at the TVUnblock service.
#
# Run this script periodically with cron or hook it to a WAN IP changed event.
# To run this script every 10 minutes with cron:
# */10 * * * * /pathtoscript/tvunblock.sh
#
# TVUnblock asks for only one activation request per hour, and may otherwise
# sanction clients with a ban. One hour is a pretty long time window though,