Skip to content

Instantly share code, notes, and snippets.

View sam210723's full-sized avatar

Sam sam210723

View GitHub Profile
@tinbotu
tinbotu / _ethernet-server-adapters-X520-SR2.png
Last active June 16, 2024 07:26
log: patching Intel X520 10G*2 SFP+ NIC EEPROM to unlock third party transceivers (succeed)
_ethernet-server-adapters-X520-SR2.png
@ast
ast / doublemap.c
Last active July 4, 2020 15:55
My double mapped ringbuffer implementation intended for DSP applications.
//
// doublemap.c
// spieserver
//
// Created by Albin Stigö on 2019-12-08.
// Copyright © 2019 Albin Stigo. All rights reserved.
//
#include "doublemap.h"
#!/bin/bash
# STRF Cronjob Script
#
# Compile rffft from https://github.com/cbassa/strf
# Use: make rffft
# You should only need libfftw3-dev as a dependency.
#
# Prepare directory with:
# mkfifo fifo
# mkdir data
@GuzTech
GuzTech / colorlight_5a_75b.py
Created March 30, 2020 21:58
Modified the original so that both UART and SDRAM now work.
#!/usr/bin/env python3
# This file is Copyright (c) 2020 Florent Kermarrec <florent@enjoy-digital.fr>
# License: BSD
# Disclaimer: This SoC is still a Proof of Concept with large timings violations on the IP/UDP and
# Etherbone stack that need to be optimized. It was initially just used to validate the reversed
# pinout but happens to work on hardware...
# Build/Use:
@darksidelemm
darksidelemm / STRF_Setup.md
Last active December 2, 2023 02:27
Setting up STRF Capture & Processing

Setting up STRF Data Capture & Processing

Author: Mark Jessop (VK5QI) vk5qi@rfhead.net

This guide provides information on how to capture FFT data using the strf toolset, process it to look for satellite signals, and finally compare their doppler shift against TLEs from the SpaceTrack database. This can help with resolving the 'TLE lottery' after new launches, or cataloguing transmissions from spacecraft already in orbit.

It should be noted that the analysis described in this document is but a small subset of what the strf tools are capable of! Scott Tilley has a post describing some of the history behind strf and giving a crash course on the relationship between orbital dynamics and the doppler effect here: https://skyriddles.wordpress.com/2019/01/04/basic-orbital-dynamics/

The target platform is Debian-based distributions (e.g. Debian, Raspbian, Ubuntu), but should be applicable to other Linux-based platforms. The data processing software (rfplot and rffit) is also k

#!/bin/bash
# STRF Capture Script
# Mark Jessop <vk5qi@rfhead.net>
#
# Compile rffft from https://github.com/cbassa/strf
# Use: make rffft
# You should only need libfftw3-dev as a dependency.
#
# Prepare directory with:
# mkfifo fifo
@mrpeardotnet
mrpeardotnet / PVE-HP-ssacli-smart-storage-admin.md
Created November 25, 2019 22:10
HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x)

HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x)

Why use HP Smart Storage Admin CLI?

You can use ssacli (smart storage administrator command line interface) tool to manage any of supported HP Smart Array Controllers in your Proxmox host without need to reboot your server to access Smart Storage Administrator in BIOS. That means no host downtime when managing your storage.

CLI is not as convenient as GUI interface provided by BIOS or desktop utilities, but still allows you to fully manage your controller, physical disks and logical drives on the fly with no Proxmox host downtime.

ssacli replaces older hpssacli, but shares the same syntax and adds support for newer servers and controllers.

Installation

@sprout42
sprout42 / gnuradio_install.sh
Last active December 16, 2023 15:20
Installing gnuradio w/ companion on MacOS
# This compiles and installs gnuradio including gnuradio-companion for MacOS.
# It uses homebrew (https://brew.sh/) for all non-python libraries and pyenv
# (https://github.com/pyenv/pyenv) for managing python. I'm sure some of this
# would be easier if I used homebrew for python as well but I've found pyenv
# and standard pip to be less buggy in general. However it does mean that for
# python packages that don't install with pip you need to download and compile
# the packages.
#
# Note that this script is not very robust yet, it's not made to run more than
# once (sorry). ~If~ When you find bugs please let me know and we'll update
@racerxdl
racerxdl / fulldisk2jpg.py
Last active April 30, 2017 00:41
LRIT Full Disk Image converter to JPEG
#!/usr/bin/env python
'''
Needs Pillow, xrit and numpy
pip install xrit Pillow
Numpy is better to be installed using distro packages.
'''
import os, math
@jn0
jn0 / rtsp-rtp-sample.py
Created December 2, 2016 08:43
Sample Python script to employ RTSP/RTP to play a stream from an IP-cam (from stackoverflow)
"""
http://stackoverflow.com/questions/28022432/receiving-rtp-packets-after-rtsp-setup
A demo python code that ..
1) Connects to an IP cam with RTSP
2) Draws RTP/NAL/H264 packets from the camera
3) Writes them to a file that can be read with any stock video player (say, mplayer, vlc & other ffmpeg based video-players)
Done for educative/demonstrative purposes, not for efficiency..!