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
From a04a99562a16b21d0e9f4cc0994b81c31907e1f1 Mon Sep 17 00:00:00 2001 | |
From: "conor.keegan" <con@conor.net> | |
Date: Wed, 28 Oct 2020 12:29:50 +0000 | |
Subject: [PATCH 1/2] patched DVB frontends | |
--- | |
drivers/media/dvb-frontends/ds3000.c | 5 +- | |
drivers/media/dvb-frontends/m88ds3103.c | 3 +- | |
drivers/media/usb/dvb-usb/dw2102.c | 151 ++++++++++++------------ | |
3 files changed, 83 insertions(+), 76 deletions(-) |
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
From b32819e37711f40f136ce087e4176ab853f75863 Mon Sep 17 00:00:00 2001 | |
From: CvH | |
Date: Wed, 12 Sep 2018 20:48:05 +0200 | |
Subject: [PATCH] DS3103B patch | |
--- | |
drivers/media/dvb-frontends/ds3000.c | 2217 ++++- | |
drivers/media/dvb-frontends/ds3000.h | 76 +- | |
drivers/media/dvb-frontends/ds3000_firmware.h | 8203 +++++++++++++++++ | |
drivers/media/usb/dvb-usb/dw2102.c | 46 +- |
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 | |
# connect.sh | |
# Usage: | |
# $ connect.sh <device> <port speed> | |
# Example: connect.sh /dev/ttyS0 9600 |
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
Cipher=[0]101111[0]00 0xBC 10101101 0xAD 01101001 0x69 11101001 0xE9 10010011 0x93 | |
flip = 00111101 0x3D 10110101 0xB5 10010110 0x96 10010111 0x97 11001001 0xC9 | |
<-- This is Meteotime DES cypher | |
Key = 01000000 0x40 00000000 0x00 00001100 0xC0 00100100 0x24 01001000 0x48 | |
Key flip = 00010010 0x12 00100100 0x24 00110000 0x30 00000000 0x00 00000010 0x02 | |
<-- This is Meteotime DES key | |
http://arduino-projects4u.com/meteotime/ | |
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
IFS=";;;" | |
function tag() { tail -c 128 "$1" | head -c 3; } | |
function title() { tail -c 125 "$1" | head -c 30 | rtrim; } | |
function artist() { tail -c 95 "$1" | head -c 30 | rtrim; } | |
function album() { tail -c 65 "$1" | head -c 30 | rtrim; } | |
function year() { tail -c 35 "$1" | head -c 4 | rtrim; } | |
function comment() { tail -c 31 "$1" | head -c 28 | rtrim; } | |
function track() { tail -c 3 "$1" | hexdump -ve '/1 "%02i "' \ | |
| awk '{ if ($1 == 0 && $2 != 0) print $2" " }'; } | |
function genre() { tail -c 1 "$1" | hexdump -ve '/1 "%03i"'; } |
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
from gpiozero import LED | |
from time import sleep | |
from signal import pause | |
red = LED(35) | |
green = LED(47) | |
def blink(n): | |
red.blink(n, n) | |
sleep(n) |
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
# for rasbian | |
# sudo cp autossh.service /etc/systemd/system/ ; sudo systemctl enable autossh.service ; sudo reboot | |
[Unit] | |
Description=Keep ssh tunnel to specified remote host open | |
After=network.target | |
[Service] | |
User=USERNAME_TO_RUN_SSH_UNDER |
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
RSYNC_SKIP_COMPRESS=3g2/3gp/3gpp/7z/aac/ace/amr/apk/appx/appxbundle/arc/arj/asf/avi/bz2/cab/crypt5/crypt7/crypt8/deb/dmg/drc/ear/gz/flac/flv/gpg/iso/jar/jp2/jpg/jpeg/lz/lzma/lzo/m4a/m4p/m4v/mkv/msi/mov/mp3/mp4/mpeg/mpg/mpv/oga/ogg/ogv/opus/png/qt/rar/rpm/rzip/s7z/sfx/svgz/tbz/tgz/tlz/txz/vob/wim/wma/wmv/xz/z/zip | |
IFS=";;;" rsync --partial --progress --skip-compress=${RSYNC_SKIP_COMPRESS} -avz -e "ssh -T -o 'Compression=no'" "$1" "$2" |