Skip to content

Instantly share code, notes, and snippets.

View FlyMyPG's full-sized avatar

BobC FlyMyPG

  • San Diego, CA, USA
View GitHub Profile
Copyright: Attribution-ShareAlike 4.0 (CC BY-SA 4.0)
https://creativecommons.org/licenses/by-sa/4.0/
Redshirt27 Book 2 - Reconstruction
By: BobC - https://mastodon.hasameli.com/@BobC
2017-06-11T16:49:01+00:00
Copyright: Attribution-ShareAlike 4.0 (CC BY-SA 4.0)
https://creativecommons.org/licenses/by-sa/4.0/
Redshirt27 Book 1 - Alone
By: BobC - https://mastodon.hasameli.com/@BobC
2017-04-15T01:55:50+00:00
#!/bin/bash
###############################################################################
# File: MastoPingParallelSort.bash
#
# Author: BobC https://mastodon.hasameli.com/@BobC
# License: "CC BY-NC-SA 4.0" https://creativecommons.org/licenses/by-nc-sa/4.0/
#
# Requires: GNU Parallel
#
# Find the Mastodon instance closest to you based on average ping time.
@FlyMyPG
FlyMyPG / MastoUserScrape.py
Last active November 26, 2022 08:50
Read all toots ANYONE has written (excluding Boosts).
# -*- coding: utf-8 -*-
"""
MastoUserScrape.py -
Download toots (not Boosts) from 'https://mastodon.instance/@UserName'
and save in chronological order (oldest first).
Author: BobC - https://mastodon.hasameli.com/@BobC
License: "CC BY-NC-SA 4.0" https://creativecommons.org/licenses/by-nc-sa/4.0/
Usage: python MastoUserScrape.py User@Instance ...
@FlyMyPG
FlyMyPG / ReadMyToots.py
Last active May 19, 2017 21:07
Read all toots you've written (excluding Boosts).
# -*- coding: utf-8 -*-
"""
ReadMyToots.py - Download the toots you wrote, in chronological order.
Author: BobC - https://mastodon.hasameli.com/@BobC
License: "CC BY-NC-SA 4.0" https://creativecommons.org/licenses/by-nc-sa/4.0/
Usage: python ReadMyToots.py [UserName InstanceName LoginEmail Password]+
Parameters: UserName - Your handle on this instance (no '@')