summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2024-11-11 00:15:39 +0800
committerTing-Wei Lan <lantw44@gmail.com>2024-11-11 00:15:39 +0800
commit2565bdfbee65e94c4776fd7d31e0efac9f4cebf5 (patch)
tree3b6ff915f27978f96a708b98a4c10bc82e2437f3
downloadtermux-shortcuts-2565bdfbee65e94c4776fd7d31e0efac9f4cebf5.tar.gz
termux-shortcuts-2565bdfbee65e94c4776fd7d31e0efac9f4cebf5.tar.zst
termux-shortcuts-2565bdfbee65e94c4776fd7d31e0efac9f4cebf5.zip
Initial commit
-rwxr-xr-xAndroid-Files2
-rwxr-xr-xGPS-記錄9
-rwxr-xr-xIP3
-rwxr-xr-xPython2
-rwxr-xr-xTermux-更新4
-rwxr-xr-xinode-用量3
-rwxr-xr-xping5
-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
diff --git a/GPS-記錄 b/GPS-記錄
new file mode 100755
index 0000000..4893494
--- /dev/null
+++ b/GPS-記錄
@@ -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"
diff --git a/IP b/IP
new file mode 100755
index 0000000..d315b20
--- /dev/null
+++ b/IP
@@ -0,0 +1,3 @@
+#!/data/data/com.termux/files/usr/bin/sh -ex
+curl https://icanhazip.com
+exit 125
diff --git a/Python b/Python
new file mode 100755
index 0000000..312ba39
--- /dev/null
+++ b/Python
@@ -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
diff --git a/ping b/ping
new file mode 100755
index 0000000..844b70e
--- /dev/null
+++ b/ping
@@ -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
diff --git a/無線緊急警報 b/無線緊急警報
new file mode 100755
index 0000000..9defe92
--- /dev/null
+++ b/無線緊急警報
@@ -0,0 +1,2 @@
+#!/data/data/com.termux/files/usr/bin/sh
+am start -n com.google.android.cellbroadcastreceiver/com.android.cellbroadcastreceiver.CellBroadcastListActivity