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
options: | |
parameters: | |
author: sa2kng | |
catch_exceptions: 'True' | |
category: '[GRC Hier Blocks]' | |
cmake_opt: '' | |
comment: '' | |
copyright: '' | |
description: '' | |
gen_cmake: 'On' |
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
options: | |
parameters: | |
author: sa2kng | |
catch_exceptions: 'True' | |
category: '[GRC Hier Blocks]' | |
cmake_opt: '' | |
comment: '' | |
copyright: '' | |
description: '' | |
gen_cmake: 'On' |
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 python3 | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from sys import argv | |
def waveform_plot(w): | |
print(f"Plotting {w}") | |
try: | |
x = np.fromfile(w, dtype='float32') |
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/python3 | |
import sys | |
import psutil | |
if(len(sys.argv) != 2): | |
print("supply process ID") | |
exit(1) | |
p = psutil.Process(int(sys.argv[1])) | |
print("cpu times {}".format(p.cpu_times())) |
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
# /etc/udev/rules.d/60-uhd-usrp.rules | |
# Copyright 2011,2015 Ettus Research LLC | |
# Copyright 2018 Ettus Research, a National Instruments Company | |
# | |
# SPDX-License-Identifier: GPL-3.0-or-later | |
# | |
#USRP1 | |
SUBSYSTEMS=="usb", ATTRS{idVendor}=="fffe", ATTRS{idProduct}=="0002", MODE:="0666", GROUP="plugdev" |
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
Fetch the https://github.com/projecthorus/radiosonde_auto_rx/blob/master/auto_rx/station.cfg.example as station.cfg and edit. | |
Create log dir. | |
Start with: docker compose up -d |
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 python3 | |
import psutil | |
import sys | |
if len(sys.argv) != 2: | |
print('supply pid to connect') | |
exit(-1) | |
p = psutil.Process(int(sys.argv[1])) | |
print(p.memory_info()) |
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 | |
# test run high baud with: BAUD=10000000 ./test-bpsk.sh | |
# It will raise AttributeError and quit | |
if [ -f /.env ]; then | |
source /.env | |
fi | |
if [ -z "${RX_FREQ}" ]; then |
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 | |
DOCKER_XAUTH=/tmp/.docker.xauth | |
touch ${DOCKER_XAUTH} | |
xauth nlist $DISPLAY | sed -e 's/^..../ffff/' | xauth -f $DOCKER_XAUTH nmerge - | |
docker run -it --rm \ | |
--net=host \ | |
-e DISPLAY=$DISPLAY \ | |
-e XAUTHORITY=$DOCKER_XAUTH \ | |
-v /tmp/.docker.xauth:/tmp/.docker.xauth:ro \ | |
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \ |
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 | |
#SATNOGS_RIG_IP=rigctld | |
CLIENT=satnogs-client | |
RIGIP=$(getent hosts "$SATNOGS_RIG_IP" | awk '{ print $1 }') | |
FLOWGRAPHS=(/usr/bin/satnogs_*.py) | |
OUTPATH=~/.local/bin | |
if [ -z "$RIGIP" ]; then | |
echo "Warning: unable to resolve SATNOGS_RIG_IP" | |
exec $CLIENT |
NewerOlder