All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker
. This will install the whole docker suite, left only Tini to be compiled manually.
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 | |
# script credit: github user @dodotree | |
version=$1 | |
text=$2 | |
branch=$(git rev-parse --abbrev-ref HEAD) | |
repo_full_name=$(git config --get remote.origin.url | sed 's/.*:\/\/github.com\///;s/.git$//') | |
token=$(git config --global github.token) |
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
scat() { | |
local dir="${1:-.}" | |
find "$dir" \ | |
-type d -exec echo -e "Directory: {}\n" \; -o \ | |
-type f \ | |
\( -name "*.js" -o -name "*.json" -o -name "*.html" -o -name "*.css" -o -name "*.md" -o -name "*.txt" \) \ | |
-exec echo -e "\n=== File: {} ===\n" \; \ | |
-exec cat {} \; \ | |
-exec echo -e "\n--- End of File ---\n" \; | |
} |
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
FAIL FAST | |
---------------------------- | |
ok, so lets do one thing. i know its well intentioned, but i want you to remove ALL "failsafes" from the code we just did. i want the code to HARD error if something isn't set properly. | |
bandaid fixes create ghost problems, and id rather jsut know someting is wrong. | |
for example we should never use the "||" to set a default size if it doesnt exist. we should error and crash if it doesnt exist as expected. |
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
Reolink Camera HTTP API (Condensed) | |
Protocol | |
HTTP/HTTPS: POST only, JSON payload, Content-Type: application/json or application/octet-stream (for uploads). | |
URL: https://<camera_ip>/api.cgi?cmd=<command>[&token=<token>] | |
Authentication: | |
Long Session: Login to get token (3600s lease), append &token=<token> to URLs. | |
Short Session: Append &user=<username>&password=<password> to URLs. | |
OlderNewer