Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
coolaj86 opened this issue May 30, 2024 · 0 comments
Open

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

coolaj86 opened this issue May 30, 2024 · 0 comments

Comments

@coolaj86
Copy link
Member

coolaj86 commented May 30, 2024

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/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant