Skip to content

Instantly share code, notes, and snippets.

View Felix-Kyun's full-sized avatar
💭
¯\_(ツ)_/¯

0×FELIX Felix-Kyun

💭
¯\_(ツ)_/¯
View GitHub Profile
@Felix-Kyun
Felix-Kyun / termux_charge_limit
Created May 9, 2022 19:12
battery charge limiter for termux, NEEDS ROOT!
#! /usr/bin/env bash
# TODO: add a light weight loader
MIN=70
MAX=85
CONTROL_FIlE=/sys/class/power_supply/battery/charging_enabled
REFRESH_INTERVAL=60
BIN=termux-battery-info
@Felix-Kyun
Felix-Kyun / dl.sh
Last active May 4, 2022 12:51
simple script to downlad music using yt-dl
#!/bin/bash
# usage
# dl.sh link sub-directory(optional)
# by default it uses yt-dlp change the $BIN to change it.
# script stores cache in .cache dir
# and keeps a archive just to prevent duplicate downloads
# archive is located in Music directory named ".download.txt"
# it also downloads thumbnails by default