Skip to content

Instantly share code, notes, and snippets.

View funkenstrahlen's full-sized avatar

Stefan Trauth funkenstrahlen

View GitHub Profile
<?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>';
@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
#
<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 / 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
@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 / 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 / php.ini
Created March 5, 2014 13:45
php.ini for owncloud installation on domaingo webspace
extension_dir = "/usr/local/lib/php_modules/5-54STABLE"
extension = "zip.so"
magic_quotes_gpc = off
magic_quotes_runtim = off
magic_quotes_sybase = off
upload_max_filesize = 50M
@funkenstrahlen
funkenstrahlen / cre.fm.archiv.rss
Created April 20, 2014 16:24
Metaebene - CRE Chaos Radio Express - Archiv RSS Feed
<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
<channel>
<title>CRE: Technik, Kultur, Gesellschaft - ARCHIV</title>
<description>Der Interview-Podcast mit Tim Pritlove</description>
<link>http://cre.fm/archiv</link>
<language>de</language>
<itunes:summary>Intensive und ausfuehrliche Gespraeche ueber Themen aus Technik, Kultur und Gesellschaft, das ist CRE. Interessante Gespraechspartner stehen Rede und Antwort zu Fragen, die man normalerweise selten gestellt bekommt. CRE moechte aufklaeren, weiterbilden und unterhalten.</itunes:summary>
<itunes:author>Tim Pritlove</itunes:author>
<itunes:explicit>no</itunes:explicit>
<itunes:image href="http://meta.metaebene.me/media/cre/cre-logo-600x600.jpg"></itunes:image>
@funkenstrahlen
funkenstrahlen / gravatar_image_tag
Created May 16, 2014 06:44
Rails Gravatar Image Tag with size
<%= image_tag gravatar_image_url(current_admin.email, :alt => 'Github Default Gravatar', :gravatar => { :default => 'https://assets.github.com/images/gravatars/gravatar-140.png' }), size: '40' %>

Keybase proof

I hereby claim:

  • I am funkenstrahlen on github.
  • I am funkenstrahlen (https://keybase.io/funkenstrahlen) on keybase.
  • I have a public key whose fingerprint is BD82 B770 25CC EE38 C91F 4533 3C11 ADE2 DB86 DC95

To claim this, I am signing this object: