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 | |
# Compression test | |
# Paul Philippov <[email protected]> | |
payload="" | |
name="payload" | |
in="${name}.txt" | |
[ -d ./test_data/ ] && rm -r ./test_data/ | |
[ ! -d ./test_data/ ] && mkdir ./test_data/ |
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 | |
# | |
# GStreamer based script for glass-to-glass latency testing. | |
# Use it together with https://thingino.com/timer | |
# | |
# 2023, Paul Philippov <[email protected]> | |
# | |
if ! command -v gst-launch-1.0 >/dev/null; then | |
echo "This script requires GStreamer." |
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 | |
# .SCAD files thumbnailer | |
# 2022, Paul Philippov, [email protected] | |
OS=$(command -v openscad || command -v openscad-nightly) | |
$OS -o "$2.png" -D "\$fn=128" --autocenter --viewall \ | |
--colorscheme="Tomorrow Night" -q "$1" | |
[ ! -f "$2.png" ] && echo "Cannot find image!" && exit 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
#!/bin/bash | |
# .STL files thumbnailer | |
# 2022, Paul Philippov, [email protected] | |
set -euo pipefail | |
OS=$(command -v openscad || command -v openscad-nightly) | |
IFS=$'\n\t' |
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 | |
mount -t debugfs none /sys/kernel/debug | |
cat /sys/kernel/debug/gpio |
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 | |
pin1=$(cli -g .nightMode.irCutPin1) | |
pin2=$(cli -g .nightMode.irCutPin2) | |
if [ -z "$pin1" ]; then | |
echo "IRCUT pin 1 is not set!" | |
echo "Please set it by running cli -s .nightMode.irCutPin1 XX, where XX is a GPIO pin number." | |
exit 1 | |
fi |
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 | |
BR_OUTPUT_DIR=/path/to/openipc/output | |
CROSS_PATH=${BR_OUTPUT_DIR}/host/bin | |
CROSS_COMPILE=$(readlink -f $CROSS_PATH)/mipsel-openipc-linux-musl- | |
CC=${CROSS_COMPILE}gcc | |
make ARCH=mips CC="${CC}" \ | |
CROSS_COMPILE="${CROSS_COMPILE}" \ |
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 | |
# | |
# Embedded Linux root hijacker | |
# | |
# This script repacks firmware replacing existing root password with a blank password. | |
# Tested on HiSilicon and Ingenic firmware dumps from NOR SPI flash chips. | |
# Use at your own risk. | |
# | |
# Paul Philppov <[email protected]> | |
# 2023-11-21: Initial release |
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 | |
# Set cron jobs by actual sunset and sunrise time | |
# 2023 Paul Philippov <[email protected]> | |
# 2023-12-23 - initial script | |
# 2023-04-28 - use daynight script to switch day mode | |
# 2024-06-12 - add timezone support | |
# Please tip the API provider: https://www.buymeacoffee.com/sunrisesunsetapi | |
# Geographic coordinates of your place | |
lat="42.17509000" |
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 | |
# | |
# OpenIPC Toolchains Updater | |
# | |
# This script retrieves the latest toolchains for building OpenIPC firmware. | |
# Execute the script in the directory where you want to store the toolchains | |
# locally, for example, /opt/toolchains/openipc/. You can re-run the script | |
# to update the toolchains. | |
# | |
# 2021, Paul Philippov <[email protected]> |