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 logging | |
from functools import wraps | |
from typing import Any, Optional, Tuple, Dict, Hashable, Iterable, Callable | |
logger = logging.getLogger(__name__) | |
""" | |
https://github.com/david-lev (c) 2023 | |
**Cache management in Python in memory efficiently and quickly.** |
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
#!/system/bin/sh | |
# Split APKs Installer | SAI # | |
: ' | |
This script allows you to install splits-apk with one adb shell command! push this script to your device with adb and run it: | |
usage: sh sai.sh [path/to/folder/with/the/apks] [installer pkg (optional)] [originating-uri (optional)] | |
example: sh sp_installer.sh "/data/local/tmp/wa_app/" "com.android.vending" "171faa8c8918" | |
Author: David Lev (github.com/david-lev) | |
' | |
echo "<<< Split APKs Installer | github.com/david-lev >>>\n" |
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
#!/data/data/com.termux/files/usr/bin/bash | |
# https://github.com/david-lev/termux-weather | |
# Author: David Lev (github.com/david-lev) | |
# Variables | |
end='\e[0m' | |
red='\e[31m' | |
green='\e[32m' | |
yellow='\e[33m' |
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
chars = { | |
"0": "00", | |
"1": "01", | |
"2": "02", | |
"3": "03", | |
"4": "04", | |
"5": "05", | |
"6": "06", | |
"7": "07", | |
"8": "08", |
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
from pyrogram import Client, filters, types | |
token = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" | |
app = Client("get_id_bot", 777074324, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXX", bot_token=token) | |
@app.on_message(filters.group) | |
def group(_, msg:types.Message): | |
msg.reply(f"מזהה הקבוצה: `{msg.chat.id}`") | |
msg.chat.leave() |
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
from pyrogram import Client, filters, types | |
app = Client("capslock") | |
caps = { | |
"q": "/", | |
"w": "'", | |
"e": "ק", | |
"r": "ר", | |
"t": "א", |