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 / config.yaml
Last active April 23, 2024 08:06
My github-cli config with aliases
# The current version of the config schema
version: 1
# What protocol to use when performing git operations.
# Supported values: ssh, https
git_protocol: https
# What editor gh should run when creating issues, pull requests, etc.
# If blank, will refer to environment.
editor:
@cesalazar
cesalazar / c
Created April 21, 2024 12:35
Open config files in $EDITOR
#!/bin/bash
#
# Provides easy access to editing config files.
files=
list_configs() {
printf "%s\n" "Configs available:" " "
sed -n '/case $i in/,/esac/p' "$0" \
@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 / 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 / userChrome.css
Created May 10, 2024 23:24
Custom userChrome.css for Firefox
/* Hides tabs toolbar
*
* Source:
* https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/hide_tabs_toolbar.css
*/
:root[tabsintitlebar] {
--uc-toolbar-height: 40px;
}
:root[tabsintitlebar][uidensity="compact"] {