Skip to content

Instantly share code, notes, and snippets.

View joesondow's full-sized avatar

Joe Sondow joesondow

View GitHub Profile
@joesondow
joesondow / main.sh
Created April 29, 2023 22:59 — forked from pojntfx/main.sh
Bluesky/AT Protocol: cURL API Interaction Cheatsheet
#!/bin/bash
# This script resolves a DID, retrieves an API key, fetches a user's feed,
# and posts a "Hello, world" message to the user's feed.
# Resolve DID for handle
HANDLE='felicitas.pojtinger.com'
DID_URL="https://bsky.social/xrpc/com.atproto.identity.resolveHandle"
export DID=$(curl -G \
--data-urlencode "handle=$HANDLE" \
@joesondow
joesondow / greasemonkey-cryptexhunt-hide-team-answers.js
Last active March 2, 2021 10:12
Greasemonkey script CryptexHunt.com hide team answers
// ==UserScript==
// @name CryptexHunt.com hide team answers
// @version 1
// @grant none
// @match https://hunt.cryptexhunt.com/
// ==/UserScript==
(function() {
'use strict';
@joesondow
joesondow / greasemonkey-twitch-live-unpopular-first.js
Created February 26, 2021 01:18
GreaseMonkey script to sort the streamer thumbnail images by least to most popular on https://www.twitch.tv/directory/following/live
// ==UserScript==
// @name Twitch Following Live Unpopular First
// @version 1
// @grant none
// @match https://www.twitch.tv/directory/following/live
// ==/UserScript==
(function() {
'use strict';
@joesondow
joesondow / replies.py
Created January 2, 2021 12:16 — forked from edsu/replies.py
Try to get replies to a particular set of tweets, recursively.
#!/usr/bin/env python
"""
Twitter's API doesn't allow you to get replies to a particular tweet. Strange
but true. But you can use Twitter's Search API to search for tweets that are
directed at a particular user, and then search through the results to see if
any are replies to a given tweet. You probably are also interested in the
replies to any replies as well, so the process is recursive. The big caveat
here is that the search API only returns results for the last 7 days. So
@joesondow
joesondow / CRC_Example.java
Created December 31, 2020 09:45 — forked from andypiper/CRC_Example.java
Java snippet to generate Twitter Webhooks CRC response
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import org.apache.commons.codec.binary.Base64;
public class CRC_Example {
public static void main(String[] args) {
try {
String consumer_secret = "secret";
String crc_token = "Message";
@joesondow
joesondow / amiibo-emulation-with-linux-vm.md
Last active January 18, 2022 15:23 — forked from colemickens/amiibo-emulation-with-linux-vm.md
amiibo-emulation-with-linux-vm.md

Easy Amiibo Emulation - https://bit.ly/amiiboemu

(^ that's a short-link to this page, so you can open it in Linux)

Some users are discussing this guide in #hacking on the JoyConDroid Discord: https://discord.gg/SQNEx9v.

DO NOT ask for, or share links to, Amiibo bins in the comments! They will be removed. Thank you for understanding.

(Windows|Linux PC) + JoyControl + Bluetooth = AMIIBO EMULATION

@joesondow
joesondow / twitchpromo-messages.json
Last active March 19, 2020 03:34
twitchpromo-messages
This file has moved to https://gitlab.com/JoeSondow/iris/-/raw/master/twitchpromo-messages.json
@joesondow
joesondow / greasemonkey-twitch-popout-fix.js
Last active March 12, 2020 21:47
GreaseMonkey script to clean up, resize, and move twitch chat popout window where and how I want it
// ==UserScript==
// @name Twitch Chat Window Fix
// @version 1
// @description Put twitch chat where I want it, and use all the space for text better
// @author You
// @match https://www.twitch.tv/popout/joesondow/chat?popout=
// @grant none
// ==/UserScript==
@joesondow
joesondow / twitch-tweets.yaml
Created March 22, 2018 05:56
Testing URLs and editability and versioning of gists
Testing to see
how this all works
Edit works.
What about versioning?
/*
A copy of https://gist.github.com/airhadoken/8742d16a2a190a3505a2
See also: https://botwiki.org/bots/twitterbots/emoji__polls/
*/
var T = require("twit");
var Q = require("Q");
// key and secret for Twitter for iPhone.
// A whitelisted app is needed to access the cards API; you can't just create your own currently.