Skip to content

Instantly share code, notes, and snippets.

View eyecatchup's full-sized avatar

Stephan Schmitz eyecatchup

View GitHub Profile
@eyecatchup
eyecatchup / update-to-php5.6-on-ubuntu-14.04.sh
Created April 4, 2017 08:22
Update PHP 5.x to PHP 5.6 on Ubuntu 14.04
#!/bin/sh
# In case df shows >90% for /boot run:
#sudo apt-get autoremove
# Add repository
sudo add-apt-repository ppa:ondrej/php
# Install required packages
sudo apt-get update
@eyecatchup
eyecatchup / extract_t3x.php
Created March 9, 2017 12:23
Standalone PHP script to extract a packed TYPO3 extension t3x package.
<?php
// Standalone PHP script to extract a packed TYPO3 extension (.t3x packages).
// Based on snippets found here and there. License: WTFPL => do what you want.
// Print usage
function printUsageAndDie(){
global $argv;
print <<<EOM
------------------------------------------------------------------------------
Usage: extract_t3x.php [filename.t3x] <directory>
var AndroidBuildstringConverter = {
DayZero: new Date(2009, 0, 1),
ReleaseNames: "Astro Boy;Bender;Petit Four;Cupcake;Donut;Eclair;Froyo;Gingerbread;" +
"Honeycomb;Ice Cream Sandwich;Jelly Bean;KitKat;Lollipop;Marshmallow;Nougat",
getBuilddateByString: function (b) {
if ("string" !== typeof b || !b.length) {
return console.log("Invalid input. String required, got " + typeof b),
!1;
}
var c = this.ReleaseNames.split(";").pop()[0],
# sh binaries:
$ youtube-dl.exe --format mp4 --merge-output-format mp4 \
--extract-audio --audio-format mp3 --audio-quality 0 \
--yes-playlist -o "%(autonumber)s-%(title)s.%(ext)s" \
--add-metadata --restrict-filenames --no-overwrites \
--prefer-ffmpeg --hls-prefer-ffmpeg \
--ignore-errors --geo-bypass --debug \
https://www.youtube.com/playlist?list=$1
@eyecatchup
eyecatchup / gist:acfdc9e974e39679899a1891b0539228
Created February 8, 2017 22:59 — forked from stef-levesque/gist:11233090
Batch file to compute KEY for movdump.exe
@echo off
REM The key is generated using your machine's current time.
REM The formula is 13333 + (current hour * 7113) + (current minute * 77).
REM Calc that out by hand and use it with the -key parameter then
REM you can use movdump by itself without the GUI at all.
set HH=%TIME:~0,2%
set MM=%TIME:~3,2%
set /a KEY=13333+%HH%*7113+%MM%*77
@eyecatchup
eyecatchup / angler.712beta.cron.php
Last active February 3, 2017 03:54
Cronjob to send a notification AS SOON as the Android 7.1.2 beta is available for the Nexus 6P.
<?php
/**
* Android 7.1.2 beta for Nexus 6P email alert cronjob (Note: Requires PHP /w curl and being able to send mails!)
*
* 1. Download this script.
* 2. Set the value for the constant NOTIFY_MAIL_ADDRESS below to your email address.
* 3. Create a new cronjob (for a Win/Xampp alternative see: http://stackoverflow.com/a/4231634/624466). On your console, type:
* crontab -e
* 4. Paste the following (adjust script/logfile path):
* 0 * * * * php /absolute/path/to/script.php >> /absolute/path/to/cronjob.log
@eyecatchup
eyecatchup / yukon-men.txt
Created January 30, 2017 05:50
Alle Folgen "Yukon Men"
# Yukon Men
http://discoveryint1.edgeboss.net/download/discoveryint1/byocdn/media/1659832546/201502/209/1659832546_4067277168001_mp4-DCB344260001000-101.mp4,"Jagen oder sterben"
http://discoveryint1.edgeboss.net/download/discoveryint1/byocdn/media/1659832546/201502/3780/1659832546_4078076714001_mp4-DCB344260002000-102.mp4,"Fellsaison"
http://discoveryint1.edgeboss.net/download/discoveryint1/byocdn/media/1659832546/201503/1064/1659832546_4097188208001_mp4-DCB344260003000-103.mp4,"Auf Biberjagd"
http://discoveryint1.edgeboss.net/download/discoveryint1/byocdn/media/1659832546/201503/1203/1659832546_4107415925001_mp4-DCB344260004000-104.mp4,"Auf duennem Eis"
http://discoveryint1.edgeboss.net/download/discoveryint1/byocdn/media/1659832546/201503/2130/1659832546_4121759182001_mp4-DCB344260005000-105.mp4,"Schwere Zeiten"
http://discoveryint1.edgeboss.net/download/discoveryint1/byocdn/media/1659832546/201503/3846/1659832546_4136437921001_mp4-DCB344260006000-106.mp4,"Joey zieht um"
http://discoveryint1.edgeboss.net/d
@eyecatchup
eyecatchup / survival-duo.txt
Created January 30, 2017 05:49
Alle Folgen "Das Survival-Duo"
# Das Survival-Duo
S01E01,http://discoveryint1.edgeboss.net/download/discoveryint1/byocdn/media/1659832546/201609/3588/1659832546_5108393352001_5108103309001.mp4,"Gestrandet in Nova Scotia"
S01E02,http://discoveryint1.edgeboss.net/download/discoveryint1/byocdn/media/1659832546/201608/3399/1659832546_5096696023001_5096667057001.mp4,"Rutschige Gletscherpartie"
S01E03,http://discoveryint1.edgeboss.net/download/discoveryint1/byocdn/media/1659832546/201608/2775/1659832546_5096705893001_5096656179001.mp4,"In den Hoelen von Belize"
S01E04,http://discoveryint1.edgeboss.net/download/discoveryint1/byocdn/media/1659832546/201608/1761/1659832546_5096721187001_5096506424001.mp4,"Im Tal der Vulkane"
S01E05,http://discoveryint1.edgeboss.net/download/discoveryint1/byocdn/media/1659832546/201405/3451/1659832546_3593373697001_mp4-DCB281260002000-102v2.mp4,"Panik im Dschungel"
S01E06,http://discoveryint1.edgeboss.net/download/discoveryint1/byocdn/media/1659832546/201608/729/1659832546_5098108571001_5097600085001.mp4,"Ochsenfro
<!doctype html>
<html>
<meta charset="utf-8">
<title>Alle Folgen "Bear Grylls - Ausgesetzt in der Wildnis"</title>
<head>
</head>
<body>
<h1>Alle Folgen "Bear Grylls - Ausgesetzt in der Wildnis"</h1>
<div id="playlist"></div>
<script src="//cdn.rawgit.com/eyecatchup/c6f8bf95008a4bc8f739534ee220e64b/raw/c1f5b00d8582552238a2a733b2fda915e122bd03/bear-grylls.js"></script>
<!doctype html>
<html>
<meta charset="utf-8">
<title>Alle Folgen "Goldrausch in Alaska"</title>
<head>
</head>
<body>
<h1>Alle Folgen "Goldrausch in Alaska"</h1>
<div id="playlist"></div>
<script src="//cdn.rawgit.com/eyecatchup/0cb893459f53b6bb4e8a3ccb1340c23d/raw/ac7feaf7a0aab4ab8f798730a74626f8e2feea20/gold-rush.js"></script>