Skip to content

Instantly share code, notes, and snippets.

;;(defcfg
;; linux-dev /dev/input/by-path/platform-i8042-serio-0-event-kbd
;;)
;;(defcfg
;; linux-dev-names-include (
;; "Logitech MX Ergo"
;; "TPPS/2 Elan TrackPoint"
;; "Yubico YubiKey OTP+FIDO+CCID"
;; "LogiOps Virtual Input"
switch:
- platform: gpio
pin: D1
inverted: False
id: relay
- platform: gpio
pin: D2
inverted: False
id: right
- platform: gpio
tuxflo@flo-x390 ~ % yt-dlp --verbose https://manifest.prod.boltdns.net/manifest/v1/dash/live-baseurl/bccenc/6057955896001/68abd0b6-e2db-43f1-907e-77de67a1fd53/6s/manifest.mpd?behavior_id=6653bcfa-b258-4bc9-8f30-4b702ead02d8&fastly_token=NjFiMzc4NmZfMTc1NmU1YzY4ZWY2Y2NkM2QyOTM4ZDg4ZGIxMjljYzI4NTdkMjk3NDhmMjAyY2Q0NjIzYTY2MzNmNjA1MGFhYw%3D%3D
[1] 13766
tuxflo@flo-x390 ~ % [debug] Command-line config: ['--verbose', 'https://manifest.prod.boltdns.net/manifest/v1/dash/live-baseurl/bccenc/6057955896001/68abd0b6-e2db-43f1-907e-77de67a1fd53/6s/manifest.mpd?behavior_id=6653bcfa-b258-4bc9-8f30-4b702ead02d8']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8
[debug] yt-dlp version 2021.12.01 [91f071af6] (zip)
[debug] Python version 3.9.7 (CPython 64bit) - Linux-5.15.2-2-MANJARO-x86_64-with-glibc2.33
[debug] exe versions: ffmpeg 4.4.1 (setts), ffprobe 4.4.1, rtmpdump 2.4
[debug] Optional libraries: Crypto, keyring, sqlite
[debug] Proxy map: {}
[debug] [generic] Extracting URL: https://manifest.pr
@tuxflo
tuxflo / import.sh
Created January 31, 2018 21:13
digikam import.sh
#!/bin/bash
FILE=$1$2 #hier wird der komplette Dateiname der Datei (Pfad + Name) erstellt
DEST=$3
if [ -e $FILE.xmp ]; then # xmp vorhanden, kopiere sie in den neuen Pfad
cp $FILE.xmp $DEST
fi
@tuxflo
tuxflo / rotate_desktop.sh
Last active January 28, 2024 23:07 — forked from mildmojo/rotate_desktop.sh
Script to rotate the screen and touch devices on modern Linux desktops. Great for convertible laptops.
#!/bin/bash
#
# rotate_desktop.sh
#
# Rotates modern Linux desktop screen and input devices to match. Handy for
# convertible notebooks. Call this script from panel launchers, keyboard
# shortcuts, or touch gesture bindings (xSwipe, touchegg, etc.).
#
# Using transformation matrix bits taken from:
# https://wiki.ubuntu.com/X/InputCoordinateTransformation
@tuxflo
tuxflo / applygeobookmark.sh
Last active June 27, 2017 09:42
Dolphin Geotag Service Menu
#!/usr/bin/env bash
lat=$1
if (( $(echo "$lat > 0" |bc -l) )); then
latref="N"
else
latref="S"
fi
lon=$2
@tuxflo
tuxflo / mergepdf.sh
Last active November 10, 2016 16:11
#!/bin/bash
INPUT=/srv/input
OUTPUT=/srv/output
cd $INPUT
if [[ $1 != *.pdf ]]; then
echo "not a pdf file, do nothing"
exit
fi
@tuxflo
tuxflo / filework
Last active August 29, 2015 14:17
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <stdlib.h>
#define NUM_CHILDS 5
#define NUM_FILEOPERATIONS 20000
int filework(FILE *fp);