Skip to content

Instantly share code, notes, and snippets.

View cmj's full-sized avatar
💭
📠

cmj cmj

💭
📠
View GitHub Profile
#!/bin/bash
echo "move mouse over window"
sleep 4
cx=3500 # center X
cy=1600 # center Y
r=300 # radius
step=7 # degrees per step
circles=4 #
@cmj
cmj / sec_noem-2026-03-10-053659.csv
Created March 10, 2026 12:39
New twitter scrape test results @sec_noem
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 4.
Id,Date,Text,Replies,ReTweets,Likes,Views,Source,Birdwatch,Url
1884037912410652990,Tue Jan 28 00:36:56 UTC 2025,"My mission as Secretary of Homeland Security is to keep America safe. Under my leadership, @DHSgov will protect the American people with integrity and honesty. President Trump is putting Americans' safety FIRST. https://t.co/ANtW0gG6EU","1,838","10,515","81,740","1,673,974",Twitter Web App,,https://x.com/Sec_Noem/status/1884037912410652990
1884175378618671232,Tue Jan 28 09:43:11 UTC 2025,We are doing this right - doing exactly what President @realDonaldTrump promised the American people - making our streets safe. Live this AM from NYC. I’m on it. https://t.co/YrDqWupsPJ,829,"3,179","26,995","541,361",Twitter for iPhone,,https://x.com/Sec_Noem/status/1884175378618671232
1884198149574770980,Tue Jan 28 11:13:40 UTC 2025,"Just now. Enforcement operation in NYC. Criminal alien with kidnapping, assault & burglary charges is now in custody - thanks to @ICE. Dirtbags like this will continue to be removed f
@cmj
cmj / twitter-card_names.md
Created February 25, 2026 09:22
Twitter card names

Twitter search for various cards:

Example:

card_name:1906814671912599552:poll_choice_images lang:en -filter:retweets card_name:745291183405076480:broadcast -filter:retweets

card description
poll2choice_text_only Poll - 2 options
poll3choice_text_only Poll - 3 options
#!/usr/bin/env python3
import os
import sys
import time
import json
import subprocess
import requests
from pathlib import Path
@cmj
cmj / downdetector.py
Created February 15, 2026 18:04
Downdetector - new site update (2026-02)
#!/usr/bin/env python3
import sys
import cloudscraper
from bs4 import BeautifulSoup
URL = "https://downdetector.com"
MAX_SITES = 15
@cmj
cmj / article.md
Created February 15, 2026 01:19
Twitter article test format

@cmj
cmj / garbage.md
Created February 14, 2026 13:38
vibe check
$ grep -P "[^\x00-\x7F]" 624.patch
+            Log.d(LOG_TAG, "Service created in PAUSED state → stopping self")
+        setUserPaused(applicationContext, true)   // ⭐ TRUE FIX
+            // 1️⃣ Mark paused FIRST (single source of truth)
+                // 2️⃣ Stop all discovery providers
+                // 3️⃣ Disconnect every connected device (THIS fixes PC still connected)
+                // 4️⃣ Remove foreground notification
+                // 5️⃣ Stop the service lifecycle
+ // 6️⃣ Extra safety: ask Android to stop it too
@cmj
cmj / in_reply_to_status_id_str.md
Last active February 9, 2026 12:42
Include in_reply_to_status_id_str to display full url (good for finding deleted tweet ids)

@cmj
cmj / get-previous-username.sh
Created January 31, 2026 13:49
Find the last username change
#!/bin/bash
# requires auth_token.
#auth_token=""
source ~/.env-twitter
screen_name=$1
usage() { echo -e "Show Twitter account location (requires auth_token)\n $0 <screen_name>"; exit 1; }
[[ ! "$auth_token" || ! "$screen_name" ]] && usage
@cmj
cmj / get_session.py
Last active January 29, 2026 11:34
Nitter get_session script
#!/usr/bin/env python3
import requests
import json
import sys
import pyotp
import cloudscraper
# NOTE: pyotp, requests and cloudscraper are dependencies
# > pip install pyotp requests cloudscraper