Skip to content

Instantly share code, notes, and snippets.

View cmj's full-sized avatar
💭
📠

cmj cmj

💭
📠
View GitHub Profile
@cmj
cmj / koins.sh
Last active May 3, 2024 15:32
create webcam mosaic of KOIN webcams, upload to imgur
#!/bin/bash
# create 5x3 mosaic of current KOIN webcams, upload to imgur
# https://i.imgur.com/R59fSnY.jpeg
# uses ram-on/imgurbash2 and gnu parallel
tmpdir=$(mktemp -d /tmp/mosiac-XXX)
base="https://media.psg.nexstardigital.net/koin/weather/cameras"
# cam ids
feeds="Canby
@cmj
cmj / mosaic.sh
Created April 26, 2024 13:44
create short video mosaic of KOIN webcams, upload to imgur
#!/bin/bash
# create short video mosaic of KOIN webcams, upload to imgur
# https://imgur.com/2ayNSkw
tmpdir=$(mktemp -d /tmp/mosiac-XXX)
# video ids
lani="adstAGlNmYLve6p5"
Riverview_Vancouver="adst1WGnmXoPeRQo"
Vancouver_Waterfront="adstaOErgNn8gjxA"
@cmj
cmj / elon-following.diff
Last active May 3, 2024 21:22
Elon Musk Twitter friends tracker.
+ 2024-03-21 21:00-22:00 PDT @JudiciaryGOP (House Judiciary GOP)
+ 2024-03-22 09:00-10:00 PDT @OutlawsPoetic (Poetic Outlaws)
+ 2024-03-22 20:00-21:00 PDT @ModdedQuad (Noland Arbaugh)
- 2024-03-23 06:00-07:00 PDT @Grimezsz (𝖦𝗋𝗂𝗆𝖾𝗌 ⏳)
+ 2024-03-23 11:00-12:00 PDT @jdotarnold (Jeremy Arnold)
+ 2024-03-24 17:00-18:00 PDT @DominicFrisby (Dominic Frisby)
+ 2024-03-25 01:00-02:00 PDT @HealYourDepress (This Account Will Heal Your Depression.)
+ 2024-03-25 12:00-13:00 PDT @Blake_Hall (Blake Hall)
+ 2024-03-26 15:00-16:00 PDT @IraEhrenpreis (Ira Ehrenpreis)
+ 2024-03-27 13:00-14:00 PDT @DarrenAronofsky (darren aronofsky)
@cmj
cmj / tweets.sh
Last active April 10, 2024 23:22
pull latest tweets
#!/bin/bash
# Latest ~19 Tweets from user
# requires account, 2 parameters from header
x_csrf_token=""
auth_token=""
####
if [[ -z "$x_csrf_token" || -z "$auth_token" ]]; then
echo "requires x_csrf_token and auth_token"
@cmj
cmj / matt_binder.md
Created April 7, 2024 01:00
Matt Binder - Tweets removed randomly from timeline
Sat 6 Apr 10:30 PDT 2024 1361794e8c0d2913582bd7b56ff254a4 status about x.com 1776637912815132996 removed
Sat 6 Apr 10:35 PDT 2024 bae5256b7cfa2926a940124674a8c437
Sat 6 Apr 10:40 PDT 2024 bae5256b7cfa2926a940124674a8c437
Sat 6 Apr 10:45 PDT 2024 bae5256b7cfa2926a940124674a8c437
Sat 6 Apr 10:50 PDT 2024 1361794e8c0d2913582bd7b56ff254a4 status about x.com 1776637912815132996 removed
Sat 6 Apr 10:55 PDT 2024 bae5256b7cfa2926a940124674a8c437
Sat 6 Apr 11:00 PDT 2024 bae5256b7cfa2926a940124674a8c437
Sat 6 Apr 11:05 PDT 2024 bae5256b7cfa2926a940124674a8c437
Sat 6 Apr 11:10 PDT 2024 1361794e8c0d2913582bd7b56ff254a4 status about x.com 1776637912815132996 removed
--- a/src/consts.nim 2024-02-26 11:37:25.908000458 -0800
+++ b/src/consts.nim 2024-04-06 06:39:06.599974931 -0700
@@ -11,7 +11,6 @@
photoRail* = api / "1.1/statuses/media_timeline.json"
timelineApi = api / "2/timeline"
- favorites* = timelineApi / "favorites"
graphql = api / "graphql"
graphUser* = graphql / "u7wQyGi6oExe8_TRWGMq4Q/UserResultByScreenNameQuery"
@cmj
cmj / following.sh
Last active April 30, 2024 07:53
List all accounts a Twitter user is following
#!/bin/bash
# list all accounts a twitter user is following
# - creates a subdir of user_id with json ouput
user=elonmusk
# your minimal account credentials
# see https://i.imgur.com/5dxEI9R.png
x_csrf_token=""
auth_token=""
@cmj
cmj / likes.sh
Created March 18, 2024 03:22
grab last 100 (hidden) likes from a twitter user
#!/bin/bash
# grab the last ~100 (hidden) likes from a twitter user
# requires account, 2 parameters from header
x_csrf_token='XXXXXXXXXX'
auth_token='XXXXXXXXXX'
####
usage() { echo "$0 username"; exit 1; }
@cmj
cmj / elon_activity.md
Last active April 8, 2024 16:08
elon musk twitter activity graph

stacked

@cmj
cmj / trending
Last active April 27, 2024 14:10
Twitter trending