So many comments. A Lot of clean up, removing duplicates, etc etc, ad infinitum
This commit is contained in:
parent
f038875e1f
commit
9d17df58dc
@ -1,60 +1,84 @@
|
|||||||
# Application management
|
# Application management
|
||||||
|
# Install something bypassing the prompts
|
||||||
alias inst='sudo apt-get install -y'
|
alias inst='sudo apt-get install -y'
|
||||||
|
# Do a basic update. Ubuntu only
|
||||||
alias update='sudo apt-get update -y && sudo apt-get upgrade -y'
|
alias update='sudo apt-get update -y && sudo apt-get upgrade -y'
|
||||||
|
# Search packages. Ubuntu Only
|
||||||
alias pacs='apt-cache search'
|
alias pacs='apt-cache search'
|
||||||
|
# Uninstall. Ubuntu only.
|
||||||
alias burn='sudo apt-get autoremove'
|
alias burn='sudo apt-get autoremove'
|
||||||
|
|
||||||
# General
|
# General
|
||||||
|
# Get $HOME quick
|
||||||
alias ~='cd ~/'
|
alias ~='cd ~/'
|
||||||
|
# A Nice display of all files in a directory
|
||||||
alias ll='ls -hog'
|
alias ll='ls -hog'
|
||||||
|
# Above but...different I'm sure
|
||||||
alias lsa='ls -lah'
|
alias lsa='ls -lah'
|
||||||
|
# List stuff sorted by size
|
||||||
alias lt='ls --human-readable --size -1 -S --classify'
|
alias lt='ls --human-readable --size -1 -S --classify'
|
||||||
|
# Grep command history fast-like
|
||||||
alias gh='history|grep'
|
alias gh='history|grep'
|
||||||
alias cpv='rsync -ah --info=progress2'
|
# lol
|
||||||
alias please='sudo'
|
alias please='sudo'
|
||||||
|
# sometimes it feels good
|
||||||
alias fucking='sudo'
|
alias fucking='sudo'
|
||||||
|
# Install bat. It's better.
|
||||||
alias cat='batcat'
|
alias cat='batcat'
|
||||||
alias src='source .bashrc'
|
# Source this very file
|
||||||
|
alias src='source ~/.bashrc'
|
||||||
|
# Big Boy edit something
|
||||||
alias svim='sudo vim'
|
alias svim='sudo vim'
|
||||||
|
# Ping but with sounds
|
||||||
alias ding='ping -i 5 -a'
|
alias ding='ping -i 5 -a'
|
||||||
|
# An extremely useful benchmark script
|
||||||
alias yabs='curl -sL yabs.sh | bash'
|
alias yabs='curl -sL yabs.sh | bash'
|
||||||
|
|
||||||
# Utilities
|
# Utilities
|
||||||
alias s='screen -X screen' #opens specified command in new window in screen session
|
# A faster way to do the thing it does
|
||||||
|
alias sysres='sudo systemctl restart'
|
||||||
|
# This one too
|
||||||
|
alias sysup='sudo systemctl enable --now'
|
||||||
|
# Also this one
|
||||||
|
alias sysdn='sudo systemctl disable --now'
|
||||||
|
#opens specified command in new window in screen session
|
||||||
|
alias s='screen -X screen'
|
||||||
|
# A more intense ping for the professional on the go
|
||||||
alias pang='ping -i 10 -v -a'
|
alias pang='ping -i 10 -v -a'
|
||||||
|
# List the mounted things
|
||||||
alias mnts='mount | column -t'
|
alias mnts='mount | column -t'
|
||||||
|
# The history command but shorter
|
||||||
alias h='history'
|
alias h='history'
|
||||||
alias hgrep='history | grep'
|
# Type way fewer letters
|
||||||
alias doco='docker compose'
|
alias doco='docker compose'
|
||||||
alias rscad='sudo systemctl restart caddy'
|
# One of my most used commands. Restart a docker compose situation entirely
|
||||||
|
alias redoco='docker compose down; docker compose up -d'
|
||||||
|
# Regain all that space taken up by projects you abandoned
|
||||||
alias docprune='docker image prune && docker network prune && docker container prune && docker volume prune'
|
alias docprune='docker image prune && docker network prune && docker container prune && docker volume prune'
|
||||||
# Tmux
|
# Send things instantly to a pastebin. Pipe other commands into this to share their output.
|
||||||
alias mux='tmux new -s main'
|
|
||||||
alias ta='tmux -2 a -t'
|
|
||||||
alias tn='tmux -2 new -s'
|
|
||||||
alias bin='nc termbin.com 9999'
|
alias bin='nc termbin.com 9999'
|
||||||
nquick (){ sudo nmap -sV -T4 -O -F --version-light $@; }
|
# Quicker Docker exec
|
||||||
|
alias dex='docker exec'
|
||||||
|
|
||||||
# Misc
|
# Misc
|
||||||
alias wttr='ansiweather -l belleville,illinois -u imperial -s false'
|
# Get the weather. Put your location after the command
|
||||||
|
alias wttr='ansiweather -u imperial -s false -l'
|
||||||
|
#Read the fucking manual
|
||||||
rtfm() { help $@ || info $@ || man $@ || curl "http://cheat.sh/$@"; }
|
rtfm() { help $@ || info $@ || man $@ || curl "http://cheat.sh/$@"; }
|
||||||
|
# Get your public IP
|
||||||
extip(){ ip=$(curl -s http://api.ipify.org);
|
extip(){ ip=$(curl -s http://api.ipify.org);
|
||||||
echo "Public IP address is $ip"
|
echo "Public IP address is $ip"
|
||||||
}
|
}
|
||||||
|
# Cheatsheet for linux commands
|
||||||
ch() { curl "http://cheat.sh/$@"; }
|
ch() { curl "http://cheat.sh/$@"; }
|
||||||
alias sysres='sudo systemctl restart'
|
# You can go to noti.toad.city and generate your own code to get browser notifications. It's all explained there. You'll need to modify this value
|
||||||
alias sysup='sudo systemctl enable --now'
|
|
||||||
alias sysdn='sudo systemctl disable --now'
|
|
||||||
|
|
||||||
notica() { curl --data "d:$*" "https://noti.toad.city/?VFvu53" ; }
|
notica() { curl --data "d:$*" "https://noti.toad.city/?VFvu53" ; }
|
||||||
pb () { curl --form-string "token=azvux186smiqcg4v3zzpzmu1xz7z2y" --form-string "user=P12LJMVt9iJNID7qjDh9G2zCzLO49j" --form-string "message=$*" -s https://api.pushover.net/1/messages.json>/dev/null; }
|
|
||||||
alias archbox='docker exec -it --user archivebox archivebox_archivebox_1 archivebox'
|
|
||||||
alias dex='docker exec'
|
|
||||||
alias speedTest='curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python3 -'
|
|
||||||
alias tootctl='docker exec -it -w /app/www mastodon bin/tootctl'
|
|
||||||
alias redoco='docker compose down; docker compose up -d'
|
|
||||||
alias hackingtool='docker run -it vgpastor/hackingtool'
|
|
||||||
|
|
||||||
|
# A quick lil speedyboi
|
||||||
|
alias speedTest='curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python3 -'
|
||||||
|
# If you're runnng my exact mastodon setup, this will be useful
|
||||||
|
alias tootctl='docker exec -it -w /app/www mastodon bin/tootctl'
|
||||||
|
# HAHAHA Go for it. Hours of fun and profit or ruining all your stuff
|
||||||
|
alias hackingtool='docker run -it vgpastor/hackingtool'
|
||||||
|
#Do you need to reboot? Find out here!
|
||||||
alias needrs='[ -f /var/run/reboot-required ] && echo "You need to reboot"'
|
alias needrs='[ -f /var/run/reboot-required ] && echo "You need to reboot"'
|
||||||
|
Loading…
Reference in New Issue
Block a user