···
set script-interpreter := ["uv", "run", "--script"]
+
# List systemd services
+
sudo systemctl list-units --type=service
+
# Copy public IPv4 address
+
curl -s -m 5 ipv4.icanhazip.com | xclip -selection clipboard
+
cat "${HOME}/.ssh/id_ed25519.pub" | tr -d '\n' | xclip -selection clipboard
+
echo "--> SSH public key copied to clipboard"
+
# Generate a pseudo-random 16-character string
+
openssl rand -base64 16
+
# Remove all .jpeg, .jpg, .png, .svg, .webp files from downloads
+
find "${HOME}/downloads" \
+
\( -name "*.jpg" -o -name "*.jpg_original" -o -name "*.jpeg" -o -name "*.svg" -o -name "*.png" -o -name "*.webp" \) \
+
# Remove ISOs and disk images from downloads
+
find "${HOME}/downloads" \
+
\( -name "*.iso" -o -name "*.img" \) \
+
# Clear downloads folder
+
rm -rf "${HOME}/downloads/"*
+
_begin_line=$(grep -n "### ALIASES" ~/.zshrc | awk -F: '{print $1}')
+
_end_line=$(grep -n "### BINDINGS" ~/.zshrc | awk -F: '{print $1}')
+
_end_line=$(( $_end_line - 2 ))
+
_quit_line=$(( $_end_line + 1 ))
+
sed -n "${_begin_line},${_end_line}p;${_quit_line}q" ~/.zshrc | bat -l zsh
+
_begin_line=$(grep -n "### FUNCTIONS" ~/.zshrc | awk -F: '{print $1}')
+
_end_line=$(grep -n "### FZF" ~/.zshrc | awk -F: '{print $1}')
+
_end_line=$(( $_end_line - 2 ))
+
_quit_line=$(( $_end_line + 1 ))
+
sed -n "${_begin_line},${_end_line}p;${_quit_line}q" ~/.zshrc | bat -l zsh
# Quickly copy the Tailscale install command