2021-05-19 07:03:21 +00:00
|
|
|
# Application management
|
2023-01-13 07:16:48 +00:00
|
|
|
# Install something bypassing the prompts
|
2021-05-19 04:40:08 +00:00
|
|
|
alias inst='sudo apt-get install -y'
|
2023-01-13 07:16:48 +00:00
|
|
|
# Do a basic update. Ubuntu only
|
2021-05-19 04:40:08 +00:00
|
|
|
alias update='sudo apt-get update -y && sudo apt-get upgrade -y'
|
2023-01-13 07:16:48 +00:00
|
|
|
# Search packages. Ubuntu Only
|
2021-05-18 18:14:51 +00:00
|
|
|
alias pacs='apt-cache search'
|
2023-01-13 07:16:48 +00:00
|
|
|
# Uninstall. Ubuntu only.
|
2021-05-19 04:40:08 +00:00
|
|
|
alias burn='sudo apt-get autoremove'
|
2021-05-18 18:14:51 +00:00
|
|
|
|
2021-05-19 07:03:21 +00:00
|
|
|
# General
|
2023-01-13 07:16:48 +00:00
|
|
|
# Get $HOME quick
|
2021-05-18 18:14:51 +00:00
|
|
|
alias ~='cd ~/'
|
2023-01-13 07:16:48 +00:00
|
|
|
# A Nice display of all files in a directory
|
2023-01-12 06:17:23 +00:00
|
|
|
alias ll='ls -hog'
|
2023-01-13 07:16:48 +00:00
|
|
|
# Above but...different I'm sure
|
2021-05-18 18:14:51 +00:00
|
|
|
alias lsa='ls -lah'
|
2023-01-13 07:16:48 +00:00
|
|
|
# List stuff sorted by size
|
2021-05-18 18:14:51 +00:00
|
|
|
alias lt='ls --human-readable --size -1 -S --classify'
|
2023-01-13 07:16:48 +00:00
|
|
|
# Grep command history fast-like
|
2021-05-18 18:14:51 +00:00
|
|
|
alias gh='history|grep'
|
2023-01-13 07:16:48 +00:00
|
|
|
# lol
|
2021-05-18 18:14:51 +00:00
|
|
|
alias please='sudo'
|
2023-01-13 07:16:48 +00:00
|
|
|
# sometimes it feels good
|
2021-06-02 19:41:20 +00:00
|
|
|
alias fucking='sudo'
|
2023-01-13 07:16:48 +00:00
|
|
|
# Install bat. It's better.
|
2021-05-24 18:04:53 +00:00
|
|
|
alias cat='batcat'
|
2023-01-13 07:16:48 +00:00
|
|
|
# Source this very file
|
|
|
|
alias src='source ~/.bashrc'
|
|
|
|
# Big Boy edit something
|
2022-08-01 18:03:26 +00:00
|
|
|
alias svim='sudo vim'
|
2023-01-13 07:16:48 +00:00
|
|
|
# Ping but with sounds
|
2021-06-22 18:45:35 +00:00
|
|
|
alias ding='ping -i 5 -a'
|
2023-01-13 07:16:48 +00:00
|
|
|
# An extremely useful benchmark script
|
2022-09-19 22:56:31 +00:00
|
|
|
alias yabs='curl -sL yabs.sh | bash'
|
2021-05-18 18:14:51 +00:00
|
|
|
|
2021-05-19 07:03:21 +00:00
|
|
|
# Utilities
|
2023-01-13 07:16:48 +00:00
|
|
|
# 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'
|
2023-01-14 21:38:14 +00:00
|
|
|
|
2023-01-13 07:16:48 +00:00
|
|
|
#opens specified command in new window in screen session
|
2023-01-13 22:32:07 +00:00
|
|
|
alias s='screen -X screen '
|
2023-01-14 21:41:50 +00:00
|
|
|
# press enter to continue. Occasionally useful
|
|
|
|
alias cnfrm='read -p "Press enter to proceed" '
|
2023-01-14 21:38:14 +00:00
|
|
|
|
2023-01-13 07:16:48 +00:00
|
|
|
# A more intense ping for the professional on the go
|
2021-05-19 07:03:21 +00:00
|
|
|
alias pang='ping -i 10 -v -a'
|
2023-01-13 07:16:48 +00:00
|
|
|
# List the mounted things
|
2021-05-19 07:03:21 +00:00
|
|
|
alias mnts='mount | column -t'
|
2023-01-13 07:16:48 +00:00
|
|
|
# The history command but shorter
|
2021-05-24 18:11:13 +00:00
|
|
|
alias h='history'
|
2023-01-13 07:16:48 +00:00
|
|
|
# Type way fewer letters
|
2022-10-11 03:03:29 +00:00
|
|
|
alias doco='docker compose'
|
2023-01-13 07:16:48 +00:00
|
|
|
# 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
|
2022-08-01 18:03:26 +00:00
|
|
|
alias docprune='docker image prune && docker network prune && docker container prune && docker volume prune'
|
2023-01-13 07:16:48 +00:00
|
|
|
# Send things instantly to a pastebin. Pipe other commands into this to share their output.
|
2021-06-22 18:45:35 +00:00
|
|
|
alias bin='nc termbin.com 9999'
|
2023-01-13 07:16:48 +00:00
|
|
|
# Quicker Docker exec
|
|
|
|
alias dex='docker exec'
|
2021-05-19 07:03:21 +00:00
|
|
|
|
|
|
|
# Misc
|
2023-01-13 07:16:48 +00:00
|
|
|
# Get the weather. Put your location after the command
|
|
|
|
alias wttr='ansiweather -u imperial -s false -l'
|
|
|
|
#Read the fucking manual
|
2021-05-24 18:08:29 +00:00
|
|
|
rtfm() { help $@ || info $@ || man $@ || curl "http://cheat.sh/$@"; }
|
2023-01-13 07:16:48 +00:00
|
|
|
# Get your public IP
|
2021-07-15 17:30:37 +00:00
|
|
|
extip(){ ip=$(curl -s http://api.ipify.org);
|
|
|
|
echo "Public IP address is $ip"
|
|
|
|
}
|
2023-01-13 07:16:48 +00:00
|
|
|
# Cheatsheet for linux commands
|
2021-06-02 19:53:58 +00:00
|
|
|
ch() { curl "http://cheat.sh/$@"; }
|
2023-01-13 07:16:48 +00:00
|
|
|
# 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
|
2022-08-01 18:03:26 +00:00
|
|
|
notica() { curl --data "d:$*" "https://noti.toad.city/?VFvu53" ; }
|
2023-01-13 07:16:48 +00:00
|
|
|
|
|
|
|
# A quick lil speedyboi
|
2022-11-15 01:17:33 +00:00
|
|
|
alias speedTest='curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python3 -'
|
2023-01-13 07:16:48 +00:00
|
|
|
# If you're runnng my exact mastodon setup, this will be useful
|
2022-12-05 06:05:00 +00:00
|
|
|
alias tootctl='docker exec -it -w /app/www mastodon bin/tootctl'
|
2023-01-13 07:16:48 +00:00
|
|
|
# HAHAHA Go for it. Hours of fun and profit or ruining all your stuff
|
2023-01-13 22:30:56 +00:00
|
|
|
alias hackingtool='docker run -it --net=host --privileged vgpastor/hackingtool'
|
2023-01-14 21:38:14 +00:00
|
|
|
# Do you need to reboot? Find out here!
|
2023-01-13 06:47:07 +00:00
|
|
|
alias needrs='[ -f /var/run/reboot-required ] && echo "You need to reboot"'
|