Skip to content

Instantly share code, notes, and snippets.

View cmj's full-sized avatar
💭
📠

cmj cmj

💭
📠
View GitHub Profile
@cmj
cmj / tweet_by_id.sh
Last active August 20, 2024 10:26
Print tweet by id
#!/bin/bash
# ./tweet_by_id 1803601168763068837 (or full URL)
# -r option for json dump
input=$1
pretty=(jq -r '.data.tweetResult.result | "[\(.legacy.created_at | strptime("%a %b %d %H:%M:%S +0000 %Y") | mktime - (now | gmtime | mktime - (now | trunc)) | strflocaltime("%a %d %b %T %Z %Y"))] @\(.core.user_results.result.legacy.screen_name) (\(.core.user_results.result.legacy.name))\(if(.core.user_results.result.legacy.verified_type == "Business") then "【𝗚】: " elif(.core.user_results.result.is_blue_verified == true) then "【𝗕】: " else ": " end)\(.legacy.full_text | gsub(" ";" ")) | ↳ \(.legacy.reply_count | tostring | [while(length>0; .[:-3]) | .[-3:]] | reverse | join(",")) ⇅ \(.legacy.retweet_count | tostring | [while(length>0; .[:-3]) | .[-3:]] | reverse | join(",")) ♥ \(.legacy.favorite_count | tostring | [while(length>0; .[:-3]) | .[-3:]] | reverse| join(",")) 🡕 \(if(.views.count) then "\(.views.count | tostring | [while(length>0; .[:-3]) | .[-3:]] | reverse | join(","))" else "" end) | \(.source | gsub
@cmj
cmj / tether-guest_accounts.sh
Last active December 12, 2023 10:06
Quickly grab Twitter guest accounts via tethered phone
#!/bin/bash
# Quickly grab 10 Twitter guest accounts via tethered phone
# needs: https://gist.github.com/cmj/6e6f6cae51c28cf6e161ceba8d108dda
gateway=192.168.0.1
# tether and turn wifi off
# check first with `curl -s ipinfo.io`
# sleep times are just a guess needed for network {dis}association
@typebrook
typebrook / README.md
Last active January 30, 2025 14:11
A bash script for gist management #bash #gist
@smo0z
smo0z / ProtonLaunch.sh
Last active November 30, 2024 07:20
Proton Launch Script
#!/bin/sh
# Application path
APP_PATH="$(dirname "${BASH_SOURCE[0]}")"
cd "$APP_PATH"
# Executable file
APP_EXEC="$APP_PATH/.exe"
# Steam / IDs
@Pulimet
Pulimet / AdbCommands
Last active May 7, 2025 11:47
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: