This file contains hidden or 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
| -- Hammerspoon config file | |
| -- https://www.hammerspoon.org/go/ | |
| -- https://www.hammerspoon.org/docs/ | |
| -- | |
| -- For debugging, use dump(), defined at the bottom of this file. | |
| -- | |
| -- TODO: | |
| -- Cmd-J/L wrap around with more than two columns | |
| -- https://github.com/Hammerspoon/hammerspoon/issues/3574#issuecomment-4313695744 |
This file contains hidden or 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
| <?php | |
| /* | |
| * Customizations for snarfed.org on top of the Ryu WordPress theme. | |
| * Not (yet) a full child theme. | |
| * Public domain. | |
| * | |
| * To log: dlog("xyz") | |
| * Defined below. Wraps error_log(). Writes to wp-content/debug.log | |
| * | |
| * Requires WP_DEBUG and WP_DEBUG_LOG to be true in wp-config.php. Details: |
This file contains hidden or 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
| curl -H 'Cookie: sessionid=...' -H 'X-IG-App-ID: 936619743392459' 'https://i.instagram.com/api/v1/users/web_profile_info/?username=...' -o ig.json | |
| curl -v -F 'file=@ig.json;type=application/json' 'https://granary.io/scraped?site=instagram&output=mf2-json' |
This file contains hidden or 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
| Verifying that +snarfed is my blockchain ID. https://onename.com/snarfed |
This file contains hidden or 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
| 100000425059588:925464134144413:10101869104476441_925497984141028 | |
| 100000425059588:925493347474825:10101869104476441_925495704141256 | |
| 100000425059588:925493347474825:10101869104476441_925495887474571 | |
| 100001501388539:844774702249235:10101869104476441_844774922249213 | |
| 100001501388539:844774702249235:10101869104476441_844775355582503 | |
| 100001501388539:844774702249235:10101869104476441_844778915582147 | |
| 100001501388539:844774702249235:10101869104476441_844780165582022 | |
| 100001501388539:844774702249235:10101869104476441_844780415581997 | |
| 100001501388539:844774702249235:10101869104476441_844780702248635 | |
| 100001501388539:844774702249235:10101869104476441_845000628893309 |
This file contains hidden or 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
| /** When I POSSE a post with Bridgy Publish, add a rel-syndication URL. | |
| */ | |
| function bridgy_publish_syndication_link($response, $source, $target) { | |
| $json = json_decode(wp_remote_retrieve_body($response)); | |
| dlog($target); | |
| dlog($json); | |
| dlog($response); | |
| if (!is_wp_error($response) && $json && | |
| (strpos($target, 'localhost:8080/publish/facebook') || | |
| strpos($target, 'localhost:8080/publish/twitter'))) { |