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 numpy as np | |
| import matplotlib.pyplot as plt | |
| from scipy import signal | |
| def create_filter_coeffs(filter_type, fc, gain_db, q, fs=48000): | |
| w0 = 2 * np.pi * fc / fs | |
| A = 10 ** (gain_db / 40) | |
| alpha = np.sin(w0) / (2 * q) |
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 re | |
| import sys | |
| import zipfile | |
| from pathlib import Path | |
| from typing import Any, Union | |
| import langcodes | |
| import xmltodict | |
| from threading import Lock |
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
| x11-start-test --gpu --use-egl-surfaceless --gl scrcpy -b7M --no-audio -S --no-cleanup --video-codec h264 -m1000 --no-mouse-hover --max-fps 60 --fullscreen --lock-video-orientation |
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/sh | |
| stringContain() { [ -z "${2##*$1*}" ]; } | |
| URL=$1 | |
| if stringContain '/c/' "$URL" || stringContain '/channel/' "$URL"; then URL="${URL}/videos"; fi | |
| if stringContain "music.youtube.com" "$URL"; then ytMusic="true"; fi | |
| noti() { | |
| su -lp 2000 -c "cmd notification post -S bigtext --title '$1' lmao '$2'" > /dev/null 2>&1 |
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
| su -c 'AFF="1e"; PKG="com.YoStarEN.Arknights"; while :; do [ `pgrep -fx "$PKG"` ] && taskset -a -p "$AFF" `pgrep -fx "$PKG"`; [ $? -ne 0 ] && exit 0; sleep 5; done' |
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 http.server import BaseHTTPRequestHandler, HTTPServer | |
| from threading import Thread | |
| from time import sleep | |
| from typing import Callable | |
| from urllib import parse | |
| endpoints_mapping: dict[str, dict[str, Callable]] = { | |
| "CONNECT": {}, | |
| "DELETE": {}, |
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 json | |
| import requests | |
| from pprint import pprint | |
| def base_request( | |
| endpoint: str, request_id: str, id: str, extra: dict | None = None | |
| ) -> dict: | |
| data = { | |
| "context": { |
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
| -- https://github.com/jonniek/mpv-scripts/blob/master/appendURL.lua | |
| -- Author: donmaiq | |
| -- Modifier: FoxeiZ | |
| -- Appends url from clipboard to the playlist | |
| -- Termux edition | |
| local utils = require 'mp.utils' | |
| local msg = require 'mp.msg' | |
| --main function function append() | |
| local clipboard = get_clipboard() |
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
| // ==UserScript== | |
| // @name beatmap mirror | |
| // @namespace example.com | |
| // @version 0.1 | |
| // @description read the name | |
| // @author foxeiz | |
| // @include /https?:\/\/osu.ppy.sh\/beatmapsets\/[0-9] | |
| // @icon https://icons.duckduckgo.com/ip2/ppy.sh.ico | |
| // @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
| // ==/UserScript== |