Skip to content

Instantly share code, notes, and snippets.

View TheSkorm's full-sized avatar

Michaela Wheeler TheSkorm

View GitHub Profile
@TheSkorm
TheSkorm / test.sh
Created July 15, 2023 05:11
installing horus gui on arch
docker run -it agners/archlinuxarm /bin/bash
pacman -Syu
pacman -S base-devel python3 git cmake qt5-base qt5-tools portaudio
git clone https://github.com/projecthorus/horusdemodlib.git
cd horusdemodlib && mkdir build && cd build
cmake ..
make
sudo make install
@TheSkorm
TheSkorm / main.py
Created September 25, 2022 00:19
Realtime SSTV hack
import struct
from PIL import Image, ImageOps
import io
import requests
sstv = open("/tmp/myfifo", "rb")
def send_to_server(bytes_send):
url = "http://file.foxden:5000"
payload={'font':'DejaVuSansMono.ttf'}
files=[
@TheSkorm
TheSkorm / encode_hash_to_words.py
Created June 24, 2021 07:47
encodes hash to words
# 235886 words
text_file = open("/usr/share/dict/words", "r")
lines = text_file.readlines()
words = []
for line in lines:
words.append(line.strip())
import struct
from subprocess import *
import time
import os
from datetime import datetime
import fcntl
import wave
FREQUENCY = 438025000
BANDWIDTH = 20000
@TheSkorm
TheSkorm / esp32lg.ino
Created January 14, 2020 23:17
esp32lg.ino
#include <boarddefs.h>
#include <IRremoteInt.h>
#include <IRremote.h>
// this ir lib https://github.com/SensorsIot/Arduino-IRremote
// this mqtt lib https://pubsubclient.knolleary.net/
#include <PubSubClient.h>
#include <WiFi.h>
const char* ssid = "ToastyWaffles";
@TheSkorm
TheSkorm / temp.sh
Created October 21, 2019 01:52
Posts DHT11/DHT22 stuff to home assistant
#!/bin/bash
set -ex
KEY=""
HA_URL="" # no trailing slash
TEMP_VALUE=`cat /sys/bus/iio/devices/iio\:device0/in_temp_input | sed 's/...$/.&/'`
HUMIDITY_VALUE=`cat /sys/bus/iio/devices/iio\:device0/in_humidityrelative_input | sed 's/...$/.&/'`
curl -X POST -H "Authorization: Bearer $KEY" \
@TheSkorm
TheSkorm / gist:5ebb5556a5029142129d0ebf0470c9de
Created August 30, 2019 01:18
multimon-ng pager with rtl_fm
#not great, not terrible.
rtl_fm -f 148.363e6 -g 100 -s 22050 -l 50 | multimon-ng -a POCSAG512 -a POCSAG1200 -a POCSAG2400 -f alpha -
import boto3
import json
print('Loading function')
TABLE="australiancallsigns"
db = boto3.client('sdb')
def lambda_handler(event, context):
@TheSkorm
TheSkorm / sonde csv.json
Created July 3, 2019 10:00
Sonde ES to CSV
GET sonde_packets/_search
{
"size" : 10000,
"query": {
"match": {
"serial": {
"query": "RS_N4440477"
}
}
}
@TheSkorm
TheSkorm / 783109
Last active June 30, 2019 05:52
ACRUX1
[0.4] CQCQCQ>ACRUX1:<0x1b><0x00><0x00><0x05><0x1e><0x00>?3<0x03><0x00>?3p<0x0f>i<0x15><0x04><0x00><0x03><0x10>a<0x01>0"1"<0x00>?<0x00>?0<0x11><0x00><0x14><0x00>?<0x00>?<0x00>?<0x00>?<0x00>?<0x00>?<0x00>?<0x00>?<0x00>?<0x00>?<0x00>?<0x00>?<0x00>?<0x00>?<0x00>?<0x00>?<0x00>?*<0x05><0x00><0x00><0x00><0x00>3P<0x01><0x00><0x00><0x00><0x00><0x00><0x00><0x00>TODO: Please tell MSP that their satellite works<0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x18>?ۧ?WwB<0x0b>ټ$Gr?>?I0r)T3?<0x0d><<0x0d>?%<0x1e>0>
------
U frame UI: p