Compare commits
5 Commits
8124685300
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 040f743ff0 | |||
| aeb620b6d7 | |||
| e2aeec7c07 | |||
| 2be3859825 | |||
| 3babc93d4e |
3
docker-anonymous-mounts
Executable file
3
docker-anonymous-mounts
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker ps -q | xargs -I{} sh -c 'mounts=$(docker inspect {} --format "{{range .Mounts}}{{if eq .Type \"volume\"}}{{.Destination}} {{.Name}} {{end}}{{end}}"); [ -n "$mounts" ] && echo "$(docker inspect --format '{{.Name}}' {}) $mounts"'
|
||||
8
start_notify_android_tv
Executable file
8
start_notify_android_tv
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
nmap -p 7676 tv.ddp.net | grep 'open' > /dev/null
|
||||
|
||||
if [ x"$?" != "x0" ]; then
|
||||
adb connect tv.ddp.net
|
||||
adb shell monkey -p de.cyberdream.androidtv.notifications.google -c android.intent.category.LAUNCHER 1
|
||||
fi
|
||||
@@ -144,11 +144,18 @@ def GetLastCommmitDaysAgo( container ):
|
||||
# Fetch the latest commit details from GitHub API
|
||||
response = requests.get(m[1])
|
||||
response.raise_for_status() # Raise an error for bad status codes
|
||||
commit_info = response.json()[0]
|
||||
tmp_resp = response.json()
|
||||
if isinstance(tmp_resp, list):
|
||||
commit_info = tmp_resp[0]
|
||||
else:
|
||||
commit_info = tmp_resp
|
||||
|
||||
# Extract the commit URL and date
|
||||
commit_url = commit_info["html_url"]
|
||||
commit_date_str = commit_info["commit"]["author"]["date"]
|
||||
if "commit" in commit_info:
|
||||
commit_date_str = commit_info["commit"]["author"]["date"]
|
||||
else:
|
||||
commit_date_str = commit_info["updated_at"]
|
||||
|
||||
# Convert commit date to datetime object
|
||||
commit_date = datetime.fromisoformat(commit_date_str.replace('Z', '+00:00'))
|
||||
|
||||
Reference in New Issue
Block a user