I hereby claim:
- I am intrd on github.
- I am intrd (https://keybase.io/intrd) on keybase.
- I have a public key whose fingerprint is C2BE 4116 DD3B D236 54AC 75E5 32E1 7580 3ABE 5810
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| ## Simple one-shot script to extract Claude Code "Plan usage limits" using tmux. | |
| # Author: intrd@dann.com.br | |
| # Tags: claude, quota | |
| SESSION="claude-usage-$$" | |
| # Start Claude Code in a detached tmux session | |
| tmux new-session -d -s "$SESSION" 'claude' |
| ## Python3 Convert all your Github issues into Obsidian markdown format. | |
| # Author: intrd@dann.com.br | |
| import os | |
| import requests | |
| import re | |
| # Replace with your repository and username | |
| GITHUB_API = "https://api.github.com" | |
| USERNAME = "intrd" |
| ## Python3 OAuth 2.0 PKCE with Tweepy: Upload and Tweet an Image using Twitter API v1 w/ X API v2. | |
| # This script uploads an image using the old Twitter API v1, retrieves the media URL, and then tweets it using the new X API v2. (Yes, currently, this is the easiest way to accomplish this). | |
| # Author: intrd@dann.com.br | |
| import tweepy, sys | |
| if len(sys.argv) < 3: | |
| print("Usage: python3 script.py <file_path> <long_text>") | |
| sys.exit(1) | |
| file_path = sys.argv[2] |
| ## X/Twitter - Simple Python3 OAuth 2.0 Authorization (PKCE), Refresh Token and Tweet Action without Tweepy or any 3rd-party libs. | |
| # Author: intrd@dann.com.br | |
| # Action: Create Refresh Token | |
| import os | |
| import secrets | |
| import string | |
| import requests | |
| from urllib.parse import urlencode |
| #!/bin/bash | |
| ## Openvpn safe kill switch / isolate vpn connection using linux routing table (no iptables needed) | |
| # Author: intrd@dann.com.br | |
| # flush the entire routing table (incl cache) | |
| sudo ip route flush table main | |
| sudo ip route flush cache | |
| # route the wan network but not a gateway |
| ## VIVO FIBRA MitraStar GPT - IP changer / reboot one-liner (authd xpl) | |
| # Successfully tested on MitraStar GPT-2541 and 2741. No SSH access required. | |
| # Author: intrd@dann.com.br | |
| # YoU WouLdn't ReBooT My RoUtEr.. they said? CHALLENGE ACCEPTED! | |
| # Install Node.js (sudo apt install nodejs), required to calculate sessionKey from CLI; | |
| # Edit LOGIN/PASSWORD, IP_ROUTER and run: ./mitrastar_ipchanger.sh | |
| # It will extract the JS and SID from router, process the JS with w/ node, trigger the reboot and change ip. |
| ## Valorant matchmaking - Ranked points and last matches details retriever | |
| # @author intrd - http://dann.com.br/ | |
| # based on RumbleMike/ValorantAPI - https://github.com/RumbleMike/ValorantAPI/ | |
| # based on Luc1412/auth_flow.py - https://gist.github.com/Luc1412/1f93257a2a808679ff014f258db6c35b | |
| # based on RumbleMike/ValorantRankedPoints - https://github.com/RumbleMike/ValorantRankedPoints | |
| # Usage: Just fill YOURUSERNAMEHERE and YOURPASSWORDHERE. | |
| import re | |
| import aiohttp |