Configure Joplin's external editor settings to open a specific workspace in Visual Studio Code when editing notes.
Path (Linux):
/usr/bin/code
Arguments:
--wait --new-window /home/your_username/copilot-powered.code-workspace
#!/usr/bin/env nu | |
use std log | |
$env.NU_LOG_FORMAT = "%ANSI_START%%LEVEL%: %MSG%%ANSI_STOP%" | |
# _ _ _ | |
# | || |___| |_ __ ___ _ _ ___ | |
# | __ / -_) | '_ \/ -_) '_(_-< | |
# |_||_\___|_| .__/\___|_| /__/ | |
# |_| |
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Comment: 9EA6 C866 165A 3A86 08BE 3568 EA2D C27E 87A4 94F2 | |
Comment: Frederik Holm Strøm (https://frederikstroem.com) <[email protected]> | |
xjMEYcKXfhYJKwYBBAHaRw8BAQdAYYr1A3SfO/3KrCcRH1B9Auug0f2c7i7Eyik+ | |
iNrpsOnNSkZyZWRlcmlrIEhvbG0gU3Ryw7htIChodHRwczovL2ZyZWRlcmlrc3Ry | |
b2VtLmNvbSkgPHBncEBmcmVkZXJpa3N0cm9lbS5jb20+wsJmBBMWCgLOAhsBBAsJ | |
CAcEFQoJCAUWAgMBAAIeAQIXgAIZARYhBJ6myGYWWjqGCL41aOotwn6HpJTyBQJm | |
+SI6RxSAAAAAABAALnByb29mQGFyaWFkbmUuaWRodHRwczovL2dpdGxhYi5jb20v | |
ZnJlZGVyaWtzdHJvZW0vZ2l0bGFiX3Byb29mVhSAAAAAABAAPXByb29mQGFyaWFk |
# Source: https://web.archive.org/web/20240930075945/https%3A%2F%2Fstackoverflow.com%2Fquestions%2F13064613%2Fhow-to-prune-local-tracking-branches-that-do-not-exist-on-remote-anymore#17029936 | |
alias git-list-untracked='git fetch --prune && git branch -r | awk "{print \$1}" | grep -E -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk "{print \$1}"' | |
alias git-remove-untracked='git fetch --prune && git branch -r | awk "{print \$1}" | grep -E -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk "{print \$1}" | xargs git branch -d' | |
alias git-remove-untracked-force-unmerged='git fetch --prune && git branch -r | awk "{print \$1}" | grep -E -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk "{print \$1}" | xargs git branch -D' |
#!/bin/bash | |
# _ _ _ | |
# (_)_ __ (_) |_ | |
# | | '_ \| | __| | |
# | | | | | | |_ | |
# |_|_| |_|_|\__| | |
# Make sure running as root. | |
if [ "$(id -u)" != "0" ]; then |
# `envelope` command `from` retrieves `return-path` header, e.g. "[email protected]". | |
# Sources: | |
# - https://proton.me/support/sieve-advanced-custom-filters | |
# - https://simplelogin.io/docs/getting-started/troubleshooting/ | |
# Require `envelope` and `fileinto` extensions. | |
require ["fileinto", "envelope"]; | |
# Emails from SimpleLogin domains are filed into "SimpleLogin". | |
if envelope :domain :is "from" ["simplelogin.co", "simplelogin.io"] { |
[Unit] | |
Description=Waiting for Tailscale Backend | |
[Service] | |
Type=simple | |
EnvironmentFile=%h/waiting_service/.env | |
ExecStartPre=/usr/bin/bash -c 'until [[ "$(tailscale status --json | jq -r '.BackendState')" == "Running" ]]; do sleep 1; done' # Wait for Tailscale/Headscale to start. | |
ExecStart=/usr/bin/python3 %h/waiting_service/main.py | |
Restart=always | |
RestartSec=5 |
[Unit] | |
Description=Automated GitHub cloning tool | |
[Service] | |
Type=simple | |
Environment=DATA_DIR=/tank/automated_github_cloner | |
EnvironmentFile=%h/automated_github_cloner/.env | |
ExecStart=/usr/bin/python3 %h/automated_github_cloner/main.py | |
Restart=always | |
RestartSec=5 |
#!/usr/bin/env bash | |
# Test: `echo "This should be read up for me" | tts` | |
# Read all input into variable and replace newlines with spaces | |
input=$(cat | tr '\n' ' ') | |
# Save current time in ISO8601 format and replace special characters with underscore | |
timestamp=$(date -u +"%Y_%m_%dT%H_%M_%SZ") |
-----BEGIN PGP SIGNED MESSAGE----- | |
Hash: SHA512 | |
Session ID: 05370a12bfe51c546b06bbc5dc131bfd091aeaf02bdfd5d9d4f8784f495522dc49 | |
-----BEGIN PGP SIGNATURE----- | |
iHUEARYKAB0WIQRuImp4wxgx4e3uWqPaQi3qJfhRSAUCYjuF5QAKCRDaQi3qJfhR | |
SJFOAP9LEFIM2mye+d/v+J64gI+XZ06UR9aT12KJC1nv73UxCAD+J9WZHfP2L/uq | |
Pm10NZgsVrwcbB4pmU/eVWxSfhj4MAE= | |
=BH+I |