View gist:dda5801e83bb7213cd0c02ed533787a3
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
switch: | |
- platform: gpio | |
pin: D1 | |
inverted: False | |
id: relay | |
- platform: gpio | |
pin: D2 | |
inverted: False | |
id: right | |
- platform: gpio |
View gist:331b44ab14172ab22c11dd68fa970a8b
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
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 |
View import.sh
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 | |
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 |
View rotate_desktop.sh
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 | |
# | |
# 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 |
View applygeobookmark.sh
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/env bash | |
lat=$1 | |
if (( $(echo "$lat > 0" |bc -l) )); then | |
latref="N" | |
else | |
latref="S" | |
fi | |
lon=$2 |
View mergepdf.sh
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 | |
INPUT=/srv/input | |
OUTPUT=/srv/output | |
cd $INPUT | |
if [[ $1 != *.pdf ]]; then | |
echo "not a pdf file, do nothing" | |
exit | |
fi |
View filework
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
#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); |