GIT_PAGER= git diff
Gurantees git diff works in a non-interactive way.
GIT_PAGER= git diff
Gurantees git diff works in a non-interactive way.
A Quick Command Reference
Best tmux reference for shortcuts
Replace \n with a comma using -z
Using sed when there are rows that contain multiple lines.
NOTE ABOUT e MANUAL EDITING
how to edit hunks in git reset -p
Changing a user’s default Shell to bash v5
The only way that setting bash v5 works after installing with homebrew
sdiff
Works on mac
readonly TUX=penguinpower
Declare a contant in bash
python -m http.server 8000
quick web server from terminal using python3 http module
function foo { local -n data_ref=$1 echo ${data_ref[a]} ${data_ref[b]} } declare -A data data[a]="Fred Flintstone" data[b]="Barney Rubble" foo data
best way to pass associative arrays as function argument in bash
Use VirtualBox’s Port Forwarding Rules window to forward ports. You don’t have to specify any IP addresses – those two fields are optional.
Port forwarding from the host to the guest in VirtualBox
How To Create a Sudo User on Ubuntu
Creates a user with 'bash' as shell and creates a home directory
list of directories from newsest to oldest
How to install VirtualBox on MacOS
echo "scale=2; 2/3" | bc .
the right way to do math in bash
break : . continue eval exec exit export readonly return set shift trap unset
special built-ins in bash. reserved words.
(set -f; IFS=:; printf "%s\n" $PATH)
best way to split a string into lines in basg
Octa-core (4x2.3 GHz Mongoose & 4x1.6 GHz Cortex-A53)
Galaxy S7 CPU
git commit --amend --author="John Doe <john@doe.org>"
Update the author for a git commit
Samples for 'search and replace in vim'
$ docker network inspect my-bridge-network
CORRECTION $ docker network connect my-bridge-network phpmyadmin
PHP built-in server with sqlite enabled
Docker based PHP development environment