Skip to content

Instantly share code, notes, and snippets.

View oliver's full-sized avatar

Oliver Gerlich oliver

View GitHub Profile
@oliver
oliver / antifascist-action-cpp1.svg
Created January 23, 2024 18:45
Antifa-Flaggen-Logo mit dem Spruch "Klassenkampf und leicht reizbar – C++er Antifa"
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@oliver
oliver / Petition_162166.txt
Last active January 17, 2024 19:40
Entwurf von Petition #162166 (s. https://troet.cafe/@NieWieder)
Der Deutsche Bundestag möge als antragsberechtigtes Verfassungsorgan durch Antrag an das Bundesverfassungsgericht ein Verbotsverfahren (gemäß Art. 21 Abs. 2 GG i. V. m. § 13 Nr. 2, §§ 43 ff. BVerfGG) mit dem Ziel einleiten die Verfassungswidrigkeit der Partei "Alternative für Deutschland (AfD)" festzustellen, und durch Urteil ein Verbot der Partei, ihrer Jugendorganisation und parteinahen Stiftungen erwirken.
Eine namentliche Abstimmung dazu wäre wünschenswert und geboten.
Begründung
Die Jugendorganisation der AfD "Junge Alternative (JA)" sowie mehrere Landesverbände der AfD sind bereits durch die Behörden des Verfassungsschutzes als gesichert rechtsextremistisch eingestuft, noch mehr Landesverbände sind als Verdachtsfall qualifiziert.
Die Indizien für die verfassungsfeindlichen Bestrebungen der AfD und ihrer Protagonisten sind unwiderlegbar bewiesen und erdrückend.
@oliver
oliver / fix_search_hash.py
Last active December 5, 2021 15:57
moz_hash.py reimplements the getVerificationHash() method from Mozilla SearchUtils.jsm. fix_search_hash.py uses that to modify the search engine entry.
#!/usr/bin/env python3
#
# Adjusts the metaData.hash value in the supplied search.json.mozlz4 file to match the supplied profile path value.
#
import io
import json
import mozlz4a
import os
@oliver
oliver / firefox-priv.sh
Last active September 1, 2020 21:49
Start Firefox with new profile
#!/bin/bash
#
# Starts Firefox with a new temporary profile which is deleted when FF exits.
#
tempdir=$(mktemp -d --tmpdir firefox-priv.XXXXXX)
echo "$(date): starting Firefox with temporary profile at '$tempdir'"
cleanupOnExit ()
@oliver
oliver / dl-cccmedia.py
Last active December 31, 2017 13:12
fetches video URLs from media.ccc.de
#!/usr/bin/env python
#
# Downloads URLs for all talks of a conference from media.ccc.de.
# Prefers HD videos with many languages.
# Prints a list of URLs, for use eg. with wget -i .
#
import requests
@oliver
oliver / gist:5ed673edc8521b63827b
Created September 21, 2014 10:51
[PATCH] change test to cover the original problem from rt-84767
From 856ce484fc090725525e9781baab2fd02610400f Mon Sep 17 00:00:00 2001
From: Oliver Gerlich <oliver.gerlich@gmx.de>
Date: Sun, 21 Sep 2014 12:46:23 +0200
Subject: [PATCH] change test to cover the original problem from rt-84767
---
t/rt-84767.t | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/rt-84767.t b/t/rt-84767.t
@oliver
oliver / dct-demo.py
Created April 14, 2014 20:28
create an animation showing Discrete Cosine Transform and what its frequency levels look like
#!/usr/bin/python
import sys, os
from PIL import Image
import numpy
import scipy.fftpack
sourceImage = sys.argv[1]
image = Image.open(sourceImage)
#!/bin/sh
# Start Gedit in new process (by setting TMPDIR to different value)
export TMPDIR=/tmp/mgedit/
mkdir -p $TMPDIR
NEWTMPDIR=`mktemp -d -t mgedit.XXXXXXXXXX` || exit 1
export TMPDIR=$NEWTMPDIR
/usr/bin/gedit $@ &> $TMPDIR/gedit.log