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
diff --git a/auto_rx.py b/auto_rx.py | |
index b2f941f..359edad 100644 | |
--- a/auto_rx.py | |
+++ b/auto_rx.py | |
@@ -595,8 +595,8 @@ def main(): | |
autorx.sdr_list = config['sdr_settings'] | |
# Check all the RS utilities exist. | |
- if not check_rs_utils(): | |
- sys.exit(1) |
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
wget -O- 'https://radiosondy.info/export/export_search.php?csv=1&search_limit=100&min_alt=0&max_alt=0&type=&qrg=&aux=&startplace=&status=&date_from=&date_to=&city=Rosenheim%28DE%29&radius=10' |
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
gatttool -b 00:81:F9:2C:AE:13 --char-write-req --value=0100 -a 0x0039 --listen | awk 'function toInt(hi,lo){v=256*strtonum("0x"hi)+strtonum("0x"lo);if(v>0x7fff){return -(0xffff-v+1)}else{return v}} { print toInt($9,$8)" "toInt($11,$10)" "toInt($13,$12)" "toInt($15,$14)" "toInt($17,$16)" "toInt($19,$18);fflush()}' | awk 'function abs(v){if(v<0){return -v}else{return v}}{print abs($1)+abs($2)+abs($3)" "abs($4)+abs($5)+abs($6);fflush()}' | awk '{print $1-gold" "$2-aold;gold=$1;aold=$2;fflush()}'| awk 'function abs(v){if(v<0){return -v}else{return v}}{print $1" "$2" "abs($1)" "abs($2);fflush()}'|~/bin/gp/addaverage.sh 26 3 |~/bin/gp/addaverage.sh 26 4 |~/bin/gp/removecolumns.sh 3,4 | bin/gp/gnuplotwindow.sh 130 "-1500:3000" "Accel;1" "Gyro;1" "Accel Average" "Gyro Average" |
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 | |
# available architectures: amd64, arm64, armhf, i386, ppc64el, s390x | |
ARCH=amd64 | |
DLDIR="$HOME/Downloads" | |
wget -P "$DLDIR" "https://launchpad.net/~canonical-kernel-team/+archive/ubuntu/ppa/+files/linux-headers-4.10.0-22-generic_4.10.0-22.24_${ARCH}.deb" && \ | |
wget -P "$DLDIR" "https://launchpad.net/~canonical-kernel-team/+archive/ubuntu/ppa/+files/linux-headers-4.10.0-22_4.10.0-22.24_all.deb" && \ | |
wget -P "$DLDIR" "https://launchpad.net/~canonical-kernel-team/+archive/ubuntu/ppa/+files/linux-image-4.10.0-22-generic_4.10.0-22.24_${ARCH}.deb" && \ | |
wget -P "$DLDIR" "https://launchpad.net/~canonical-kernel-team/+archive/ubuntu/ppa/+files/linux-image-extra-4.10.0-22-generic_4.10.0-22.24_${ARCH}.deb" |
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
{ | |
// See https://go.microsoft.com/fwlink/?LinkId=733558 | |
// for the documentation about the tasks.json format | |
"version": "0.1.0", | |
"tasks": [ | |
{ | |
"taskName": "cpplint file", | |
"command": "/home/alex/projects/styleguide/cpplint/cpplint.py", | |
"isShellCommand": false, | |
"args": ["--linelength=140", |
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 | |
# gistit requires either GITOKEN or GITOKENCMD variables to be defined. | |
# If no GITOKEN is defined then the GITOKENCMD will be eval'ed to get | |
# the Git token. If GITOKENCMD is also not difined then the by default | |
# the token will be read from the keyring using the following command: | |
# python3 -c 'import keyring; print(keyring.get_password("gist","'"$USER"'"))' | |
# One could put the Git token into the keyring using the following command: | |
# python3 -c 'import keyring; keyring.set_password("gist2","'"$USER"'", "MYTOKEN")' | |
# where MYTOKEN is the token string obtained from https://github.com/settings/tokens |