Skip to content

Instantly share code, notes, and snippets.

View cmj's full-sized avatar
💭
📠

cmj cmj

💭
📠
View GitHub Profile
@cmj
cmj / 3661.json
Created May 4, 2025 01:53
1910537532166836224gork gork grok bot
{
"data": {
"search_by_raw_query": {
"search_timeline": {
"timeline": {
"instructions": [
{
"type": "TimelineAddEntries",
"entries": [
{
@cmj
cmj / stream_times.md
Created April 27, 2025 13:51
Halo - Twitter broadcast history

Playing Halo

Broadcast ID: 1BdGYqVorlzGX
1744948211 1744975211
7 hours 30 minutes 0 seconds | Fri Apr 18 2025 03:50:11 -- Fri Apr 18 2025 11:20:11

Playing Halo

Broadcast ID: 1DXxyqMZAZNxM
1743833324 1743840635
2 hours 1 minutes 51 seconds | Sat Apr 05 2025 06:08:44 -- Sat Apr 05 2025 08:10:35

Playing Halo Infinite

Broadcast ID: 1jMJgkAVonjJL\

@cmj
cmj / USDOL-1911785871369515508.csv
Created April 16, 2025 15:18
replies to deleted tweet from Department of Labor about mining jobs
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 6.
Id,Date,Text,Replies,ReTweets,Likes,Views,Source,Birdwatch,Url
1911786603649126909,Mon Apr 14 14:20:20 UTC 2025,@USDOL @POTUS Is this fucking PARODY?,2,3,15,450,Twitter for Android,,https://x.com/LexTweetr/status/1911786603649126909
1911787723897311589,Mon Apr 14 14:24:47 UTC 2025,@USDOL @POTUS MAGAs want to go back to the Fred flinstone days. NO. https://t.co/kLEkInWD6t,0,0,12,115,Twitter for iPhone,,https://x.com/TPBlue4/status/1911787723897311589
1911788520831926770,Mon Apr 14 14:27:57 UTC 2025,@USDOL @POTUS Lol...bringing back coal 😂😂😂😂...mickey mouse administration,0,1,6,166,Twitter for Android,,https://x.com/madeinphilly79/status/1911788520831926770
1911788967953125687,Mon Apr 14 14:29:43 UTC 2025,@USDOL @POTUS Read the room already. 😂,0,0,8,88,Twitter for iPhone,,https://x.com/TPBlue4/status/1911788967953125687
1911790816080875730,Mon Apr 14 14:37:04 UTC 2025,"@USDOL @POTUS Look at them there @POTUS described ""Clean Coal"" faces! Just imagine what their lungs must look like! @ENERGY @HHSGov @AmerMedic
@cmj
cmj / geo-user.sh
Created April 13, 2025 15:17
Select tweets from user search json files with geolocation enabled
#!/bin/bash
# Quick (ugly) way to find and print tweets with place, geolocation turned on from user timeline search json archives
# ex:
# 1050678488821166082 | Fri Oct 12 09:24:07 +0000 2018 | https://x.com/foxandfriends/status/1050678488821166082 | place:c1ef8962bc0b514d (New Bern, NC) | About 1M without power after Hurricane Michael shreds electric grids; towns flattened https://t.co/k68iyqLqSo
user="${1//-latest/}"
cat ${user}*/*.json | jq '.data.search_by_raw_query.search_timeline.timeline.instructions[0].entries[].content.itemContent.tweet_results.result | if(.legacy.place) then "\(.legacy.id_str),\(.legacy.created_at),place:\(.legacy.place.id),\"\(.legacy.place.full_name | select(.!=null))\",https://x.com/\(.core.user_results.result.legacy.screen_name)/status/\(.legacy.id_str),\"\(.legacy.full_text | gsub("&";"&") | gsub("\"";"\"\""))" else empty end ' 2> /dev/null |
sed 's/\\n\\n/ /g;s/ / /g;s/\\n/ /g;s/ / /g;s/ / /g;s/\\//g;s/^"//'
csvtool trim . -
@cmj
cmj / cb_doge-geo.csv
Last active April 13, 2025 15:19
cb_doge tweets with geolocation enabled
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 6.
Id,Date,Place,Geo,Url,Text
1683370361432178688,Mon Jul 24 06:55:44 +0000 2023,place:175ac8b36fb626a2,"Mohali, India",https://x.com/cb_doge/status/1683370361432178688,@imPenny2x I tried a galaxy this time 😄 The X Galaxy
1683334936802017281,Mon Jul 24 04:34:58 +0000 2023,place:175ac8b36fb626a2,"Mohali, India",https://x.com/cb_doge/status/1683334936802017281,"The bird was not only Twitter's logo but it's mascot too. Now, X needs a new mascot. 🐶 https://t.co/fkUY1InwHf"
1683323576097841152,Mon Jul 24 03:49:49 +0000 2023,place:175ac8b36fb626a2,"Mohali, India",https://x.com/cb_doge/status/1683323576097841152,let that 𝕏 in.... https://t.co/7NDWjSgjb7
1683311347100966912,Mon Jul 24 03:01:14 +0000 2023,place:175ac8b36fb626a2,"Mohali, India",https://x.com/cb_doge/status/1683311347100966912,"@DogeDillionaire Yeah, nice find there @TitterDaily 👏"
1683292936832958464,Mon Jul 24 01:48:04 +0000 2023,place:175ac8b36fb626a2,"Mohali, India",https://x.com/cb_doge/status/1683292936832958464,"Like Father, Like Son! 🫶 https://t.co
@cmj
cmj / cb_doge-place-175ac8b36fb626a2.csv
Created April 13, 2025 07:22
from:cb_doge place:175ac8b36fb626a2 (location turned on)
Id Date Text Replies ReTweets Likes Views Source Geo Birdwatch Url
1557241115954122752 Wed Aug 10 05:43:08 UTC 2022 OpenAI's "DALL-E 2" is incredible. @elonmusk AI has truly gone to the next level 💯 https://t.co/sXHzyVb9fh 12 26 119 Twitter for iPhone place:175ac8b36fb626a2 (Mohali, India) https://x.com/cb_doge/status/1557241115954122752
1606888663421681664 Sun Dec 25 05:44:46 UTC 2022 MyDoge Wallet is one of the best thing that has ever happened to the dogecoin ecosystem. 💯 Cheers to the team! @westcoastbill @MyDogeCTO @jordanj77 @tolulawson @Dogememegirl ✨🎉 #BUIDL #Dogecoin https://t.co/U7hMA6ZyvK 17 31 144 13,569 Twitter for iPhone place:175ac8b36fb626a2 (Mohali, India) https://x.com/cb_doge/status/1606888663421681664
1668631760740175872 Tue Jun 13 14:49:48 UTC 2023 Humanity has never been closer to Mars than it is today. 💫 https://t.co/L4aiK1aS8O [@elonmusk] @TeslaSynopsis 6 to 8 weeks 201 245 2,185 354,679 Twitter for iPhone place:175ac8b36fb626a2 (Mohali, India) https://x.com/cb_doge
@cmj
cmj / 1905487282624229603.json
Created March 29, 2025 03:10
elon deleted tweet in a quote
{
"data": {
"tweetResult": {
"result": {
"__typename": "Tweet",
"rest_id": "1905487282624229603",
"has_birdwatch_notes": false,
"core": {
"user_results": {
"result": {
{
"data": {
"threaded_conversation_with_injections_v2": {
"instructions": [
{
"type": "TimelineAddEntries",
"entries": [
{
"entryId": "tweet-1905275472889405631",
"sortIndex": "1905301307279802368",
{
"data": {
"threaded_conversation_with_injections_v2": {
"instructions": [
{
"type": "TimelineAddEntries",
"entries": [
{
"entryId": "tweet-1905275472889405631",
"sortIndex": "1905281378019180544",
@cmj
cmj / twimg2date.sh
Last active March 20, 2025 12:46
Get timestamp from a 'twimg' (Twitter image) url
#!/bin/bash
# Get timestamp from a 'twimg' (Twitter image) url and return search options to find originating tweet.
# Image is given a snowflake id before the actual tweet; add ~2 seconds to until_time search operator.
# ./twimg2date.sh https://pbs.twimg.com/media/GmeLAsLbYAAPGpk.jpg
#
# https://danbooru.donmai.us/forum_topics/29446#forum_post_320975
input=$(sed -E 's|.*/||;s/.*%2F//' <<< "${1}" | head -c15)
twimg=$(base64 -d <<< "${input}" 2>/dev/null | od -An -tx1 | sed -E 's/ //g;s/.{6}$//')
id=$(bc <<< "ibase=16; ${twimg^^}")