Skip to content

Instantly share code, notes, and snippets.

View tomcook's full-sized avatar
🌀

Tom Cook tomcook

🌀
View GitHub Profile
@tomcook
tomcook / photo_captions.json
Created January 26, 2025 09:42
Nostalgiabot - Biden
{
"54242714089": {
"gpt-4o-mini": {
"caption": "The image depicts a formal meeting held in a conference room, characterized by a long wooden table around which several individuals are seated. In the center, President Joe Biden, dressed in a light blue suit, is engaged in discussion, flanked by various advisors and military officials. Behind them are the U.S. flag and the presidential seal prominently displayed on the wall. Several documents and water bottles are visible on the table. Notable participants include Secretary of Defense Lloyd Austin and another individual taking notes. The atmosphere appears serious and focused, reflecting a high-level meeting regarding national security or government matters.",
"generated_date": "tbd"
}
@tomcook
tomcook / len_test.py
Created November 22, 2024 00:21
atproto / python rich text length checker
import random
import string
import regex
from atproto import Client, client_utils
client = Client()
client.login('username', 'pass')
characters = string.ascii_letters
random_string = ''.join(random.choices(characters, k=295))
@tomcook
tomcook / state-bluesky.json
Last active April 28, 2025 06:56
Biden Nostalgia Bluesky Bot: State DB
{
"50937221891": {
"posted_on": "2024-11-21T06:18:17.635032"
},
"51131137370": {
"posted_on": "2024-11-21T06:52:09.540088"
},
"51130061674": {
"posted_on": "2024-11-22T18:51:28.521379"
},
@tomcook
tomcook / state-bluesky.json
Last active April 29, 2025 18:26
Obama Nostalgia Bluesky Bot: State DB
{
"P112310PS-0010": {
"posted_on": "2024-11-21T06:21:39.057124"
},
"P072313CK-0338": {
"posted_on": "2024-11-21T18:20:41.029144"
},
"P050109PS-0607": {
"posted_on": "2024-11-21T18:22:48.309400"
},
@tomcook
tomcook / state-mastodon.json
Created January 30, 2023 23:28
Obama Nostalgia Mastodon Bot: State DB
{}
@tomcook
tomcook / state-mastodon.json
Created January 30, 2023 23:28
Biden Nostalgia Mastodon Bot: State DB
{}
@tomcook
tomcook / state-twitter.json
Last active January 24, 2023 13:13
Biden Nostalgia Twitter Bot: State DB
{
"49436861593": {
"tweet_id": 1353815263028912128,
"posted_on": "2021-01-25T21:21:27.014052"
},
"49019402151": {
"tweet_id": 1353815486375464960,
"posted_on": "2021-01-25T21:22:20.198658"
},
"50377046131": {
@tomcook
tomcook / state-twitter.json
Last active January 24, 2023 13:13
Obama Nostalgia Twitter Bot: State DB
{
"P022110PS-0480": {
"tweet_id": 1318983377798746112,
"posted_on": "2020-10-23T07:09:23.978134"
},
"P021412PS-0390": {
"tweet_id": 1319655772364701697,
"posted_on": "2020-10-23T15:03:49.442109"
},
"P122210CK-0345": {

Keybase proof

I hereby claim:

  • I am tomcook on github.
  • I am tcook (https://keybase.io/tcook) on keybase.
  • I have a public key ASDmmURfnTE6A0mT2YXJoVte4cV679MVAKbPqV-0Gk8-awo

To claim this, I am signing this object:

@tomcook
tomcook / services.txt
Last active January 19, 2016 06:49
Services that don't work with new TLDs
Specifically, with .horse domain email addresses. Entering anything @ a .horse address generates errors like "invalid email":
Alaska Air (01/2016)
HBO NOW (01/2016)
Kaiser Permanente (some areas work, others don't) (01/2016)
HostelWorld (01/2016)
Lyft (01/2016 - https://twitter.com/AskLyft/status/686198188655521792)
Ryanair (01/2016)
GoPro (01/2016)