Favicon of snips.sh

snips.sh

Share code snippets directly from your terminal via SSH. Manage files anonymously, generate time-limited URLs, and view syntax-highlighted code on the web.

Share and manage code snippets directly from your command line using an SSH-powered pastebin. This tool bridges the gap between terminal workflows and web accessibility, allowing you to upload files without installing any additional software. Because it relies entirely on SSH keys for authentication, you can maintain complete anonymity with no sign-ups, passwords, or emails required.

Key benefits include:

  • Zero-install operation: Upload and manage snippets from any machine with an SSH client.
  • Dual interfaces: Navigate your files through a terminal user interface (TUI) or view them on a syntax-highlighted web UI.
  • Time-limited sharing: Create URLs with a Time-To-Live (TTL) for secure, temporary access to sensitive data.
  • Smart language detection: Automatically identify source code languages using built-in machine learning.
  • Self-hosting capabilities: Deploy the lightweight, containerized application on your own infrastructure for total control.

Directory Structure

snips-sh
data
.env
docker-compose.yml

docker-compose.yml

services:
  snips:
    image: ghcr.io/robherley/snips.sh:latest
    container_name: snips
    restart: unless-stopped
    ports:
      - "8080:8080"
      - "2222:2222"
    environment:
      SNIPS_DB_PATH: /data/snips.db
      SNIPS_URL: http://localhost:8080
      SNIPS_HMAC_KEY: ${SNIPS_HMAC_KEY}
    volumes:
      - ./data:/data

.env

SNIPS_HMAC_KEY=generate_a_secure_random_string_here
Categories:

Share:

Ad
Favicon

 

  
 

Similar to snips.sh

Favicon

 

  
  
Favicon

 

  
  
Favicon