Skip to content

Instantly share code, notes, and snippets.

View funkenstrahlen's full-sized avatar

Stefan Trauth funkenstrahlen

View GitHub Profile
@funkenstrahlen
funkenstrahlen / encode_to_mp4.sh
Last active August 29, 2015 13:56
A small script to convert all AVI files in a folder to mp4/h264
#!/bin/bash
#
# A small script to convert all AVI files in a folder to mp4 h264
# You can either use HandbrakeCLI or ffmpeg.
# ffmpeg requires to be compiled with libx264 which is not default in debian based distributions
#
# To use HandbrakeCLI do not forget to install the packages!
# For Linux Mint I had to do the following to get HandbrakeCLI running:
# sudo add-apt-repository ppa:stebbins/handbrake-snapshots
# sudo apt-get update
@funkenstrahlen
funkenstrahlen / ReliveRadio_Player_Embed.html
Created February 6, 2014 09:05
Embed Code, um den großen ReliveRadio Player einzubinden. Den String für `src` sucht man sich am besten hier: http://cm.wikibyte.org/testcodes/neu-chapters/test.php?stream=Technik&css=technik. Dort lassen sich verschiedene Kanäle und Farben konfigurieren.
<iframe name="Relive Radio Player" src="http://cm.wikibyte.org/testcodes/neu-chapters/standalone.php?stream=mix-mobile&color=289dcc&liste=5" height="360px" width="100%" marginwidth="10" marginheight="10" border="0"></iframe>
@funkenstrahlen
funkenstrahlen / CrackRestrictionsPassword
Created September 12, 2013 13:37
Apple Script to Crack iOS Restriction Password Pin Code. Requires Type2Phone App on the Mac. Source: http://forums.macrumors.com/showthread.php?t=1566207
-- Author Chris Russell
-- This script is designed to brute force the restrictions passcode on iPhone
-- Assumptions:
-- Blutooth is enabled
-- Type2Phone App is running and connected to your phone (avail on Mac App Store)
-- iPhone is switched on and on the restrictions passcode screen (General - Restrictions)
global pinCodeDigit1
global pinCodeDigit2
global pinCodeDigit3
global pinCodeDigit4
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><style type="text/css">@media print { #feedlyMiniIcon { display: none; } }</style></head><body>$("#episodes").html(" <!-- SHOW ALL UPCOMING PODCASTS -->\n <div class="\&quot;row" episode\"="">\n <div class="\&quot;small-3" columns\"="">\n\n <!-- EPISODE PODCAST IMAGE -->\n <h2><img src="./reliveradio.de_files/-">&lt;\/h2&gt;\n\n <!-- EPISODE PLAYTIME INFO FOR SMALL DEVICES-->\n <div class="\&quot;show-for-small" playtime-small\"="">\n <!-- start time -->\n <!-- end time -->\n <div class="\&quot;time-info\&quot;"><i class="\&quot;icon-stop\&quot;">&lt;\/i&gt; 17:30&lt;\/div&gt;\n <!-- duration -->\n <!-- time left -->\n <div class="\&quot;time-info\&quot;"><i class="\&quot;icon-arrow-right\&quot;">&lt;\/i&gt; <span class="\&quot;timeleft\&quot;">&lt;\/span&gt; Min.&lt;\/div&gt;\n <!-- <div class=\"time-info\"><span class=\"percentplayed\"><\/span><\/div>\n <div class=\"time-info\">
@funkenstrahlen
funkenstrahlen / sshuttle helpers
Created January 26, 2013 10:21
some aliases for sshuttle
# sshuttle helpers
#
# To load, you can add a line in ~/.bashrc:
# source ~/.bashrc.d/sshuttle_helpers
#
# or add a few lines to load all files in ~/.bashrc.d
# for f in ~/.bashrc.d/*; do
# source $f;
# done
#
<?php
// Parsing this spreadsheet: https://spreadsheets.google.com/pub?key=0Ah0xU81penP1dFNLWk5YMW41dkcwa1JNQXk3YUJoOXc&hl=en&output=html
$url = 'http://spreadsheets.google.com/feeds/list/0Ah0xU81penP1dFNLWk5YMW41dkcwa1JNQXk3YUJoOXc/od6/public/values?alt=json';
$file= file_get_contents($url);
$json = json_decode($file);
$rows = $json->{'feed'}->{'entry'};
foreach($rows as $row) {
echo '<p>';