Skip to content

Instantly share code, notes, and snippets.

View pheraph's full-sized avatar
🤠

Raphael Fetzer pheraph

🤠
View GitHub Profile
@pheraph
pheraph / scriptable.js
Last active December 28, 2020 05:57 — forked from bsehovac/scriptable.js
Upcoming Match Scriptable Widget
// Get Team ID from https://www.thesportsdb.com and add it as widget parameter
const TEAM_ID = args.widgetParameter || 134693
const DARK_MODE = true
const widgetSize = config.widgetFamily || 'medium'
const textSize = 9.5
const logoSize = 38
const logoSmallSize = 22
const spacing = { normal: 8, smaller: 6, vs: 5, widget: 10 }
@pheraph
pheraph / keybase.md
Created July 20, 2018 19:15
Keybase verification

Keybase proof

I hereby claim:

  • I am pheraph on github.
  • I am pheraph (https://keybase.io/pheraph) on keybase.
  • I have a public key ASDYInB0dw_HUpcjwp1obpz4dnyxI6a03OZxthrQ7GwdVgo

To claim this, I am signing this object:

@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
#
@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 / 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 / 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
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 / 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>
@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: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 = '';