Skip to content

Instantly share code, notes, and snippets.

View minamaged113's full-sized avatar
๐Ÿƒ
Improving...

Mina Gabriel minamaged113

๐Ÿƒ
Improving...
View GitHub Profile
@minamaged113
minamaged113 / pcolor.sh
Created July 12, 2021 08:25
simple bash function for displaying multicolor output.
function pcolor() {
red=$'\e[1;31m'
grn=$'\e[1;32m'
yel=$'\e[1;33m'
blu=$'\e[1;34m'
mag=$'\e[1;35m'
cyn=$'\e[1;36m'
end=$'\e[0m'
printf "${!1}%-6s\n${end}" "$2"
@simonw
simonw / how-to.md
Last active October 20, 2025 13:16
How to create a tarball of a git repository using "git archive"
@runswithd6s
runswithd6s / getopt-boilerplate.sh
Last active October 24, 2021 07:28
BASH Script Boilerplate
#!/usr/bin/env bash
################################################################################
# Boilerplate Shell Script with getopt parsing
#
# This script is released to the Public Domain by Chad Walstrom
# Chad Walstrom <[email protected]>.
################################################################################
NOACT=0
NAME=$(basename $0|sed 's/\(\..*\)$//')
VERSION="0.1"