Skip to content

Instantly share code, notes, and snippets.

View sam210723's full-sized avatar

Sam sam210723

View GitHub Profile
@sam210723
sam210723 / install.sh
Created October 4, 2017 10:09
TVHeadend Raspberry Pi Zero Raspbian install
sudo apt-get update
sudo apt-get install unzip libcurl4-openssl-dev pkg-config git build-essential dvb-apps git build-essential debhelper gettext libssl-dev zlib1g-dev libcurl4-gnutls-dev curl cmake libavahi-client-dev liburiparser-dev
cd ~/Documents
git clone https://github.com/tvheadend/tvheadend
cd tvheadend
AUTOBUILD_CONFIGURE_EXTRA="--disable-libvpx --disable --disable-libvpx_static --disable-bintray_cache --enable-hdhomerun_client" ./Autobuild.sh
sudo apt-get install -y git make gfortran gcc libpng-dev libx11-dev libjpeg-dev libexif-dev dos2unix pgplot5 libgsl-dev fftw3 libfftw3-dev
git clone https://github.com/cbassa/strf
cd strf
make
@sam210723
sam210723 / README.md
Last active July 18, 2020 03:48
Debian systemd service for xrit-rx

Debian systemd service for xrit-rx

  1. Download xrit-rx.service
  2. Edit WorkingDirectory in xrit-rx.service to the location of xrit-rx on your system
  3. Copy xrit-rx.service to /etc/systemd/system (sudo cp xrit-rx.service /etc/systemd/system)
  4. Reload systemd daemons (sudo systemctl daemon-reload)
  5. Start xrit-rx service (sudo systemctl start xrit-rx.service)
  6. Check service is running (systemctl status xrit-rx.service)
  7. Check console output of xrit-rx (sudo journalctl -u xrit-rx.service)
  8. Enable service to run at startup (sudo systemctl enable xrit-rx.service)
"""
false-colour.py
https://github.com/sam210723/himawari-rx
Generates false colour images from multiple grayscale channels
"""
import argparse
import colorama
from colorama import Fore, Back, Style
<?xml version='1.0' encoding='utf-8'?>
<?grc format='1' created='3.7.13'?>
<flow_graph>
<timestamp>Mon Nov 27 10:10:51 2017</timestamp>
<block>
<key>options</key>
<param>
<key>author</key>
<value>sam210723</value>
</param>
@sam210723
sam210723 / gk-2a-setup.sh
Last active January 6, 2021 08:17
GK-2A quick setup
# Install dependencies
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install build-essential cmake zlib1g-dev libairspy-dev rtl-sdr librtlsdr-dev
sudo reboot
# Install goesrecv
cd ~
git clone --recursive https://github.com/sam210723/goestools
cd goestools
@sam210723
sam210723 / M2_2_LRPT.grc
Created July 23, 2019 14:20
Meteor-M N2-2 LRPT OQPSK 72kSps demodulator
<?xml version='1.0' encoding='utf-8'?>
<?grc format='1' created='3.7.13'?>
<flow_graph>
<timestamp>Sat Jul 20 10:45:09 2019</timestamp>
<block>
<key>options</key>
<param>
<key>author</key>
<value></value>
</param>
@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 / Makefile
Last active April 2, 2021 07:42
Install IceStorm + Yosys + NextPNR + RISC-V toolchain + TinyFPGA PicoSoC Example
upload: hardware.bin firmware.bin
tinyprog -p hardware.bin -u firmware.bin
build: hardware.bin firmware.bin
echo "Complete"
hardware.blif: hardware.v spimemio.v simpleuart.v picosoc.v picorv32.v
yosys -ql hardware.log -p 'synth_ice40 -top hardware -json hardware.json' $^
@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