Skip to content

Instantly share code, notes, and snippets.

View andypiper's full-sized avatar
Don't look now, I'm going to try #MicroPython!

Andy Piper andypiper

Don't look now, I'm going to try #MicroPython!
View GitHub Profile
andypiper / bookmarks-ap.csv
Created September 20, 2023 13:57
An example export file from Postmarks for testing
View bookmarks-ap.csv
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 6.
"My Glitch in Bio links page","","A LinkTree-style set of links for my major web and social presences","#links #glitchinbio #bio #andypiper #personal","2023-09-07 22:27:31","2023-09-07 22:27:31"
"OMG Andy Piper LOL","","A quick landing page, including a /now page and basic info. Built on","#andypiper #bio #personal #omglol #now","2023-09-07 22:28:46","2023-09-07 22:28:46"
"Mastodon API documentation","",,"#mastodon #fediverse #activitypub #api #rest #developer #docs #mastodonapi","2023-09-07 22:41:28","2023-09-07 22:41:28"
"Mastodon API client libraries and SDKs","",,"#developer #coding #api #rest #mastodon #mastodonapi #sdk #library","2023-09-07 22:42:36","2023-09-07 22:42:36"
"Useful Resources for getting started in DevRel","","Andy Piper's l
andypiper /
Created August 15, 2023 10:12
Get Mastodon followed hashtags
$ curl -s --header "Authorization: Bearer $TOKEN" https://$INSTANCE/api/v1/followed_tags | jq '.[] | .name' 
andypiper / post
Created January 2, 2023 19:32 — forked from edsu/post
View post
# Set these environment variables and you can create a (text-only) post using
# your favorite command line text editor.
# - EDITOR: e.g. vim, emacs, etc
# - MASTODON_POST_HOST: the hostname for our Mastodon account, e.g.
# - MASTODON_POST_TOKEN: an app access key with write:statuses permission
# See:
andypiper /
Created November 15, 2022 11:54
Post a Toot from MicroPython
import network
import urequests
import ujson
# do_connect()
# note: this *must* include content-type
andypiper /
Created November 10, 2022 22:38
Mastodon code scribbles
from mastodon import Mastodon
mast = Mastodon(client_id='key',client_secret='secret',access_token='token',api_base_url='')
me =
print(f"Followers: {me.followers_count}")
andypiper /
Created November 2, 2022 13:13
Schedule a task in a Flask app
# useful
# docs
from flask import Flask
from flask_apscheduler import APScheduler
app = Flask(__name__)
scheduler = APScheduler()
def scheduleTask():
andypiper /
Created August 17, 2022 10:36
Tweepy cheatsheet / Twitter API v2
andypiper /
Created August 9, 2022 20:32
MicroPython UNIX port on iPad

You'll need to install iSH


echo > /etc/apk/repositories
echo >> /etc/apk/repositories
apk upgrade
apk add micropython --repository=
andypiper / andypiper-ld+json.json
Last active January 31, 2023 16:33
My JSON-LD Person object
View andypiper-ld+json.json
"@context": "",
"@type": "Person",
"name": "Andy Piper",
"affiliation": [
"@type": "Organization",
"name": "Games at Work dot Biz",
"sameAs": [
andypiper /
Last active April 20, 2022 18:38
Key Light Mini
  • [ip]:[port]/elgato/accessory-info
  • [ip]:[port]/elgato/battery-info
  • [ip]:[port]/elgato/lights
  • [ip]:[port]/elgato/lights/settings

GET /elgato/accessory-info