Skip to content

Instantly share code, notes, and snippets.

View cesalazar's full-sized avatar
👾
404 - Status not found

Carlos E. Salazar cesalazar

👾
404 - Status not found
View GitHub Profile
@cesalazar
cesalazar / bash-colors.md
Created May 3, 2024 11:50 — forked from JBlond/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@cesalazar
cesalazar / bash_strict_mode.md
Created April 22, 2024 23:58 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation
@cesalazar
cesalazar / user-overrides.js
Created August 6, 2022 11:37 — forked from MagicalDrizzle/user-overrides-general.js
my personal overrides for every new firefox profile
/* my overrides */
// https://github.com/arkenfox/user.js/
/* override recipe: enable session restore ***/
/* 0102: set startup page [SETUP-CHROME]
* 0=blank, 1=home, 2=last visited page, 3=resume previous session
* [NOTE] Session Restore is cleared with history (2811, 2812), and not used in Private Browsing mode
* [SETTING] General>Startup>Restore previous session ***/
user_pref("browser.startup.page", 3);
/* 1003: disable storing extra session data [SETUP-CHROME]
@cesalazar
cesalazar / gist:3d21b83101f3c0a02424bbf847158bc7
Created November 5, 2020 21:54 — forked from jsjohnst/gist:68455
Bash profile options for color and vi mode
# useful general .bash_profile tweaks for color loving VI fans
export TERM=xterm-color
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;36'
export CLICOLOR=1
alias ls='ls -G'
export LS_COLORS='di=1:fi=0:ln=31:pi=5:so=5:bd=5:cd=5:or=31:mi=0:ex=35:*.rb=90'
export COLOR_NC='\e[0m' # No Color
export COLOR_WHITE='\e[1;37m'
export COLOR_BLACK='\e[0;30m'
@cesalazar
cesalazar / ssh-host-color.sh
Last active January 7, 2016 04:24
Set the tab AND background color of iTerm based on ssh-host
#!/bin/bash
#
# (1) copy to: ~/ssh-host-color
# (2) set: alias ssh=~/ssh-host-color
# iTerm2 window color commands
term-bgcolor(){
local R=$1
local G=$2
local B=$3