Skip to content

Instantly share code, notes, and snippets.

View mabe-at's full-sized avatar

Matthias Bendel mabe-at

View GitHub Profile
@mabe-at
mabe-at / ssh-tunnel.sh
Last active June 15, 2018 09:07
ssh tunnel socks proxy
sudo ssh -D localhost:5221 -f -C -q -N user@ssh-host.dings
@mabe-at
mabe-at / deinterlace.sh
Created June 7, 2018 07:29
imagemagick deinterlace
#!/bin/sh
#
# deinterlace image...
# from https://www.imagemagick.org/Usage/scripts/
#
# Smoothly double up every second line so as to de-interlace video snapshots.
#
exec mogrify -filter point -resize 100%x50% +filter -resize 100%x200% "$@"
@mabe-at
mabe-at / auth.pl
Created January 18, 2018 21:33 — forked from mmriis/auth.pl
IMAP/POP3 proxy authentication script for nginx. See http://www.whatastruggle.com/nginx-as-an-imappop3-proxy-part-2.
#!/usr/bin/perl
use Digest::HMAC_MD5 qw/ hmac_md5_hex /;
use DBI;
use URI::Escape;
use CGI;
print "Content-type: text/html\n";
my $q = CGI->new;
@mabe-at
mabe-at / detector.js
Created August 25, 2017 15:57 — forked from mauricesvay/detector.js
Original js implementation of face detection
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
$(function() {
$(document.links).filter(function() {
return this.hostname != window.location.hostname;
}).attr('target', '_blank');
});
@mabe-at
mabe-at / live.liq
Created October 18, 2016 09:53
Automatic switch to live-stream with liquidsoap
#!/usr/bin/liquidsoap
# Music
myplaylist = playlist("<path_to_playlist>/playlist.m3u")
# If something goes wrong, we'll play this
security = single("<path_to_fallback>/fallback-loop.mp3")
# optional speech generator
livesoon = single("say:We are live soon!")
@mabe-at
mabe-at / config.yaml
Last active September 24, 2022 13:57
Parse YAML into shell variables using shyaml
---
name: 'Max Mustermann'
database:
host: 'localhost'
database: 'mydb'
@mabe-at
mabe-at / pdf-unite.sh
Created October 7, 2015 22:54
pdfunite $(ls -v *.pdf) output.pdf // poppler
pdfunite $(ls -v *.pdf) output.pdf
@mabe-at
mabe-at / mozcontact_fields.txt
Last active August 29, 2015 14:26
MozContact properties as comment for quick insertion into code
/**
* MozContact.additionalName string array
* MozContact.adr AddressField object array
* type string ("home", "work", ...)
* pref bool
* streetAddress string
* locality string (city)
* region string
* postalCode string
* countryName string

Keybase proof

I hereby claim:

  • I am mabe-at on github.
  • I am mbendel (https://keybase.io/mbendel) on keybase.
  • I have a public key whose fingerprint is 6742 D3D2 596C 2901 A022 C45E 8AAA 3AF0 1227 9A06

To claim this, I am signing this object: