Skip to content

Instantly share code, notes, and snippets.

@Neoklosch
Created October 23, 2021 19:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Neoklosch/3d28a2a546e5d2f85e753e2fd516b865 to your computer and use it in GitHub Desktop.
Save Neoklosch/3d28a2a546e5d2f85e753e2fd516b865 to your computer and use it in GitHub Desktop.
Mac Bash alias
# ls aliases
alias l='ls --color'
alias ll='ls -la'
alias lt='l -rt'
alias la='l -A'
alias llt='l -lrt'
alias lla='l -lA'
alias llat='l -lArt'
# helpful aliases
alias starttime='who -b'
alias updateHosts='sudo wget -O /etc/hosts https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts'
# create password
alias createpw='date +%s | sha256sum | base64 | head -c 32 ; echo'
# docker
alias latex='exec docker run --rm -i --user="$(id -u):$(id -g)" --net=none -v "$PWD":/data blang/latex:ubuntu "$@"'
alias gs='docker run --rm -v `pwd`:/app -w /app minidocks/ghostscript -dSAFER -dBATCH -dNOPAUSE -dNOCACHE -sDEVICE=pdfwrite -dPreserveAnnots=false -sOutputFile="$@"'
# uuid
alias getuuid='uuidgen | pbcopy'
# qrcode
alias qrcode="qrcode-terminal"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment