deleted deprecated functions
This commit is contained in:
parent
621ddac333
commit
b56c020c9d
@ -59,7 +59,6 @@ case "$ID" in
|
|||||||
# Add any other distribution-specific aliases here
|
# Add any other distribution-specific aliases here
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# General
|
# General
|
||||||
# Get $HOME quick
|
# Get $HOME quick
|
||||||
alias ~='cd $HOME;clear'
|
alias ~='cd $HOME;clear'
|
||||||
@ -85,7 +84,6 @@ alias svim='sudo vim'
|
|||||||
alias ding='ping -i 5 -a'
|
alias ding='ping -i 5 -a'
|
||||||
# An extremely useful benchmark script
|
# An extremely useful benchmark script
|
||||||
alias yabs='curl -sL yabs.sh | bash'
|
alias yabs='curl -sL yabs.sh | bash'
|
||||||
|
|
||||||
# Utilities
|
# Utilities
|
||||||
# A faster way to do the thing it does
|
# A faster way to do the thing it does
|
||||||
alias sysres='sudo systemctl restart'
|
alias sysres='sudo systemctl restart'
|
||||||
@ -93,35 +91,21 @@ alias sysres='sudo systemctl restart'
|
|||||||
alias sysup='sudo systemctl enable --now'
|
alias sysup='sudo systemctl enable --now'
|
||||||
# Also this one
|
# Also this one
|
||||||
alias sysdn='sudo systemctl disable --now'
|
alias sysdn='sudo systemctl disable --now'
|
||||||
|
|
||||||
#opens specified command in new window in screen session
|
#opens specified command in new window in screen session
|
||||||
alias s='screen -X screen '
|
alias s='screen -X screen '
|
||||||
# Resume screen or create a new one named main
|
# Resume screen or create a new one named main
|
||||||
alias scr='screen -r || screen -S main'
|
alias scr='screen -r || screen -S main'
|
||||||
# press enter to continue. Occasionally useful
|
# press enter to continue. Occasionally useful
|
||||||
alias cnfrm='read -p "Press enter to proceed" '
|
alias cnfrm='read -p "Press enter to proceed" '
|
||||||
|
|
||||||
# A more intense ping for the professional on the go
|
# 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
|
# List the mounted things
|
||||||
alias mnts='mount | column -t'
|
alias mnts='mount | column -t'
|
||||||
# The history command but shorter
|
# The history command but shorter
|
||||||
alias h='history'
|
alias h='history'
|
||||||
|
|
||||||
# Misc
|
# Misc
|
||||||
# Get the weather. Put your location after the command
|
# Get the weather. Put your location after the command
|
||||||
alias wttr='ansiweather -u imperial -s false -l'
|
alias wttr='ansiweather -u imperial -s false -l'
|
||||||
##Read the fucking manual
|
|
||||||
#rtfm() { help $@ || info $@ || man $@ || curl "http://cheat.sh/$@"; }
|
|
||||||
## Get your public IP
|
|
||||||
#extip(){ ip=$(curl -s http://api.ipify.org);
|
|
||||||
# echo "Public IP address is $ip"
|
|
||||||
#}
|
|
||||||
## Cheatsheet for linux commands
|
|
||||||
#ch() { curl "http://cheat.sh/$@"; }
|
|
||||||
## 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
|
|
||||||
#notica() { curl --data "d:$*" "https://noti.toad.city/?VFvu53" ; }
|
|
||||||
#
|
|
||||||
# A quick lil speedyboi
|
# A quick lil speedyboi
|
||||||
alias speedTest='curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python3 -'
|
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
|
# If you're runnng my exact mastodon setup, this will be useful
|
||||||
@ -131,81 +115,5 @@ alias hackingtool='docker run -it --net=host --security-opt seccomp=unconfined -
|
|||||||
# Do you need to reboot? Find out here!
|
# 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"'
|
||||||
alias gitgraph='git log --graph --oneline --decorate'
|
alias gitgraph='git log --graph --oneline --decorate'
|
||||||
## Countdown Timer
|
|
||||||
#countdown() {
|
|
||||||
# start="$(( $(date '+%s') + $1))"
|
|
||||||
# while [ $start -ge $(date +%s) ]; do
|
|
||||||
# time="$(( $start - $(date +%s) ))"
|
|
||||||
# printf '%s\r' "$(date -u -d "@$time" +%H:%M:%S)"
|
|
||||||
# sleep 0.1
|
|
||||||
# done
|
|
||||||
#}
|
|
||||||
## Random quote to avoid making useful commit messages
|
|
||||||
#function rgcm() {
|
|
||||||
# api="https://whatthecommit.com/index.txt"
|
|
||||||
# message=$(curl -s $api)
|
|
||||||
# if [[ -z $message ]]; then
|
|
||||||
# echo "Error: Failed to retrieve a random commit message"
|
|
||||||
# return 1
|
|
||||||
# fi
|
|
||||||
# git add .
|
|
||||||
# git commit -m "$message"
|
|
||||||
# echo "Git commit submitted with message: $message"
|
|
||||||
#}
|
|
||||||
#function cntdn() {
|
|
||||||
# local count=$1
|
|
||||||
# while [ $count -gt 0 ]; do
|
|
||||||
# echo -en "\n$count... "
|
|
||||||
# if [ $count -eq 3 ]; then
|
|
||||||
# echo "You've still got a few seconds to live it up before your time runs out!"
|
|
||||||
# elif [ $count -eq 2 ]; then
|
|
||||||
# echo "Tick-tock, tick-tock, time's running out!"
|
|
||||||
# elif [ $count -eq 1 ]; then
|
|
||||||
# echo "You had a good run, but it's time to face the music!"
|
|
||||||
# fi
|
|
||||||
# sleep 1
|
|
||||||
# ((count--))
|
|
||||||
# done
|
|
||||||
# echo "Time's up!"
|
|
||||||
#}
|
|
||||||
#
|
|
||||||
#function ramdisk() {
|
|
||||||
# if [ -z "$1" ]; then
|
|
||||||
# echo "Error: Ramdisk size not specified."
|
|
||||||
# return 1
|
|
||||||
# fi
|
|
||||||
# if [ ! -d "$HOME/ramdown" ]; then
|
|
||||||
# mkdir "$HOME/ramdown"
|
|
||||||
# fi
|
|
||||||
#
|
|
||||||
# size="$1"
|
|
||||||
#
|
|
||||||
# sudo mount -t tmpfs -o size="$size" tmpfs "$HOME/ramdown"
|
|
||||||
#}
|
|
||||||
#
|
|
||||||
#ipin() {
|
|
||||||
# local ip=$1
|
|
||||||
# local endpoint="https://ipinfo.io"
|
|
||||||
# # Append IP to the endpoint if provided
|
|
||||||
# if [[ -n $ip ]]; then
|
|
||||||
# endpoint+="/$ip"
|
|
||||||
# fi
|
|
||||||
# endpoint+="/json?token=4ea2457429bf23"
|
|
||||||
# # Make the API call and prettify the JSON response
|
|
||||||
# curl -s "$endpoint" | jq .
|
|
||||||
#}
|
|
||||||
## Tere function
|
|
||||||
#tere() {
|
|
||||||
# local result=$(command tere "$@")
|
|
||||||
# [ -n "$result" ] && cd -- "$result"
|
|
||||||
#}
|
|
||||||
## Compress files. Like the name says.
|
|
||||||
#function compress_files() {
|
|
||||||
# if [ -z "$1" ]; then
|
|
||||||
# echo "Usage: compress_files <archive_name.zip> <file1> <file2> ..."
|
|
||||||
# else
|
|
||||||
# zip -r "$1" "${@:2}"
|
|
||||||
# fi
|
|
||||||
#}
|
|
||||||
## See open ports
|
## See open ports
|
||||||
alias ports='netstat -tuln '
|
alias ports='netstat -tuln '
|
||||||
|
Loading…
Reference in New Issue
Block a user