Add these two lines to ~/.zshrc
autoload -U +X compinit && compinit
autoload -U +X bashcompinit && bashcompinit
pages: | |
- name: Home | |
columns: | |
- size: small | |
widgets: | |
- type: calendar | |
- type: rss | |
limit: 10 | |
collapse-after: 3 |
#!/usr/bin/env bash | |
# Access the LXC container | |
pct enter <container_id> | |
# Navigate to the Homarr installation directory | |
cd /opt/homarr | |
# Access the SQLite database | |
sqlite3 /opt/homarr/database |
#!/usr/bin/env bash | |
set -e | |
# Function to log errors | |
log_error() { | |
echo "ERROR: $1" >&2 | |
} | |
# Function to log info |
#!/bin/bash | |
# Define variables | |
DOWNLOAD_URL="https://downloads.1password.com/linux/tar/stable/aarch64/1password-latest.tar.gz" | |
INSTALL_DIR="/opt/1Password" | |
DESKTOP_FILE="~/.local/share/applications/1password.desktop" | |
ICON_PATH="$INSTALL_DIR/resources/icons/1password.png" | |
# Function to print status messages |
Add these two lines to ~/.zshrc
autoload -U +X compinit && compinit
autoload -U +X bashcompinit && bashcompinit
// ==UserScript== | |
// @name Claude AI MathJax Renderer | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Render LaTeX math formulas on the page using MathJax | |
// @match https://claude.ai/* | |
// @grant none | |
// ==/UserScript== | |
(function() { |
data: text / html; | |
charset = utf - 8, < !doctype html > < title > texed < /title><style>a,input{display:none}button,label{position:absolute;right:0;transform:translateY(-50%);box-sizing:border-box;width:3em;border-color:%23777;color:%23ddd;background:%23555;text-align:center;font:10pt sans-serif;cursor:pointer}input:checked+label{color:%237f7}</style > < body style = margin: 0; | |
background: % 23333 onload = t.focus() > < input id = f type = file > < a id = a download = text.txt > < /a><label id=g title="Text length in characters" style=top:10vh;width:3.75em;background:transparent;word-wrap:break-word;font-size:8pt;cursor:auto>0</label > < input id = w type = checkbox checked onchange = t.style.whiteSpace = w.checked && 'pre-wrap' || 'pre' > < label | |
for = w title = "Toggle word-wrap" | |
style = "top:25vh;padding:.2em 0" > Wrap < /label><button title="New text" style=top:40vh onclick="(!t.value||confirm('Clear existing text?'))&&(t.value='');l.dc=false;l.textContent='LF';t.focus()">New</button > < button title = "L |
// ==UserScript== | |
// @name Story Rank Changes for HN | |
// @namespace http://tampermonkey.net/ | |
// @version 0.0.1 | |
// @description Enhance Hacker News experience with real-time story rank changes and new story icon for quick, visual navigation | |
// @author melashri | |
// @match https://news.ycombinator.com/ | |
// @match https://news.ycombinator.com/news | |
// @match https://news.ycombinator.com/news?p=* | |
// @match https://news.ycombinator.com/?p=* |
### Color scheme and line styles | |
# | |
# The default color scheme is the one from Mathematica | |
# https://mathematica.stackexchange.com/questions/54629/what-are-the-standard-colors-for-plots-in-mathematica-10 | |
# | |
# Additional line style takes from | |
# https://matplotlib.org/stable/gallery/lines_bars_and_markers/linestyles.html | |
# | |
axes.prop_cycle : (cycler('color', ['5d81b4', 'e09b24', '8eb031', 'eb6235', '8678b2', 'c46e1a', '5c9dc7', 'ffbf00', 'a5609c']) + cycler('ls', ['-', '--', '-.', (0, (1,0.85)), (0, (3, 1, 1, 1, 1, 1)), (0, (3, 1, 1, 1)), (0, (5, 1)), ':', (4, (10, 3))])) |
# Check if we are on an SSH connection | |
if [ -n "$SSH_CONNECTION" ]; then | |
# Check if this is not a VSCode SSH session | |
if [ -z "$VSCODE_SSH_SESSION" ]; then | |
# Check if tmux is not already running | |
if [ -z "$TMUX" ]; then | |
# Check if the session is interactive (terminal attached) | |
if [ -t 1 ]; then | |
# Extract client IP and port from SSH_CONNECTION | |
client_ip=$(echo $SSH_CONNECTION | awk '{print $1}') |