Skip to content

Instantly share code, notes, and snippets.

View timetable_import.rb
require "json"
require "cgi"
# JSON Feed file, folder of MP3s, and Micro.blog auth token
json_path = "/Users/manton/Dropbox/Documents/Timetable/Backup/timetable_posts.json"
episodes_path = "/Users/manton/Dropbox/Documents/Timetable/Episodes"
token = "..."
info = JSON.parse(IO.read(json_path))
episodes = info["items"]
View mastodon_debugging.md

Username / actor creating the post:

@manton@manton.org
https://manton.org/activitypub/manton

Follower receiving the post:

View jsonfeed_convert_rss.rb
# run with: ruby jsonfeed_convert_rss.rb "http://therecord.co/xml/rss.xml"
# also make sure to "gem install simple-rss" first
require 'rubygems'
require 'simple-rss'
require 'open-uri'
require 'json'
rss_url = ARGV[0]
View keybase.md

Keybase proof

I hereby claim:

  • I am manton on github.
  • I am manton (https://keybase.io/manton) on keybase.
  • I have a public key ASDE7nz_tYBc04bz--VH2lDhzl46tER3DGjtpZcSt3q-HQo

To claim this, I am signing this object:

You can’t perform that action at this time.