This file contains 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
from pyrogram import Client | |
from apscheduler.schedulers.asyncio import AsyncIOScheduler | |
import requests | |
from multiprocessing import Manager | |
api_id = 0 | |
api_hash = "" | |
app = Client("my_account", api_id, api_hash) | |
form = "{0} - {1}" # 0: song name | 1: artist name |
This file contains 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 bash | |
[[ $(id -u) != 0 ]] && exit 1 | |
TUN2SOCKS=tun2socks | |
INIT=xray.client | |
DEFAULTS=() | |
INTERFACE=usb0 | |
trap "cleanup" EXIT |
This file contains 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 bash | |
# Enable wireless debugging and connect using adb. | |
command -v adb su >/dev/null || exit 1 | |
# Variables | |
_SUDO="su -c" | |
_ADB="adb" | |
# Functions |
This file contains 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 | |
# Bump the versions of the local repository ebuilds | |
# Put the script inside the bumper.d directory | |
# Example script: | |
#PACKAGE_NAME="amdgpu-pro-vulkan" | |
#PACKAGE_DIR="media-libs/${PACKAGE_NAME}" | |
#LATEST_VERSION="$(curl -s https://repo.radeon.com/amd... | |
#LATEST_EBUILD="${PACKAGE_NAME}-${LATEST_VERSION}.ebuild" | |
# Defaults |
This file contains 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 | |
# Variables | |
ADB="adb -s 52105802eed17447" | |
THRESHOLD=35 | |
INTERVAL=1 | |
INTERVAL_ERROR=300 | |
GTK3_SETTINGS="$HOME/.config/gtk-3.0/settings.ini" | |
GTK3_OPTION="gtk-application-prefer-dark-theme" | |
GTK4_OPTION="org.gnome.desktop.interface color-scheme" |
This file contains 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 | |
#----Default Values----: | |
HTB_NAME="" | |
HTB_IP="" | |
HTB_VPN_MODE="PI" | |
HTB_VPN_PI="lab_aMir733" | |
HTB_VPN_RA="aMir733-release(6)" | |
HTB_DIR=$HOME/htb | |
HTB_PATH='$HTB_DIR/$HTB_NAME' |
This file contains 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 bash | |
# | |
# This is sp, the command-line Spotify controller. It talks to a running | |
# instance of the Spotify Linux client over dbus, providing an interface not | |
# unlike mpc. | |
# | |
# Put differently, it allows you to control Spotify without leaving the comfort | |
# of your command line, and without a custom client or Premium subscription. | |
# |