webinstall / webi-installer-requests

This is just to house issues for requests for new Webi installers.
Mozilla Public License 2.0
5 stars 7 forks source link

Some sort of cli-essentials for basic vps/vm usage #163

Open coolaj86 opened 1 month ago

coolaj86 commented 1 month ago

Like webi-essentials, but broader.

Stuff you need no matter what type of development you're going to do.

The equivalent of:

sudo apt install -y curl fish git htop rsync screen vim xz-utils zip
webi aliasman bat lsd myip pathman rg serviceman ssh-pubkey
if command -v locale-gen 2>/dev/null; then
    sudo locale-gen en_US.UTF-8
fi
if test -f /etc/default/locale; then
    sudo mv /etc/default/locale /etc/default/locale.bak
    echo "LANG=en_US.UTF-8" | sudo tee /etc/default/locale
fi
mkdir -p ~/bin/
pathman add ~/bin/

aliasman alias cat='bat --paging never --pager none --theme Dracula --style=plain'

aliasman alias la='lsd -AF'
aliasman alias ls='lsd -F'
aliasman alias ll='lsd -lAhF'

aliasman alias tree='lsd -F --tree --group-dirs=last'

aliasman alias vi='vim'

aliasman alias rnd16='xxd -c 0 -l 40 -p /dev/urandom'
aliasman alias rnd32='xxd -c 0 -l 256 -p /dev/urandom | xxd -r -ps | base64 | tr -d [:space:]/+_=- | tr -d abcdefghijklmnopqrstuvwxyzILOU | cut -c 1-80'
aliasman alias rnd58='xxd -c 0 -l 256 -p /dev/urandom | xxd -r -ps | base64 | tr -d [:space:]/+_=- | tr -d 0IOl | cut -c 1-80'
aliasman alias rnd62='xxd -c 0 -l 256 -p /dev/urandom | xxd -r -ps | base64 | tr -d [:space:]=+/_- | cut -c 1-80'
aliasman alias rnd64='xxd -c 0 -l 256 -p /dev/urandom | xxd -r -ps | base64 | tr -d [:space:]= | tr + - | tr / _ | cut -c 1-80'

Bonus: dev-essentials:

git config --global url."git@github.com:".insteadOf "https://github.com/"