This file contains 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 | |
# | |
# bmitune110.sh | |
# This script is used with https://github.com/tmm1/androidhdmi-for-channels/blob/main/main.go | |
# | |
touch /tmp/bmitune110.lock | |
echo "$1" > /tmp/bmitune110.playing |
This file contains 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 | |
declare -i counter=0 | |
declare -i failcounter110=0 | |
declare -i failcounter145=0 | |
check110() { | |
if [ -f /tmp/bmitune110.lock ]; then | |
return | |
fi |
This file contains 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 | |
rm /tmp/bmitune110.* | |
adb connect 10.0.250.154 | |
adb -s 10.0.250.154 shell am force-stop com.hulu.plus | |
sleep 1 |
This file contains 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
package main | |
import ( | |
"fmt" | |
"io" | |
"os/exec" | |
"net/http" | |
"github.com/gin-gonic/gin" | |
) |
This file contains 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
if [ $(echo "$STATION" | grep "youtube__" | wc -l) -gt 0 ]; then | |
content_id=$(echo "$STATION" | awk -F '__' '{print $2}') | |
PROVIDER="YOUTUBE" | |
elif [ $(echo "$STATION" | grep "hulu__" | wc -l) -gt 0 ]; then | |
content_id=$(echo "$STATION" | awk -F '__' '{print $2}') | |
PROVIDER="HULU" | |
elif [ $(echo "$STATION" | grep "www" | wc -l) -gt 0 ]; then | |
content_id=$(echo "$STATION" | awk -F '__' '{print $2}') | |
PROVIDER="WWW" | |
elif [ $(echo "$STATION" | grep "weatherscan" | wc -l) -gt 0 ]; then |
This file contains 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 | |
# gitcommit - Script to summarize git changes using OpenAI and commit with a custom message leading the AI summary | |
# Ensure OPENAI_API_KEY is set | |
if [[ -z "${OPENAI_API_KEY}" ]]; then | |
echo "OPENAI_API_KEY is not set. Please export it before running this script." | |
exit 1 | |
fi |