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 | |
# | |
# cn2en.sh | |
# Translate Chinese text file to English. | |
# | |
# 2020-09-06, Paul Philippov <[email protected]> | |
if ! command -v trans >/dev/null; then | |
echo "Translate Shell is required. https://www.soimort.org/translate-shell/" | |
echo "wget git.io/trans && chmod +x ./trans" |
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 | |
# | |
# ANSI color codes | |
# 2019 Paul Philippov <[email protected]> | |
for k in {1..9}; do | |
for i in {0..9}; do | |
echo -en " \e[1;${k}${i}m$(printf "%02s" "${k}${i}")\e[0m" | |
done | |
echo |
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/sh | |
# | |
# Universal firmware installer. | |
# Run on an embedded device in Linux shell to install | |
# a full firmware image to a non-matching partitioning. | |
# | |
# Requires dd and flascp. | |
# | |
# 2024, Paul Philippov, [email protected] |
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/sh | |
# IPC button catcher | |
# Paul Philippov <[email protected]> | |
# 2024-07-01: Initial release | |
GPIO_MAX=95 | |
EXCLUDE="10 16 17 18 49 54 55 56 57 58" | |
for i in $(seq 0 $GPIO_MAX); do | |
echo $EXCLUDE | grep -e "\b$i\b" >/dev/null && continue |
OlderNewer