This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import os | |
| import sys | |
| import time | |
| import json | |
| import subprocess | |
| import requests | |
| from pathlib import Path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import sys | |
| import cloudscraper | |
| from bs4 import BeautifulSoup | |
| URL = "https://downdetector.com" | |
| MAX_SITES = 15 |
$ grep -P "[^\x00-\x7F]" 624.patch
+ Log.d(LOG_TAG, "Service created in PAUSED state → stopping self")
+ setUserPaused(applicationContext, true) // ⭐ TRUE FIX
+ // 1️⃣ Mark paused FIRST (single source of truth)
+ // 2️⃣ Stop all discovery providers
+ // 3️⃣ Disconnect every connected device (THIS fixes PC still connected)
+ // 4️⃣ Remove foreground notification
+ // 5️⃣ Stop the service lifecycle
+ // 6️⃣ Extra safety: ask Android to stop it too
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # requires auth_token. | |
| #auth_token="" | |
| source ~/.env-twitter | |
| screen_name=$1 | |
| usage() { echo -e "Show Twitter account location (requires auth_token)\n $0 <screen_name>"; exit 1; } | |
| [[ ! "$auth_token" || ! "$screen_name" ]] && usage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import requests | |
| import json | |
| import sys | |
| import pyotp | |
| import cloudscraper | |
| # NOTE: pyotp, requests and cloudscraper are dependencies | |
| # > pip install pyotp requests cloudscraper |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import asyncio | |
| from twikit.guest import GuestClient | |
| client = GuestClient() | |
| #client = GuestClient(proxy='http://127.0.0.1:8888') | |
| async def main(): | |
| # Activate the client by generating a guest token. | |
| guest_token = await client.activate() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import asyncio | |
| from twikit import Client | |
| client = Client() | |
| # charles proxy | |
| #client = Client(proxy='http://127.0.0.1:8888') | |
| client.load_cookies('cookies.json') | |
| async def tweet(): |
NewerOlder


