Skip to content

Instantly share code, notes, and snippets.

View TheSkorm's full-sized avatar

Michaela Wheeler TheSkorm

View GitHub Profile
@TheSkorm
TheSkorm / icloud-album-download.sh
Created September 2, 2024 00:25 — forked from AlexanderWillner/icloud-album-download.sh
Download entire iCloud shared albums
#!/bin/bash
# Description: Downloads Web Albums shared by Apple Photos
# Requirements: jq
# Usage: ./icloud-album-download.sh <URL> [<target folder>]
# Source: https://gist.github.com/AlexanderWillner/b8124af1979e88d4046987c953b8260f
# Author: @zneak, @WildDIC, @AlexanderWillner
if [[ -z "$1" ]]; then
echo "Syntax: $0 <URL> [<target folder>]" >&2
@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"
}
}
}