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 | |
| # 🚀 Mobile Emulator Launcher | |
| # Author: WhoisGray | |
| # 📝 Description: A script to list available Android emulators, let you select one using arrow keys, | |
| # and launch the selected emulator seamlessly. | |
| # 🛠️ Define the path to the emulator command | |
| EMULATOR_PATH="${ANDROID_HOME}/emulator/emulator" |
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
| const fs = require('fs'); | |
| const path = require('path'); | |
| // Recursive function to get all .ts and .js files in a directory | |
| function getFiles(dir) { | |
| let files = []; | |
| fs.readdirSync(dir).forEach(file => { | |
| const filePath = path.join(dir, file); | |
| const stats = fs.statSync(filePath); | |
| if (stats.isDirectory()) { |
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
| async function wait(count) { | |
| const timeout = count % 50 === 0 ? 30000 : Math.random() * 1000 + 2000; | |
| await new Promise(resolve => setTimeout(resolve, timeout)); | |
| } | |
| async function unlikeAllTweets({ limit, deleteTweets=false }) { | |
| let count = 0; | |
| while (count < limit) { | |
| const unlikeButton = document.querySelector('[data-testid="unlike"]'); | |
| if (!unlikeButton) break; |
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 | |
| # Check if the script is run with superuser privileges | |
| if [ "$EUID" -ne 0 ]; then | |
| echo "Please run this script as root (sudo)." | |
| exit 1 | |
| fi | |
| # Prompt the user for the target devices | |
| read -p "Enter the target devices (e.g., /dev/sdX /dev/sdY): " target_devices |