Skip to content

Instantly share code, notes, and snippets.

View hrdkmishra's full-sized avatar
💭
im a god

yex hrdkmishra

💭
im a god
View GitHub Profile
@sebastiancarlos
sebastiancarlos / colorcat.bash
Last active October 19, 2023 04:07
Cross-app URL aliases (like shell aliases) powered by Nginx.
#!/usr/bin/env bash
# All my gist code is licensed under the MIT license.
# Video demo: https://www.youtube.com/watch?v=y542zPAPeG4
# colorcat
# - cats a file, but if any line contains N hex colors, it appends the colors
# (rendered as ansi escape sequences) to the end of the line.
# - input can be stdin, a file, or a hex color in plain text