Format notifications in a more readable way
- Add the following template to
Alerting/Contact points/Notification Templateswith the namepayload_message
{{ define "payload_message" -}}
| {"name":"mecaneer23 webdev","icon":"window","settings":"{\"settings\":\"{\\r\\n \\\"editor.bracketPairColorization.enabled\\\": true,\\r\\n \\\"editor.guides.bracketPairs\\\": \\\"active\\\",\\r\\n \\\"editor.suggestSelection\\\": \\\"first\\\",\\r\\n \\\"explorer.confirmDragAndDrop\\\": false,\\r\\n \\\"files.exclude\\\": {\\r\\n \\\"**/.classpath\\\": true,\\r\\n \\\"**/.project\\\": true,\\r\\n \\\"**/.settings\\\": true,\\r\\n \\\"**/.factorypath\\\": true\\r\\n },\\r\\n \\\"workbench.editorAssociations\\\": {\\r\\n \\\"*.ipynb\\\": \\\"jupyter-notebook\\\",\\r\\n \\\"*.pdf\\\": \\\"default\\\"\\r\\n },\\r\\n \\\"notebook.cellToolbarLocation\\\": {\\r\\n \\\"default\\\": \\\"right\\\",\\r\\n \\\"jupyter-notebook\\\": \\\"left\\\"\\r\\n },\\r\\n \\\"git.autofetch\\\": true,\\r\\n \\\"editor.inlineSuggest.enabled\\\": true,\\r\\n \\\"editor.fontFamily\\\": \\\"JetBrains Mono\\\",\\r\\n \\\"editor.renderWhitespa |
| {"name":"mecaneer23","icon":"robot","settings":"{\"settings\":\"{\\r\\n \\\"editor.bracketPairColorization.enabled\\\": true,\\r\\n \\\"editor.guides.bracketPairs\\\": \\\"active\\\",\\r\\n \\\"editor.suggestSelection\\\": \\\"first\\\",\\r\\n \\\"explorer.confirmDragAndDrop\\\": false,\\r\\n \\\"files.exclude\\\": {\\r\\n \\\"**/.classpath\\\": true,\\r\\n \\\"**/.project\\\": true,\\r\\n \\\"**/.settings\\\": true,\\r\\n \\\"**/.factorypath\\\": true\\r\\n },\\r\\n \\\"workbench.editorAssociations\\\": {\\r\\n \\\"*.ipynb\\\": \\\"jupyter-notebook\\\",\\r\\n \\\"*.pdf\\\": \\\"default\\\"\\r\\n },\\r\\n \\\"notebook.cellToolbarLocation\\\": {\\r\\n \\\"default\\\": \\\"right\\\",\\r\\n \\\"jupyter-notebook\\\": \\\"left\\\"\\r\\n },\\r\\n \\\"git.autofetch\\\": true,\\r\\n \\\"editor.inlineSuggest.enabled\\\": true,\\r\\n \\\"editor.fontFamily\\\": \\\"JetBrains Mono\\\",\\r\\n \\\"editor.renderWhitespace\\\": |
| """ | |
| Debug queue | |
| Use as drop-in replacement for queue.Queue | |
| when debugging | |
| Allows for reading current queue state | |
| Much less efficient than a normal queue | |
| in regard to both time and space |
| """Generate an ICS calendar file for a provided schedule.""" | |
| from datetime import datetime, timedelta | |
| from pathlib import Path | |
| from events import full_events | |
| full_events: list[tuple[str, str, str, str, str, str, str]] | |
| YEAR = 2025 |
| {"name":"mecaneer23 1","icon":"robot","settings":"{\"settings\":\"{\\r\\n \\\"editor.bracketPairColorization.enabled\\\": true,\\r\\n \\\"editor.guides.bracketPairs\\\": \\\"active\\\",\\r\\n \\\"editor.suggestSelection\\\": \\\"first\\\",\\r\\n \\\"explorer.confirmDragAndDrop\\\": false,\\r\\n \\\"files.exclude\\\": {\\r\\n \\\"**/.classpath\\\": true,\\r\\n \\\"**/.project\\\": true,\\r\\n \\\"**/.settings\\\": true,\\r\\n \\\"**/.factorypath\\\": true\\r\\n },\\r\\n \\\"workbench.editorAssociations\\\": {\\r\\n \\\"*.ipynb\\\": \\\"jupyter-notebook\\\",\\r\\n \\\"*.pdf\\\": \\\"default\\\"\\r\\n },\\r\\n \\\"notebook.cellToolbarLocation\\\": {\\r\\n \\\"default\\\": \\\"right\\\",\\r\\n \\\"jupyter-notebook\\\": \\\"left\\\"\\r\\n },\\r\\n \\\"git.autofetch\\\": true,\\r\\n \\\"editor.inlineSuggest.enabled\\\": true,\\r\\n \\\"editor.fontFamily\\\": \\\"JetBrains Mono\\\",\\r\\n \\\"editor.renderWhitespace\\\" |
| #!/usr/bin/bash | |
| install-chrome() { | |
| wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb; | |
| sudo apt install ./google-chrome-stable_current_amd64.deb; | |
| rm ./google-chrome-stable_current_amd64.deb; | |
| } | |
| install-chrome |
| console.log("Image creation from external url example"); | |
| async function createLocalImageFrom(imageUrl) { | |
| let blob = fetch(imageUrl).then(r => r.blob()); | |
| let img = document.createElement("img"); | |
| img.src = URL.createObjectURL(await blob); | |
| document.body.appendChild(img); | |
| } | |
| // createLocalImageFrom(""); |
| {"name":"mecaneer23","settings":"{\"settings\":\"{\\r\\n \\\"editor.bracketPairColorization.enabled\\\": true,\\r\\n \\\"editor.guides.bracketPairs\\\": \\\"active\\\",\\r\\n \\\"editor.suggestSelection\\\": \\\"first\\\",\\r\\n \\\"explorer.confirmDragAndDrop\\\": false,\\r\\n \\\"files.exclude\\\": {\\r\\n \\\"**/.classpath\\\": true,\\r\\n \\\"**/.project\\\": true,\\r\\n \\\"**/.settings\\\": true,\\r\\n \\\"**/.factorypath\\\": true\\r\\n },\\r\\n \\\"workbench.editorAssociations\\\": {\\r\\n \\\"*.ipynb\\\": \\\"jupyter-notebook\\\"\\r\\n },\\r\\n \\\"notebook.cellToolbarLocation\\\": {\\r\\n \\\"default\\\": \\\"right\\\",\\r\\n \\\"jupyter-notebook\\\": \\\"left\\\"\\r\\n },\\r\\n \\\"git.autofetch\\\": true,\\r\\n \\\"editor.inlineSuggest.enabled\\\": true,\\r\\n \\\"editor.fontFamily\\\": \\\"JetBrains Mono\\\",\\r\\n \\\"editor.renderWhitespace\\\": \\\"all\\\",\\r\\n \\\"terminal.integrated.fontFamily\\\" |