Skip to content

Instantly share code, notes, and snippets.

View pheraph's full-sized avatar
🤠

Raphael Fetzer pheraph

🤠
View GitHub Profile
@pheraph
pheraph / otr2atv.sh
Created September 17, 2012 09:43
Make OTR-Videos compatible to the AppleTV
#!/bin/sh
#Author: Raphael Fetzer (pheraph.net/@pheraph)
#Tested for .HQ-files from http://www.onlinetvrecorder.com
#Use at your own risk! Certified as "Works on my machine"
#Needs mp4box (0.5.0) (brew install --env=std mp4box)
#Needs ffmpeg (brew install ffmpeg)
#Folder with decoded videos (trailing slash!)
#temporary files are moved to $source/.tmp (must exist)
@pheraph
pheraph / gist:3844710
Created October 6, 2012 11:46
Userstyle to make tent.is a little bit more usable
/* Use *tent.is* as selection pattern */
.span490 {
width: 100% !important;
}
.nav li {
line-height: 10px !important;
}
@pheraph
pheraph / gist:3845551
Created October 6, 2012 17:35
Userscript to show the count of unread posts for tent.io as icon badge (Fluid.app)
//Use *tent.is* as selector
window.fluid.dockBadge = '';
setTimeout(updateDockBadge, 3000);
setInterval(updateDockBadge, 5000);
function updateDockBadge() {
var newBadge = '';
@pheraph
pheraph / gist:4011829
Created November 4, 2012 13:08
Userscript that improves Zelten for small widths (Fluid.app)
/* Use *zelten.eu1.frbit.net* as selection pattern */
body {
padding:0!important;
font-size:13px!important
}
.box {
border:none!important;
@pheraph
pheraph / gist:4058855
Created November 12, 2012 11:31
Proof of concept for a cross-platform chapter- and subchapter-navigation in videorecordings
<!--
See prototype here: http://lnx801.un.hrz.tu-darmstadt.de/recordings
Author: Raphael Fetzer
-->
<!-- START OF THE PLAYER EMBEDDING TO COPY-PASTE -->
<div id="mediaplayer">JW Player goes here</div>
<script type="text/javascript" src="/recordings/jwmedia/jwplayer.js"></script>
03-09 11:23:16:487 "################## ownCloud de_DE (de) 1.2.1"
03-09 11:23:16:607 * Setup folders from "/Users/raphael/Library/Application Support/ownCloud/folders"
03-09 11:23:16:607 ` -> setting up: "ownCloud"
03-09 11:23:16:607 -> file path: "/Users/raphael/Library/Application Support/ownCloud/folders/ownCloud"
03-09 11:23:16:607 Returning configured owncloud url: "https://PATHTOOWNCLOUD/remote.php/webdav/"
03-09 11:23:16:607 setting remote poll timer interval to 28019 msec for folder "ownCloud"
03-09 11:23:16:608 FolderWatcherPrivate::startWatching() "/Users/raphael/ownCloud"
03-09 11:23:16:608 * Pending events for "/Users/raphael/ownCloud" will be processed after events stop for 1000 milliseconds ( "11:39:56" ). 0 events until now )
03-09 11:23:16:608 ==> returning exclude file path: "/Applications/owncloud.app/Contents/Resources/sync-exclude.lst"
03-09 11:23:16:609 Checked local path ok
@pheraph
pheraph / mount.scpt
Created March 16, 2013 11:16
Netzwerk-Share mounten, warten bis fertig gemountet und dann iTunes starten
tell application "Finder"
mount volume "afp://Zeitkapsel.local" as user name "raphael"
end tell
tell application "iTunes" to activate
@pheraph
pheraph / infos.sh
Created March 16, 2013 12:44
Ein paar Infos über einen uberspace anzeigen
#/bin/sh
echo -e "\n===== SQL-Zugangsdaten ====="
cat ~/.my.cnf | grep "^user="
cat ~/.my.cnf | grep "^password="
echo -e "\n=== Aktuelle PHP-Version ==="
php -v | grep "^PHP "
echo "(Ändern über ~/etc/phpversion)"
@pheraph
pheraph / install-mysql55-brew.sh
Created June 2, 2013 14:37
Install MySQL 5.5 with homebrew
brew uninstall mysql
brew tap homebrew/versions
brew install mysql55
cd /usr/local
mysql_install_db
@pheraph
pheraph / backup-uberspace.sh
Last active January 24, 2017 19:21
Eine lokale Sicherung eines oder aller uberspace(s) erstellen
#!/bin/sh
#
# Erstellt eine lokale Sicherung von /home/username, /var/www/virtual/username und der Datenbanken des Benutzers
#
# Voraussetzungen:
# Auf dem lokalen Computer sind die uberspaces in ~/.ssh/config wie folgt konfiguriert:
# Host uberspacename
# HostName sternenkonstellation.uberspace.de
# User uberspacename
#