$ curl -s --header "Authorization: Bearer $TOKEN" https://$INSTANCE/api/v1/followed_tags | jq '.[] | .name'
"mechanicalkeyboards"
"europython2023"
"cricut"
"metaverse"
"playdate"
"Watchy"
"kingstonuponthames"
"hextraction"
View bookmarks-ap.csv
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 6.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"title","url","description","tags","created_at","updated_at" | |
"My Glitch in Bio links page","https://andypiper.me","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","https://andypiper.omg.lol","A quick landing page, including a /now page and basic info. Built on omg.lol","#andypiper #bio #personal #omglol #now","2023-09-07 22:28:46","2023-09-07 22:28:46" | |
"Mastodon API documentation","https://docs.joinmastodon.org/client/intro/",,"#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","https://docs.joinmastodon.org/client/libraries/",,"#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","https://gist.github.com/andypiper/7fdb73f9713b7e1f7e5e7ac373f635cb","Andy Piper's l |
View post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 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. chaos.social | |
# - MASTODON_POST_TOKEN: an app access key with write:statuses permission | |
# | |
# See: https://gist.github.com/edsu/aa6f70bb20127b1e18e05dff5e470022 |
View tooter.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import network | |
import urequests | |
import ujson | |
# do_connect() | |
mast_url="https://mastodon.social" | |
token=MY_MASTODON_TOKEN | |
# note: this *must* include content-type |
View followers.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mastodon import Mastodon | |
mast = Mastodon(client_id='key',client_secret='secret',access_token='token',api_base_url='https://mastodon.social') | |
me = mast.me() | |
print(f"Followers: {me.followers_count}") |
View flask-ap-scheduler.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# useful https://stackoverflow.com/questions/21214270/how-to-schedule-a-function-to-run-every-hour-on-flask | |
# docs https://pypi.org/project/Flask-APScheduler/ | |
from flask import Flask | |
from flask_apscheduler import APScheduler | |
app = Flask(__name__) | |
scheduler = APScheduler() | |
def scheduleTask(): |
View tweepy-notes.md
BEARER = "my-long-token"
Check/delete stream rules
import tweepy
client = tweepy.StreamingClient(BEARER)
client.get_rules()
View Setup.md
You'll need to install iSH
Then...
echo https://dl-cdn.alpinelinux.org/alpine/v3.16/main > /etc/apk/repositories
echo https://dl-cdn.alpinelinux.org/alpine/v3.16/community >> /etc/apk/repositories
apk upgrade
apk add micropython --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing
View andypiper-ld+json.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": "http://schema.org/", | |
"@type": "Person", | |
"name": "Andy Piper", | |
"affiliation": [ | |
{ | |
"@type": "Organization", | |
"name": "Games at Work dot Biz", | |
"sameAs": [ | |
"https://twitter.com/gamesatwork_biz", |
View key-light-mini-api.md
[ip]:[port]/elgato/accessory-info
[ip]:[port]/elgato/battery-info
[ip]:[port]/elgato/lights
[ip]:[port]/elgato/lights/settings
GET /elgato/accessory-info
NewerOlder