Skip to content

Instantly share code, notes, and snippets.

View sam210723's full-sized avatar

Sam sam210723

View GitHub Profile
@sam210723
sam210723 / adsbx-feeder-connection.py
Created March 29, 2022 01:20
Check the status of your ADS-B Exchange feeder
"""
adsbx-feeder-connection.py
Check the status of your ADS-B Exchange feeder
"""
import sys
import urllib.request
json_output = "json" in sys.argv
@sam210723
sam210723 / nerfnet-install.sh
Last active December 19, 2021 08:51
Setup nRF24L01 and nerfnet on Raspberry Pi Zero W (Raspbian Buster)
#!/bin/bash
# Prepare for installation
cd ~
mkdir nrf
cd nrf
sudo apt update
sudo apt install -y git cmake build-essential libtclap-dev
echo "Enable SPI in raspi-config"
sudo raspi-config
@sam210723
sam210723 / README.md
Last active May 7, 2022 07:47
Script to personalise a Debian-based distro (tested with Ubuntu 20.04)
wget -q -O - https://gist.github.com/sam210723/2422e56cd42593aeb49d23c512320888/raw/personalise-debian.sh | bash
@sam210723
sam210723 / dmr_demod_lpf_iq.grc
Last active March 20, 2024 19:07
DMR Demodulator in GNU Radio 3.10
options:
parameters:
author: sam210723
catch_exceptions: 'True'
category: '[GRC Hier Blocks]'
cmake_opt: ''
comment: ''
copyright: ''
description: ''
gen_cmake: 'On'
@sam210723
sam210723 / ffmpeg-waveform-vectorscope.bat
Last active June 13, 2021 12:27
Waveform and Vectorscope monitor using FFmpeg video filters
@echo off
REM https://ffmpeg.org/ffmpeg-filters.html
REM https://trac.ffmpeg.org/wiki/FancyFilteringExamples
ffplay -window_title "FFmpeg Waveform and Vectorscope" -i %1 -vf "split=4[vid][vec][wavh][wavv],[vec]vectorscope=mode=color3:graticule=green[vec],[wavh]waveform=mode=column:graticule=green:components=1:display=overlay[wavh],[wavv]waveform=mode=row:components=1:display=overlay[wavv],[vid][wavh]vstack[s1],[wavv][vec]vstack[s2],[s1][s2]hstack[out]"
@sam210723
sam210723 / iridium-setup.sh
Last active June 1, 2021 02:32
Install gr-iridium and iridium-toolkit for receiving and decoding frames from Iridium NEXT satellites
# Install dependencies (GNURadio 3.9.1)
sudo apt update
sudo apt install -y build-essential cmake git gnuradio gr-osmosdr swig3.0 libsndfile1-dev pybind11-dev python-tk
sudo apt install -y --no-install-recommends mplayer
volk_profile
# Install gr-iridium OOT
git clone https://github.com/muccc/gr-iridium
cd gr-iridium
git checkout maint-3.9
@sam210723
sam210723 / nrf24l01-setup.sh
Last active May 30, 2021 11:13
Setup GPIO tools and nRF24L01 on Raspberry Pi Zero W (Raspbian Buster)
#!/bin/bash
# Install dependencies
sudo apt update
sudo apt install -y build-essential cmake git make libtclap-dev
# Install pigpio
git clone https://github.com/joan2937/pigpio
cd pigpio
make
@sam210723
sam210723 / glscopeclient-install.sh
Last active November 2, 2021 23:20
Install scopehal and scopehal-apps (glscopeclient)
# Install dependencies
sudo apt-get install -y build-essential git cmake pkg-config libglm-dev libgtkmm-3.0-dev libsigc++-2.0-dev libyaml-cpp-dev liblxi-dev texlive texlive-fonts-extra libglew-dev
# Install Catch2 v2
git clone https://github.com/catchorg/Catch2
cd Catch2
git checkout v2.x
git fetch
git pull
mkdir build
@sam210723
sam210723 / ise-vm-riscv-install.sh
Last active January 10, 2021 10:39
Install RISC-V build toolchain on Xilinx ISE 14.7 VM (Oracle Linux Server 6.4)
#!/bin/bash
# Install RISC-V build toolchain on Xilinx ISE 14.7 VM (Oracle Linux Server 6.4)
# Build libmpc from source
rm -rf mpc-0.8.1
wget ftp://gcc.gnu.org/pub/gcc/infrastructure/mpc-0.8.1.tar.gz
tar zxvf mpc-0.8.1.tar.gz
cd mpc-0.8.1
./configure --disable-shared --enable-static --prefix=/tmp/gcc --with-gmp=/#tmp/gcc --with-mpfr=/tmp/gcc
make
@sam210723
sam210723 / gnuradio-wsl2.md
Last active November 2, 2024 06:23
Install GNU Radio 3.8 in WSL2 (Ubuntu 20.04)

Setup Xming X Server in Windows

Download and install Xming with all default settings. Uncheck "Launch Xming" on the last setup screen.

Start "XLaunch" from the Start Menu and click next until the "Specify parameter settings" screen. Check "No Access Control" then click next, then finish.

Setup GNU Radio

Launch a WSL2 instance and run the following commands: