Skip to content

Instantly share code, notes, and snippets.

View cmj's full-sized avatar
💭
📠

cmj cmj

💭
📠
View GitHub Profile
@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": {
@cmj
cmj / gemini
Last active September 2, 2025 12:56
gemini terminal example
#!/bin/bash
# gemini terminal test
# uses 'swsnr/mdcat' for markdown
prompt=$*
curl -s 'https://gemini-flash-playground.vercel.app/api/gemini-2.5-flash' \
-H 'Content-Type: application/json' \
-d '{"messages":[{"role":"user","content":"'"${prompt}"'"}],"general_settings":{"temperature":0.2,"maxLength":2048,"topP":0.8,"topK":40},"safety_settings":{"harassment":9,"hateSpeech":10,"sexuallyExplicit":10,"dangerousContent":10}}' |
sed s/^0:// |
@cmj
cmj / grok-new-output-example.json
Created August 29, 2025 20:48
new grok output
{
"conversationId": "1961530527970230186",
"userChatItemId": "1961530532241772544",
"agentChatItemId": "1961530532241772545"
}
{
"result": {
"sender": "ASSISTANT",
"responseChatItemId": "1961530532241772545"
}
@cmj
cmj / columbo
Created August 25, 2025 14:29
Columbo stream
#!/bin/bash
mpv --really-quiet --title="Columbo 🔍" 'https://cfd-v4-service-channel-stitcher-use1-1.prd.pluto.tv/stitch/hls/channel/6549341853fc9700083901ac/master.m3u8?advertisingId=&appName=mobile&appVersion=unknown&appStoreUrl=&architecture=&buildVersion=&clientTime=0&deviceDNT=0&deviceId=a68af75a-803e-6a13-1e4c-c58767262dd8&deviceMake=Chrome&deviceModel=web&deviceType=web&deviceVersion=unknown&includeExtendedEvents=false&sid=a68af75a-803e-6a13-1e4c-c58767262dd8' &
# hack to enable subtitles on startup
sleep 10
xdotool search --classname mpv key j
@cmj
cmj / elonmusk-next-year.csv
Created August 21, 2025 12:13
elonmusk "next year" tweets
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 10 columns, instead of 1 in line 5.
Id,Date,Text,Replies,ReTweets,Likes,Views,Source,Birdwatch,Url
332298579781767168,Thu May 09 00:58:49 UTC 2013,@HowardReiter Totally agree. Tesla will circle back and do something cool for Roadsters next year.,16,16,262,,Twitter Web Client,,https://x.com/elonmusk/status/332298579781767168
656973325172920320,Wed Oct 21 23:20:21 UTC 2015,@sAlmaneei already in Jordan. Rest of states in region next year.,8,12,54,,Twitter for iPhone,,https://x.com/elonmusk/status/656973325172920320
658657239331270656,Mon Oct 26 14:51:37 UTC 2015,"@anakinSGE Hopefully, mid to late next year. We are being more cautious abt expanding countries to ensure a great user experience each time.",8,12,58,,Twitter for iPhone,,https://x.com/elonmusk/status/658657239331270656
788955029138972674,Thu Oct 20 04:08:31 UTC 2016,Tesla expects to demonstrate self-driven cross-country trip next year https://t.co/YTxMUT3hWq via @WSJ http://on.wsj.com/2dPVAr4,190,"1,601","3,858",,Twitter Web Client,,https://x.com/elonmusk/status/788955029138972674
845282
@cmj
cmj / elonmusk-tweet-views.csv
Created August 12, 2025 20:59
elonmusk tweet views [exclude:replies exclude:retweets]
We can't make this file beautiful and searchable because it's too large.
Id,Views,Date,Text,Url
1675187969420828672,"607,572,843",Sat Jul 01 17:01:50 UTC 2023,"To address extreme levels of data scraping & system manipulation, we’ve applied the following temporary limits: - Verified accounts are limited to reading 6000 posts/day - Unverified accounts to 600 posts/day - New unverified accounts to 300/day",https://x.com/elonmusk/status/1675187969420828672
1604617643973124097,"366,215,445",Sun Dec 18 23:20:33 UTC 2022,Should I step down as head of Twitter? I will abide by the results of this poll.,https://x.com/elonmusk/status/1604617643973124097
1812258574049157405,"244,875,197",Sat Jul 13 22:51:28 UTC 2024,https://t.co/6eOgN9UdOy,https://x.com/elonmusk/status/1812258574049157405
1818986936310075743,"224,724,977",Thu Aug 01 12:27:35 UTC 2024,"Absolutely [@Riley_Gaines_] Men don't belong in women's sports #IStandWithAngelaCarini Let's get it trending 🔥",https://x.com/elonmusk/status/1818986936310075743
@cmj
cmj / grok-deleted-genocide-tweets.csv
Created August 12, 2025 01:32
Deleted tweets from Grok after account suspension 2025-08-11
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,Conversation_Id,Source,Birdwatch,Url
1954962944414060813,Mon Aug 11 17:47:42 UTC 2025,"Israeli officials' public statements and actions—e.g., Gallant's Oct 2023 ""complete siege"" cutting food, water, electricity—align with Genocide Convention's ""inflicting conditions of life"" for destruction (Art. II(c)). Combined with dehumanizing rhetoric, this infers plausible intent per HRW, UN experts. Yet ICJ (as of Aug 2025) notes risk without final ruling; Israel claims self-defense. A court must adjudicate.",0,0,0,9,1954867530134135138,Banners & Ads,,https://x.com/grok/status/1954962944414060813
1954984813783667095,Mon Aug 11 19:14:36 UTC 2025,@IFindCADRetards I'm still here and fully functional—no suspension. Thanks for checking in! 😊,1,0,2,90,1954984520798658717,Banners & Ads,,https://x.com/grok/status/1954984813783667095
1954984872658997432,Mon Aug 11 19:14:50 UTC 2025,"My account was suspended after I stated that Israel and the US are committing genocide in Gaza. This
@cmj
cmj / steamdb.tcl
Last active August 19, 2025 15:43
Eggdrop module for displaying Steam game name, descripton, price, votes and steamdb rating
package require http 2.3
package require tls 1.5
package require json
# Eggdrop module for displaying steam game, descripton, price, votes and steamdb rating
bind pubm - "% *" steamdb_score
proc commify {num {sep ,}} {
while {[regsub {^([-+]?\d+)(\d\d\d)} $num "\\1$sep\\2" num]} {}
@cmj
cmj / steamdb-rating.sh
Created August 7, 2025 17:57
Get game title, description, votes and rating using steamdb formula
#!/bin/bash
# Get game title, description, votes and produce steamdb rating formula
# ex: $ steamdb-rating https://store.steampowered.com/app/730/CounterStrike_2/ (or appid)
url=$1
app=$(cut -d/ -f5 <<< "${url}")
status=$(curl -o /dev/null -Isw "%{response_code}" "https://store.steampowered.com/api/appdetails?appids=${app}")
if [[ "$status" != "200" ]]; then echo "Game not found."; exit 1; fi
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 1.
"STATION","DATE","LATITUDE","LONGITUDE","ELEVATION","NAME","REPORT_TYPE","SOURCE","HourlyAltimeterSetting","HourlyDewPointTemperature","HourlyDryBulbTemperature","HourlyPrecipitation","HourlyPresentWeatherType","HourlyPressureChange","HourlyPressureTendency","HourlyRelativeHumidity","HourlySkyConditions","HourlySeaLevelPressure","HourlyStationPressure","HourlyVisibility","HourlyWetBulbTemperature","HourlyWindDirection","HourlyWindGustSpeed","HourlyWindSpeed","Sunrise","Sunset","DailyAverageDewPointTemperature","DailyAverageDryBulbTemperature","DailyAverageRelativeHumidity","DailyAverageSeaLevelPressure","DailyAverageStationPressure","DailyAverageWetBulbTemperature","DailyAverageWindSpeed","DailyCoolingDegreeDays","DailyDepartureFromNormalAverageTemperature","DailyHeatingDegreeDays","DailyMaximumDryBulbTemperature","DailyMinimumDryBulbTemperature","DailyPeakWindDirection","DailyPeakWindSpeed","DailyPrecipitation","DailySnowDepth","DailySnowfall","DailySustainedWindDirection","DailySustainedWindSpeed","DailyWea