This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export DRI_PRIME=1 | |
export vblank_mode=0 | |
$DROPCACHES="$HOME/bin/drop_caches.sh" | |
if [ -x $DROPCACHES ]; | |
then | |
sync | |
sudo $DROPCACHES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
evdev:input:b0003v2040pF900e0200* | |
KEYBOARD_KEY_3736=stopcd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# | |
# Copyright 2020 by Heiko Schäfer <[email protected]> | |
# | |
# | |
# Checks if a email date is *NOT* within a range of hours | |
# | |
# For usage in kmail filter, ex.: | |
# | |
# /path/to/isdaymail.py "%{date}" 18 4 && echo "Youtube announcement: %{subject}" | sed 's/Subject: //' | /usr/bin/espeak -s140 -a25 -b1 -k20 --stdin & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alsa-base | |
alsa-utils | |
anacron | |
at-spi2-core | |
avahi-daemon | |
bc | |
bleachbit | |
blueman | |
bluez | |
bsd-mailx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
hostname=$1 | |
device=$2 | |
file=$HOME/.dynv6.addr6 | |
[ -e $file ] && old=`cat $file` | |
if [ -z "$hostname" -o -z "$token" ]; then | |
echo "Usage: token=<your-authentication-token> [netmask=64] $0 your-name.dynv6.net [device]" | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name OMDB - Suche in der DB | |
// @version 0.15 | |
// @description Userscript um Filme von omdb in der Datenbank https://rangun.de/index.php zu suchen | |
// @author Heiko Schäfer | |
// @homepage https://gist.github.com/velnias75/2eb5a3625640ada0007d3d2c0de09eb5 | |
// @updateURL https://gist.github.com/velnias75/2eb5a3625640ada0007d3d2c0de09eb5/raw/omdb.user.js | |
// @downloadURL https://gist.github.com/velnias75/2eb5a3625640ada0007d3d2c0de09eb5/raw/omdb.user.js | |
// @namespace https://rangun.de/db/ | |
// @match http://www.omdb.org/person/*/filmography |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# unsigned int ilog(unsigned int value, unsigned int base); | |
# (c) 2018 by Heiko Schaefer | |
.section .text | |
.globl ilog | |
.type ilog, @function | |
ilog: | |
pushl %ebp | |
movl %esp, %ebp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* binominal coefficient constant template | |
* | |
* g++ --std=c++11 -g0 -O3 -s bicot.cpp -o bicot | |
* | |
* (c) 2017 by Heiko Schaefer <[email protected]> | |
* | |
*/ | |
#include <iostream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* calculate binominal coefficient | |
* | |
* gcc -std=c99 -g0 -O3 -s bico.c -o bico -lm | |
* | |
* (c) 2017 by Heiko Schaefer <[email protected]> | |
* | |
*/ | |
#include <math.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Recursive/iterative/native integer log2 algorithm comparison in Python | |
# | |
# (c) 2017 Heiko Schaefer <[email protected]> | |
# | |
import sys, time, math | |
# recursive | |
def log2r(a, b = 0): |
NewerOlder