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
| import requests | |
| def get_tailscale_nodes(tailnet, api_key) -> list: | |
| url = f"https://api.tailscale.com/api/v2/tailnet/{tailnet}/devices" | |
| headers = { | |
| "Authorization": f"Bearer {api_key}" | |
| } | |
| # Step 1: Get the list of all devices | |
| response = requests.get(url, headers=headers) |
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
| name: 'service_immich' | |
| networks: | |
| proxy: | |
| external: true # ---> To Traefik Reverse Proxy | |
| cloudflared_network: | |
| external: true # ---> To Cloudflare Tunnel network | |
| backend: | |
| driver: bridge # ---> Insider network accessible only to Immich services and sidearts |
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
| import re, json | |
| def exif_to_standard_json(exif_data): | |
| """ | |
| Input: Piexif file data. | |
| Output: Json | |
| Personal flavors: | |
| byte to string values: | |
| standardized_value = re.sub(r'\u0000|\u0001|\u0002|\u0003', '', standardized_value) |
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
| def converter__json_to_md_table(json_data:list, formated:list=None, transposed:bool=True) -> str: | |
| """ | |
| Converts JSON data to a Markdown table with optional key order, key labels and transposition. | |
| Parameters: | |
| - json_data: list(dict): Reqired: The JSON data as a list of dictionaries. | |
| json_data = [ | |
| {key_1:value, key_2:value, key_3:value}, | |
| {key_1:value, key_2:value, key_3:value}, |
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
| DOMAIN_NAME=yourdomain.tld | |
| TZ=Europe/London |