### Install espanso on macOS Source: https://openshovelshack.com/tools/espanso Installs espanso using the Homebrew package manager on macOS. This is the recommended method for macOS users to get started with espanso. ```bash brew install espanso ``` -------------------------------- ### Install yazi on Windows with winget Source: https://openshovelshack.com/tools/yazi Installs yazi and its recommended optional dependencies on Windows using the winget package manager. This is an alternative installation method for Windows users. ```bash winget install sxyazi.yazi # Install the optional dependencies (recommended): winget install Gyan.FFmpeg 7zip.7zip jqlang.jq sharkdp.fd BurntSushi.ripgrep.MSVC junegunn.fzf ajeetdsouza.zoxide ImageMagick.ImageMagick ``` -------------------------------- ### Install atuin CLI Tool Source: https://openshovelshack.com/tools/atuin Installs the atuin command-line interface using a secure curl script. This command downloads and executes the official installation script, setting up atuin on your system. ```bash curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh ``` -------------------------------- ### Install yazi on Windows with Scoop Source: https://openshovelshack.com/tools/yazi Installs yazi and its recommended optional dependencies (ffmpeg, 7zip, jq, etc.) on Windows using the Scoop package manager. Ensure Scoop is installed and configured before running. ```bash scoop install yazi # Install the optional dependencies (recommended): scoop install ffmpeg 7zip jq poppler fd ripgrep fzf zoxide resvg imagemagick ``` -------------------------------- ### Install yazi on Ubuntu/Debian from Source Source: https://openshovelshack.com/tools/yazi Installs yazi on Debian/Ubuntu systems by building from source using Rustup and Cargo. This method is necessary due to the lack of official apt packages and requires Rust to be installed. ```bash curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh rustup update cargo install --locked yazi-fm yazi-cli ``` -------------------------------- ### espanso Configuration File Example Source: https://openshovelshack.com/tools/espanso An example of how to configure espanso using YAML files. This snippet shows a common pattern for defining shortcuts that expand to commands or text. ```yaml snippet: # Trigger: :esp # Expands to: nvim ~/.config/espanso/match/commandline.yml - trigger: ":esp" replace: "nvim ~/.config/espanso/match/commandline.yml" # Trigger: :gcp # Expands to: git clone - trigger: ":gcp" replace: "git clone {{clipboard}}" # Trigger: :tag # Expands to: current date in YYYYMMDD format - trigger: ":tag" replace: "{{date:YYYYMMDD}}" # Trigger: :kw # Expands to: Current week number (German format) - trigger: ":kw" replace: "Kalenderwoche {{date:W}}" ``` -------------------------------- ### Install tmux on macOS Source: https://openshovelshack.com/tools/tmux Provides the command to install tmux using Homebrew, a popular package manager for macOS. Homebrew simplifies the installation of command-line tools and applications. ```bash brew install tmux ``` -------------------------------- ### List Installed yazi Plugins Source: https://openshovelshack.com/tools/yazi Lists all currently installed plugins and flavors for the yazi file manager using the `ya pkg list` command. This command is run from the yazi configuration directory. ```bash ya pkg list ``` -------------------------------- ### Install tmux on Ubuntu/Debian Source: https://openshovelshack.com/tools/tmux Provides the command to install tmux on Debian-based Linux distributions using the apt package manager. This command fetches and installs the tmux package from the distribution's repositories. ```bash sudo apt install tmux ``` -------------------------------- ### Install yazi on macOS with Homebrew Source: https://openshovelshack.com/tools/yazi Installs the yazi file manager using the Homebrew package manager on macOS. This is the recommended method for macOS users. ```bash brew install yazi ``` -------------------------------- ### Self-host atuin Sync Server with Docker Compose Source: https://openshovelshack.com/tools/atuin Example docker-compose.yml for setting up a self-hosted atuin sync server. It configures Traefik as a reverse proxy with SSL and PostgreSQL as the database backend. ```yml services: reverse-proxy: image: traefik:v3.2 command: - "--log.level=ERROR" - "--api.dashboard=false" - "--providers.docker" - "--providers.docker.exposedbydefault=false" - "--entryPoints.websecure.address=:443" - "--certificatesresolvers.myresolver.acme.tlschallenge=true" - "--certificatesresolvers.myresolver.acme.email=youremail@example.com" # Change to your Email address - "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json" - "--entrypoints.web.address=:80" - "--entrypoints.web.http.redirections.entrypoint.to=websecure" - "--entrypoints.web.http.redirections.entrypoint.scheme=https" labels: - "traefik.http.routers.traefik.rule=Host(`subdomain.example.com`)" # Replace with your domain/subdomain - "traefik.http.routers.traefik.entrypoints=websecure" - "traefik.http.routers.traefik.tls.certresolver=myresolver" ports: - "80:80" - "443:443" - "8080:8080" volumes: - letsencrypt:/letsencrypt - /var/run/docker.sock:/var/run/docker.sock networks: - proxy atuin: restart: always image: ghcr.io/atuinsh/atuin:v18.4.0 command: server start volumes: - "~/atuin:/config" links: - postgresql:db environment: ATUIN_HOST: "0.0.0.0" ATUIN_OPEN_REGISTRATION: "true" ATUIN_DB_URI: postgres://$ATUIN_DB_USERNAME:$ATUIN_DB_PASSWORD@db/$ATUIN_DB_NAME RUST_LOG: info,atuin_server=debug labels: - "traefik.enable=true" - "traefik.http.routers.atuin.rule=Host(`atuin.example.com`)" # Replace with your domain/subdomain where you want to reach your atuin server - "traefik.http.routers.atuin.entrypoints=websecure" - "traefik.http.routers.atuin.tls.certresolver=myresolver" - "traefik.http.services.atuin.loadbalancer.server.port=8888" networks: - proxy postgresql: image: postgres:14 restart: unless-stopped volumes: - "./database:/var/lib/postgresql/data/" environment: POSTGRES_USER: ${ATUIN_DB_USERNAME} POSTGRES_PASSWORD: ${ATUIN_DB_PASSWORD} POSTGRES_DB: ${ATUIN_DB_NAME} networks: - proxy volumes: letsencrypt: networks: proxy: external: true ``` -------------------------------- ### Start and Manage tmux Sessions Source: https://openshovelshack.com/tools/tmux Demonstrates basic tmux operations: starting a session, creating new windows, switching between them, detaching from a session, and re-attaching. This allows for persistent terminal sessions that continue running even after closing the terminal or disconnecting. ```bash tmux # Start an infinite process in the background i=1; while true; do echo $i; ((i++)); sleep 1; done # Create a new window (press Ctrl-b then c) # Switch back to the previous window (press Ctrl-b then l) # Detach from the current session (press Ctrl-b then d) # To re-attach to the detached session: tmux a ``` -------------------------------- ### espanso Advanced Features Source: https://openshovelshack.com/tools/espanso Demonstrates advanced espanso features like using clipboard content, executing scripts, and dynamic date formatting within text expansions. ```APIDOC espanso Features: - Triggering scripts: Execute bash, python, or other command-line scripts and paste their output. Example: Triggering a script that returns the current date. - Clipboard Integration: Utilize the content of the system clipboard within your expansions. Example: `:gcp` expands to `git clone {{clipboard}}`. - Dynamic Variables: Use built-in variables for date, time, and custom variables. Example: `{{date:YYYYMMDD}}` for current date, `{{clipboard}}` for clipboard content. - Forms: Create interactive forms for user input within expansions. - Image Support: Paste images directly into text expansions. - Cursor Positioning: Specify where the cursor should be placed after expansion. - Menu Selection: Define multiple replacements for a single trigger, presenting a menu to the user. ``` -------------------------------- ### Generating Python Code Snippets with AI Source: https://openshovelshack.com/blog/everythin-everywhere-all-at-once This snippet demonstrates the author's initial fascination with AI's capability to produce functional code. It highlights how AI tools can provide solutions for specific programming problems, reducing the need to sift through extensive documentation or forums. ```python def greet(name): return f"Hello, {name}!" # Example usage: print(greet("World")) ``` -------------------------------- ### Configure Tmux Plugins with TPM Source: https://openshovelshack.com/tools/tmux This snippet shows how to configure various tmux plugins by adding their repository paths to the tmux.conf file, typically managed by the tmux plugin manager (tpm). It lists plugins for navigation, session management, and customization. ```bash ~/.config/tmux/tmux.conf set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'christoomey/vim-tmux-navigator' set -g @plugin 'tmux-plugins/tmux-yank' set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @plugin 'tmux-plugins/tmux-yank' set -g @plugin 'tmux-plugins/tmux-open' set -g @plugin 'tmux-plugins/tmux-copycat' set -g @plugin 'catppuccin/tmux#latest' set -g @plugin 'tmux-plugins/tmux-cpu' set -g @plugin 'tmux-plugins/tmux-b' set -g @plugin 'laktak/extrakto' set -g @plugin 'omerxx/tmux-sessionx' set -g @plugin 'tmux-plugins/tmux-logging' set -g @plugin 'realbogart/tmux-telescope' set -g @plugin 'alexwforsythe/tmux-which-key' ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.