Skip to content

Instantly share code, notes, and snippets.

@boricj
boricj / git-proxy-cache.sh
Created May 24, 2024 21:58
git-proxy-cache
#!/bin/bash
set -e
#
# Git read-only remote cache for SSH.
#
# This script is to be used as a shell for a dedicated Git user. Each time a
# clone/pull is attempted on the cache, it will either:
# * fetch everything from the remote if it has already been cloned, or
# * attempt to clone the remote.
@fnky
fnky / ANSI.md
Last active February 20, 2026 03:35
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27