Use uv in shebang
This commit is contained in:
parent
68fa93f34f
commit
3d22cf5fe5
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env -S uv run --script
|
||||||
#
|
#
|
||||||
# Usage: dayofweek <year> <month> <day>
|
# Usage: dayofweek <year> <month> <day>
|
||||||
#
|
#
|
||||||
|
7
myip
7
myip
@ -1,4 +1,9 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/env -S uv run --script
|
||||||
|
# /// script
|
||||||
|
# dependencies = [
|
||||||
|
# "requests",
|
||||||
|
# ]
|
||||||
|
# ///
|
||||||
|
|
||||||
"""
|
"""
|
||||||
myip - Fetch and display public IP information from ipinfo.io
|
myip - Fetch and display public IP information from ipinfo.io
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# LICENSE
|
# LICENSE
|
||||||
# Copyright 2022 Jeffrey Serio <hyperreal@fedoraproject.org>
|
# Copyright 2022 Jeffrey Serio <hyperreal@moonshadow.dev>
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,10 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env -S uv run --script
|
||||||
|
# /// script
|
||||||
|
# dependencies = [
|
||||||
|
# "docopt",
|
||||||
|
# "rich",
|
||||||
|
# ]
|
||||||
|
# ///
|
||||||
|
|
||||||
"""OCI Registry Helper
|
"""OCI Registry Helper
|
||||||
|
|
||||||
|
@ -1,24 +0,0 @@
|
|||||||
# /// script
|
|
||||||
# dependencies = [
|
|
||||||
# "resend",
|
|
||||||
# ]
|
|
||||||
# ///
|
|
||||||
|
|
||||||
import subprocess
|
|
||||||
from pathlib import Path
|
|
||||||
|
|
||||||
import resend
|
|
||||||
|
|
||||||
resend.api_key = (
|
|
||||||
Path("/usr/local/etc/resend_api_key.txt").read_text().strip("\n")
|
|
||||||
)
|
|
||||||
|
|
||||||
params: resend.Emails.SendParams = {
|
|
||||||
"from": "Borgmatic <admin@hyperreal.coffee>",
|
|
||||||
"to": ["hyperreal@moonshadow.dev"],
|
|
||||||
"subject": "[moonshadow] Error running Borgmatic",
|
|
||||||
"text": "There was an error running your Borgmatic backup on moonshadow. Please investigate.",
|
|
||||||
}
|
|
||||||
|
|
||||||
email = resend.Emails.send(params)
|
|
||||||
print(email)
|
|
Loading…
x
Reference in New Issue
Block a user