Skip to content

Instantly share code, notes, and snippets.

View peterbmarks's full-sized avatar

Peter B Marks peterbmarks

View GitHub Profile
@peterbmarks
peterbmarks / blogger2wordpress.py
Last active July 21, 2025 00:25
Migrate a Google Blogger takeout feed.atom over to Wordpress with posts, images and comments.
#!/usr/bin/env python3
"""
Google Takeout Atom Feed to WordPress Migrator.
Reads a Google Takeout feed.atom file and posts content with comments and images to WordPress via REST API
You need to edit your user to create an Application Password and use it below in order
to use the REST API.
If download_images is True they will be pulled from the original blog and added to Wordpress.
@peterbmarks
peterbmarks / wsprgen.py
Last active August 19, 2025 10:49
Python code to generate WSPR tones using pyaudio
#!/usr/bin/env python3
# Pure python code to generate WSPR audio tones
#
# Heavily based on https://github.com/PH0TRA/wspr which drove an AD9851
# I removed that code and replaced it with audio generation using pyaudio
# wsprgen.py CALLSIGN GRID dBPower BASE_AUDIO_FREQUENCY
# genwsprcode from https://github.com/PH0TRA/wspr/blob/master/genwsprcode.py
import genwsprcode as g
import pyaudio
@peterbmarks
peterbmarks / SiCrystal.ino
Created March 10, 2023 05:16
Minimal VFO using Si5351
/*
Simple VFO for a direct conversion receiver.
Si5351 controlled by a rotary encoder.
Based on code from Paul, VK3HN
https://github.com/prt459/Arduino_si5351_VFO_Controller_Keyer
*/