Skip to content

Instantly share code, notes, and snippets.

View cmj's full-sized avatar
💭
📠

cmj cmj

💭
📠
View GitHub Profile
#!/bin/bash
# see https://github.com/lwthiker/curl-impersonate?tab=readme-ov-file#supported-browsers
curl_bin="curl_ff117" # curl, curl_ff117 (works), curl-impersonate-ff (doesn't work), etc
debug=1 # [0|1]
# create tempfile for cookie jar
#cookie="${temp/%//cookies.txt}"
cookie="cookies.txt"
@cmj
cmj / keys.md
Created October 25, 2025 02:02

Twitter for Android

curl -su "3nVuSoBZnx6U4vzUxf5w:Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys" -d "grant_type=client_credentials" "https://api.twitter.com/oauth2/token"
{
  "token_type": "bearer",
  "access_token": "AAAAAAAAAAAAAAAAAAAAAFXzAwAAAAAAMHCxpeSDG1gLNLghVe8d74hl6k4%3DRUMF4xAQLsbeBhTSRrCiQpJtxoGWeyHrDb5te2jpGskWDFW82F"
}
@cmj
cmj / age-restricted_deleted.csv
Last active October 22, 2025 17:39
Elon Musk - deleted (RTs) and age-restricted tweets
Date Id Status Text
25/10/21 08:45:26 1980660644891562281 Age-restricted RT @patriottakes: @elonmusk According to this, his nickname is “ass rocket.” https://pbs.twimg.com/amplify_video_thumb/1886480437247107072/img/eZehc_sJvknnWxGn.jpg (video) (Tue 08:41:11) https://x.com/_/status/1980660644891562281
25/10/20 02:25:13 1980202945145934137 Age-restricted RT @AmX_ZaxTr: @amXFreeze Starlink 😆 https://pbs.twimg.com/tweet_video_thumb/G3sXZqRWkAEw2fW.jpg (animated_gif) (Mon 02:22:27) https://x.com/_/status/1980202945145934137
25/10/20 02:00:30 1980197071933378658 Age-restricted RT @tetsuoai: Grok4’s Ani explains the restrict keyword in C. We pitted a standard vector addition against one using the restrict keyword… (Mon 01:59:06) https://x.com/_/status/1980197071933378658
25/10/18 20:15:19 1979747807746805760 DELETED RT @minchoi: Damn new Grok Imagine update is wild https://pbs.twimg.com/amplify_video_thumb/1979698301344616448/img/YcGx2VqDxAm_NqUh.jpg (video) (Sat 20:13:53) https://x.com/_/status/1979747807746805
@cmj
cmj / auth.py
Created October 20, 2025 22:07
twikit auth example
import asyncio
from twikit import Client
USERNAME = ''
PASSWORD = ''
# Initialize client
#client = Client(language='en-US', proxy='http://127.0.0.1:8888')
client = Client(
language='en-US'
)
@cmj
cmj / down.py
Last active October 20, 2025 13:38
Simple downdetector top outages with cloudscraper (anti-clownflare)
#!/usr/bin/python3
import requests
import cloudscraper
from bs4 import BeautifulSoup
scraper = cloudscraper.create_scraper()
soup = BeautifulSoup(scraper.get("https://downdetector.com/").content, "html.parser")
comp = soup.find(class_='companies')
sites = comp.find_all('div', {'class' : 'company-index'})
@cmj
cmj / elon_hidden-follows.md
Created October 14, 2025 08:08
Elon Musk hidden Following entry.
@cmj
cmj / center-window
Created September 11, 2025 14:40
Center active window in X11
#!/bin/bash
# Center active window in X11
win_id=$(xdotool getactivewindow)
screen=($(xdotool getdisplaygeometry | awk '{print $1/2,$2/2}'))
win_geo=$(xdotool getwindowgeometry --shell $win_id)
win_x=$(awk -F= '/WIDTH/{printf "%.f\n", $2/2}' <<< "${win_geo}")
win_y=$(awk -F= '/HEIGHT/{printf "%.f\n", $2/2}' <<< "${win_geo}")
xdotool windowmove ${win_id} $((${screen[0]}-${win_x})) $((${screen[1]}-${win_y}))
@cmj
cmj / elf.theme
Created September 5, 2025 22:26
Modified elf.theme for irssi
# When testing changes, the easiest way to reload the theme is with /RELOAD.
# This reloads the configuration file too, so if you did any changes remember
# to /SAVE it first. Remember also that /SAVE overwrites the theme file with
# old data so keep backups :)
# TEMPLATES:
# The real text formats that irssi uses are the ones you can find with
# /FORMAT command. Back in the old days all the colors and texts were mixed
# up in those formats, and it was really hard to change the colors since you
@cmj
cmj / comments_1756982802.csv
Created September 4, 2025 10:58
Reddit comments - Favorite defunct Portland bands
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
ID Subreddit Date Author Comment Score Length Gilded Parent Flair Post ID Post Permalink Post Title Post Author Post URL Permalink
nc3t4p2 Portland 2025-09-02 23:55:03 Hopczar420 Hazel!!!! 86 9 0 t3_1n6z5l7 Montavilla 1n6z5l7 https://reddit.com/r/Portland/comments/1n6z5l7/favorite_defunct_portland_bands/ Favorite defunct Portland bands padehler https://www.reddit.com/r/Portland/comments/1n6z5l7/favorite_defunct_portland_bands/ https://reddit.com/r/Portland/comments/1n6z5l7/favorite_defunct_portland_bands/nc3t4p2/
nc3q10i Portland 2025-09-02 23:36:41 humanclock "New Bad Things!
https://youtu.be/FsbfWJX7D50
I Can Lick Any Sonofabitch in the House
(RIP Michael Dean Damron)
@cmj
cmj / ekrem_imamoglu.json
Last active September 2, 2025 14:11
ekrem_imamoglu Twitter account
[
{
"id": 422861505,
"id_str": "422861505",
"name": "Ekrem İmamoğlu",
"screen_name": "ekrem_imamoglu",
"location": "İstanbul Büyükşehir Belediyesi",
"description": "İstanbul Büyükşehir Belediye Başkanı / Mayor of İstanbul | Türkiye Belediyeler Birliği Başkanı | For tweets in English, follow: @imamoglu_int",
"url": "https://t.co/5oah01d2UP",
"entities": {