diff options
author | Ting-Wei Lan <lantw44@gmail.com> | 2024-11-11 00:15:39 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw44@gmail.com> | 2024-11-11 00:15:39 +0800 |
commit | 2565bdfbee65e94c4776fd7d31e0efac9f4cebf5 (patch) | |
tree | 3b6ff915f27978f96a708b98a4c10bc82e2437f3 | |
download | termux-shortcuts-2565bdfbee65e94c4776fd7d31e0efac9f4cebf5.tar.gz termux-shortcuts-2565bdfbee65e94c4776fd7d31e0efac9f4cebf5.tar.zst termux-shortcuts-2565bdfbee65e94c4776fd7d31e0efac9f4cebf5.zip |
Initial commit
-rwxr-xr-x | Android-Files | 2 | ||||
-rwxr-xr-x | GPS-記錄 | 9 | ||||
-rwxr-xr-x | IP | 3 | ||||
-rwxr-xr-x | Python | 2 | ||||
-rwxr-xr-x | Termux-更新 | 4 | ||||
-rwxr-xr-x | inode-用量 | 3 | ||||
-rwxr-xr-x | ping | 5 | ||||
-rwxr-xr-x | 無線緊急警報 | 2 |
8 files changed, 30 insertions, 0 deletions
diff --git a/Android-Files b/Android-Files new file mode 100755 index 0000000..721238f --- /dev/null +++ b/Android-Files @@ -0,0 +1,2 @@ +#!/data/data/com.termux/files/usr/bin/sh +am start -n com.google.android.documentsui/com.android.documentsui.files.FilesActivity @@ -0,0 +1,9 @@ +#!/data/data/com.termux/files/usr/bin/bash +out=logs/gps.txt +read -r -e -p 'Append to file: ' -i "$out" out +while true; do + date +%H:%M:%S | tr '\n' ' ' + termux-location -r last | \ + jq -r '"(\(.latitude * 1e6 | round / 1e6), \(.longitude * 1e6 | round / 1e6)) [\(.accuracy)] \(.elapsedMs / 1e3 | round)"' + sleep 1 +done | tee -a "$out" @@ -0,0 +1,3 @@ +#!/data/data/com.termux/files/usr/bin/sh -ex +curl https://icanhazip.com +exit 125 @@ -0,0 +1,2 @@ +#!/data/data/com.termux/files/usr/bin/sh +exec python diff --git a/Termux-更新 b/Termux-更新 new file mode 100755 index 0000000..ecec830 --- /dev/null +++ b/Termux-更新 @@ -0,0 +1,4 @@ +#!/data/data/com.termux/files/usr/bin/sh -ex +apt update +apt -V dist-upgrade +exit 125 diff --git a/inode-用量 b/inode-用量 new file mode 100755 index 0000000..98a9c48 --- /dev/null +++ b/inode-用量 @@ -0,0 +1,3 @@ +#!/data/data/com.termux/files/usr/bin/sh -ex +df -hi /data +exit 125 @@ -0,0 +1,5 @@ +#!/data/data/com.termux/files/usr/bin/bash -e +read -r -e -p 'Host: ' -i 8.8.8.8 host +set -x +ping -c 4 "$host" +exit 125 @@ -0,0 +1,2 @@ +#!/data/data/com.termux/files/usr/bin/sh +am start -n com.google.android.cellbroadcastreceiver/com.android.cellbroadcastreceiver.CellBroadcastListActivity |