Skip to content

Instantly share code, notes, and snippets.


Ruben Barkow-Kuder rubo77

View GitHub Profile
rubo77 /
Last active Nov 28, 2020
converts a jpeg file with a planet on black background to a transparent png
# converts a jpeg file with a planet on black background to a transparent png
# like this imagemagick function does:
# for i in planet_*.jpg; do nr=$(echo ${i/planet_/}|sed s/.jpg//g|xargs); convert $i -fuzz 1% -transparent black trans/planet_${nr}.png; done
# but the python script will create them without arkifacts
# needs
# sudo apt install python3-opencv python3-sklearn python3-skimage
rubo77 / list_of_all_ciphers_in_tlsv1.3.txt
Created May 9, 2020
list of all ciphers in TLSv1.3 in Debian buster
View list_of_all_ciphers_in_tlsv1.3.txt
# this is the output when you expand the rules to the full list of ciphers with
# openssl ciphers 'TLSv1.3:HIGH:!LOW:!MEDIUM:!EXP:!NULL:!aNULL@STRENGTH'
rubo77 / comments_in_gluon_firmware.ascii
Created Apr 5, 2020
all comments in gluon firmware
View comments_in_gluon_firmware.ascii
# Copyright (C) 2013 Project Gluon
# Copyright (C) 2013 Project Gluon
# Firewall script for inserting and removing ebtables rules.
# Example format, for filtering any IPv4 multicast packets to the SSDP UDP port:
# rule FORWARD --logical-out br-client -d Multicast -p IPv4 --ip-protocol udp --ip-destination-port 5355 -j DROP
# Removing all rules:
# $ /etc/init.d/gluon-ebtables stop
# Inserting all rules:
# $ /etc/init.d/gluon-ebtables start
# Inserting a specific rule file:
rubo77 /
Last active Sep 5, 2020
This script rotates the screen (tested on a Lenovo Yoga 730-15iwl) (source:
# This script rotates the screen and touchscreen
# by Ruben Barkow-Kuder:
#### configuration
# find your Touchscreen device with `xinput`
TouchscreenDevice="$(xrandr |grep eDP|cut -d" " -f1)"
if [ "$1" = "--help" ] || [ "$1" = "-h" ] ; then
rubo77 /
Last active Feb 2, 2020
matrix synapse commands in riot





Prepends ¯\(ツ)/¯ to a plain-text message




rubo77 /
Last active Jul 23, 2020
start snap service, delete snap backups, do a refresh and disable it again
# this script starts the snapd service, deletes old snap images, does a refresh and disables it again
# put it in /usr/local/sbin/snap-update and give it executable rights
set -x
systemctl unmask snapd.service
systemctl start snapd.service
systemctl status --no-pager snapd.service
snap refresh
LANG=C snap list --all | awk '/disabled/{print $1, $3}' |
rubo77 / 00_local_excludes
Last active Nov 4, 2019
/etc/aide/aide.conf.d/00_local_excludes exclude file with all folders, that frequently change
View 00_local_excludes
rubo77 /
Last active May 7, 2019 — forked from sandeepyohans/
Adding alert() support to a WebView - Android
Retrieved from
// ...
import android.content.Context;
import android.content.DialogInterface;
public class MainActivity extends AppCompatActivity {
# this script can log the quality of fastd-connections to all gateways
# it sets only one gateway active at a time and checks the connection.
# add this script as cron script to get a statistic over time
GATEWAYLIST="0 1 2 4 6"
rubo77 /
Created Apr 1, 2019
Downloads 90 random generated midi files from each section in
# enable all soundfonts in timidity
for i in $(seq 10 99); do
file="$base - Jazz (Randomly Generated) - $i.mid"
echo $file
curl -K -vs -o "$file"
file="$base - Jazz Fusion (Randomly Generated) - $i.mid"
echo $file
You can’t perform that action at this time.