Skip to content

Instantly share code, notes, and snippets.

View jaagut123's full-sized avatar
💭
I may be slow to respond.

jonel.agutaya jaagut123

💭
I may be slow to respond.
  • Somewhere in Lapu-Lapu City, Philippines
View GitHub Profile
@jaagut123
jaagut123 / 256-colors.sh
Last active August 12, 2023 08:43 — forked from atomize/256-colors.sh
Bash terminal 256 colors escape sequences. The following script display the 256 colors available on some terminals and terminals emulators like XTerm and GNOME Terminal.
#!/bin/bash
# This program is free software. It comes without any warranty, to
# the extent permitted by applicable law. You can redistribute it
# and/or modify it under the terms of the Do What The Fuck You Want
# To Public License, Version 2, as published by Sam Hocevar. See
# http://sam.zoy.org/wtfpl/COPYING for more details.
for mode in {1..7} 9 21; do
echo Mode: $mode
@jaagut123
jaagut123 / gist:ddaf04f8934da6d903d52d04d8a5c33a
Created August 11, 2023 08:45 — forked from khakimov/gist:3558086
Matrix Effect in you terminal
echo -e "\e[1;40m" ; clear ; while :; do echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $(( $RANDOM % 72 )) ;sleep 0.05; done|awk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}'