Skip to content

Instantly share code, notes, and snippets.

View felixfischer's full-sized avatar

Felix Fischer felixfischer

View GitHub Profile
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
@felixfischer
felixfischer / sc-dl-min.js
Created May 6, 2012 13:58 — forked from duncanbeevers/sc-dl-min.js
Bookmarklet that generates download link for a Soundcloud upload
(function(a){function f(a){var b=a.find(".actionbar");return b.length?b:a.prepend('<div class="actionbar"><div class="actions"><div class="primary"></div></div></div>')}function e(a,b){var c=b.find(".actions"),d=c.find(".download");d.length||c.prepend('<a href="'+a.streamUrl+'" class="download pl-button" download="'+a.title+'" title="'+a.title+'">Download track</a>')}function d(a,b){var d=null;b.hasClass("nano")?d=f(b.closest(".track-title").find(".track")).css({marginLeft:"18px"}):b.hasClass("small")&&(d=f(b.find(".container"))),d&&c(a,d)}function c(a,b){var c=b.find(".download, .mock-download");if(!c.length){var d=$('<a class="pl-button mock-download"><span>Download</span></a>').css({backgroundImage:"url(http://soundcloud.com/images/icons_mini.png?unicorn26)",backgroundRepeat:"no-repeat",backgroundPosition:"-77px -236px",paddingLeft:"18px"}).attr("download",a.title+".mp3");b.find(".primary").append(d),d.attr("href",a.streamUrl)}}function b(a){var b=$.helpers,f=b.getPlayerTrack(b.getPlayerNode(a)),g=a.find("
@felixfischer
felixfischer / ubuntu-1404-preseed
Last active March 29, 2016 15:26 — forked from scottslowe/ubuntu-1404-preseed
This is a preseed file, written for Ubuntu Server 14.04.2, that provides a partially automated installation.
# Ubuntu Server automated installation
# by Felix Fischer (kontakt@felixfischer.com)
d-i debian-installer/locale string en_US
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/layoutcode string de
d-i netcfg/choose_interface select eth0
# d-i netcfg/get_hostname string hostname
# d-i netcfg/get_domain string domain.com
d-i time/zone string Europe/Berlin
@felixfischer
felixfischer / gist:1c7b6995b881165720488343505c7025
Created December 9, 2016 14:19 — forked from motey/gist:3028650e159d1e4e3bd30312aa822954
Musterbrief an Landgericht Hamburg bzgl. Beschluss vom 18. November (Az. 310 O 402/16)
https://www.heise.de/forum/heise-online/News-Kommentare/Gericht-bestaetigt-Haftung-fuer-Urheberrechtsverletzungen-auf-verlinkten-Seiten/Musterbrief/posting-29616440/show/
Sehr geehrte Damen und Herren,
gerne würde ich über ihren Beschluss vom 18. November (Az. 310 O 402/16) auf meiner Internetseite berichten. Im Rahmen der Berichterstattung möchte ich auch einen Link auf ihre Rechtsprechungsdatenbank hinterlegen, damit sich die Leser meines Berichts ein Bild über die Rechtsprechung ihres Hauses machen können.
Da ich nicht über Einsicht in alle ihre Vertragsangelegenheiten habe und somit nicht feststellen kann, ob für manche Medien auf ihrer Seite die Nutzungsrechte evtl. zeitlich beschränkt waren, komme ich auf diesem Wege meiner Pflicht zur Nachforschung nach und möchte mir von Ihnen als Seitenbetreiber eine Versicherung an Eides statt einholen, dass sie die entsprechenden Rechte zur Veröffentlichung haben.
Zur Vermeidung späterer Rechtsnachteile bitte ich hiermit im Sinne ihres o.g. Beschlusses um schri
@felixfischer
felixfischer / htpasswd.php
Created February 9, 2021 11:11 — forked from KrzysztofPrzygoda/htpasswd.php
A simple PHP .htpasswd and .htaccess generator
<pre>
<?php
/**
* A simple PHP .htpasswd and .htaccess generator
* If already present, .htpasswd is overwrittern but .htaccess is prepended with Access clousure if not found
*
* @author Krzysztof Przygoda, 2018
* @version 1.0
*/