Skip to content

Instantly share code, notes, and snippets.

@bahamas10
bahamas10 / termcap.bash
Last active May 24, 2026 17:07
Colorize Manpages on the Terminal
# annotated by dave eddy (@yousuckatprogramming)
# explained - https://youtu.be/D0sG2fj0G4Y
# borrowed heavily from https://grml.org
# Begin blinking text mode
# I just use bold red here since my terminal has blinking disabled
export LESS_TERMCAP_mb=$'\e[1;31m'
# Begin bold text mode
export LESS_TERMCAP_md=$'\e[1;31m'
@goldcoders
goldcoders / .tmux.conf
Last active March 31, 2022 12:39
tmux alacritty combo
# INSTALL
# cp tmuxconf ~/.tmux.conf
#
# Set prefix key to c-a instead of default c-b
# Tmux Overried Keybinding on Alacritty
# Vim Workflow Goodness
unbind C-b
set -g prefix C-a
bind C-a send-prefix
@dceddia
dceddia / symbolicate.rb
Created June 26, 2021 18:58
Symbolicate a macOS crash report from Sentry
#!/usr/bin/env ruby
# colorization without needing a gem
class String
def colorize(color_code)
"\e[#{color_code}m#{self}\e[0m"
end
def red
colorize(31)
@fnky
fnky / ANSI.md
Last active May 28, 2026 03:24
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

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