-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_aliases
155 lines (129 loc) · 6.56 KB
/
.bash_aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# This goes in .bashrc to source this file
#
#if [ -f ~/.bash_aliases ]; then
# . ~/.bash_aliases
#fi
# EYEQUOTE
alias eyequote='fortune -os -n 200 | cowsay -f eyes -W 50 | lolcat'
#####
# SSH
#####
#alias generatesshkey='ssh-keygen -t ed25519 -a 64 -f ~/.ssh/id_ed25519 -C "$(whoami)@$(uname -n)-$(date -I)"'
#alias sshmint='ssh tech@mint'
#alias sshpi='ssh tech@pi'
#alias sshkitty='ssh tech@kitty'
#alias sshpihole='ssh tech@pihole'
#alias sshlime='ssh -i ~/.ssh/GitHub/id_ed25519 -p 22 [email protected]'
#alias sshmirror='ssh -i ~/.ssh/GitHub/id_ed25519 -p 22 [email protected]'
#alias sshmirrorfwd='ssh -L 8384:127.0.0.1:8384 [email protected] -i ~/.ssh/GitHub/id_ed25519'
#####
# GIT
#####
alias gitpull='pushd ~ && ls -d */ | xargs -I {} bash -c "cd '{}' && pwd && git pull --rebase && echo =-=-=-=-=-=-=-=" ; popd'
# WM RESTART
#alias restartlatte='latte-dock --replace &!'
#alias restartplasma='kquitapp5 plasmashell; plasmashell > /dev/null 2>&1 & disown; sleep 2; exit'
# XEV
alias restartxbindkeys='killall xbindkeys; xbindkeys -p &'
alias xevkb='xev -event keyboard'
# AUDIO
#alias restartpulse='systemctl --user restart pipewire.service pipewire-pulse.socket'
#alias audioroute='pw-jack catia'
# KILL ALL WINE EXES
alias killwine='sudo killall -s 9 wineserver ; pgrep --ignore-case .exe | xargs sudo kill -9'
# KILL ALL DISCORD
alias killdiscord='killall -s 9 Discord'
# DANGEROUS DO NOT USE!!!
#alias updatepip='pip3.9 freeze | cut -d'=' -f1 | xargs -n1 sudo pip3.9 install -U'
##################
# MAKE INTERACTIVE
##################
alias rm='rm -i'
alias mv='mv -i'
alias cp='cp -i'
##############
# COMMON FLAGS
##############
alias ll='ls -Flaghc --color=auto --group-directories-first'
alias filecount='find . -type f | wc -l'
alias grep='grep --color=auto --exclude-dir=\.vscode'
alias grepr='grep --color=auto -r'
alias cls='clear'
alias df='df -h'
alias du='du -ah -d 1'
alias free='free -h'
alias termdown='termdown -c 10 -v en-us -f colossal -q 5 -t "Time Up!"'
alias radeontop='radeontop --color'
alias uptime='uptime --pretty'
alias dirs='dirs -v'
alias tb='nc termbin.com 9999'
alias ytget='yt-dlp --progress --windows-filenames -f bestvideo+bestaudio --embed-metadata --write-subs --no-write-automatic-subs --sub-langs en'
####################
# PACKAGE MANAGEMENT
####################
#alias pss='pacman -Ss'
#alias update='bash /usr/bin/garuda-update && tldr --update'
#alias updateall='sudo powerpill -Syu'
#alias updatekeyring='sudo pacman -Sy archlinux-keyring chaotic-keyring --needed'
#alias mirrorgen='sudo reflector --verbose -c US,CA --connection-timeout 4 --download-timeout 3 --protocol https --age 1 --sort rate --number 350 --fastest 50 --threads 24 --save /etc/pacman.d/mirrorlist'
#alias watchaurto='watch -n 2 systemctl status check-aurto-git-trigger.service check-aurto-git-trigger.timer update-aurto.service update-aurto-startup.timer update-aurto.timer'
#alias aurtobuild='updpkgsums PKGBUILD ; aur build -d aurto --chroot --makepkg-conf=/etc/aurto/makepkg-chroot.conf --pacman-conf=/etc/aurto/pacman-chroot.conf PKGBUILD -f --clean'
#alias aurdeps='aur depends --pkgbase '
#alias aurdepsopt='aur depends --pkgbase --optdepends '
#alias grubup="sudo update-grub"
########
#CHAOTIC
########
#alias chaotichits='curl -N 'http://metrics.chaotic.cx/live/traffic' --resolve metrics.chaotic.cx:CENSORED'
#alias chaoticwatch='curl -N 'http://metrics.chaotic.cx/live/traffic' --resolve metrics.chaotic.cx:80:CENSORED | logstalgia --sync -g 'Chaotic,URI=.+,100' --paddle-mode vhost --no-bounce -'
########################
# AUR Version Comparison
########################
#alias aurver='pacman -Q | aur vercmp'
#alias aurverpretty="aurver | cut -d: -f 1"
#alias aurtopkgsinchaotic="awk '{print $1}' <(paclist aurto)>~/aurtopackages.txt && paclist chaotic-aur | grep -f ~/aurtopackages.txt && rm -f ~/aurtopackages.txt"
#alias aurtopkgsinchaotic="comm -12 <(paclist aurto | sort) <(paclist chaotic-aur | sort)"
# Update mlocate index
#alias updateindex='pacman -Qq mlocate > /dev/null && echo "Updating mlocate index.." && sudo updatedb'
# Remove uninstalled applications from cache, leave 1
#alias cacheclear='sudo paccache -ruk1'
# Find orphans ignoring optionally installed dependencies, pipe to `pacman -R -` to remove
#alias findorphans='comm -23 <(pacman -Qqd | sort -u) <(pacman -Qqe | xargs -n1 pactree -u | sort -u) | comm -23 - <(pacman -Qqttd | sort -u)'
# Find orphans, includes optionally installed dependencies, pipe to `pacman -R -` to remove
#alias findorphandeps='comm -23 <(pacman -Qqd | sort -u) <(pacman -Qqe | xargs -n1 pactree -u | sort -u)'
# DISK MANAGEMENT
#alias diskactivity='iostat -x -k 1'
#alias watchsync='watch -n 1 -d grep -e Dirty: -e Writeback: /proc/meminfo'
# TMUX
#alias ta='tmux attach-session -t'
#######
# XMRIG
#######
#alias minexmr="tmux a -t minexmr.0 2>/dev/null || tmux new-session -d -s minexmr ; tmux detach -s minexmr ; minexmrrun"
#alias minexmrrun="tmux send-keys -t minexmr.0 'cd ~/GitHub/xmrig/build && sudo ./xmrig' Enter"
#alias minexmrupdate="cd ~/GitHub/xmrig && git pull && cd build && cmake .. && make -j$(nproc)"
#############
# XMRIG PROXY
#############
#alias xmrigproxy="tmux a -t xmrigproxy.0 2>/dev/null || tmux new-session -d -s xmrigproxy ; tmux detach -s xmrigproxy ; xmrigproxyrun"
#alias xmrigproxyrun="tmux send-keys -t xmrigproxy.0 'cd ~/GitHub/xmrig-proxy/build && sudo ./xmrig-proxy' Enter"
#alias xmrigproxyupdate="cd ~/GitHub/xmrig-proxy && git pull && cd build && cmake .. && make -j$(nproc)"
########
# REDBOT
########
#alias usejava11="sudo archlinux-java set java-11-openjdk"
#alias techbot="tmux a -t techbot.0 2>/dev/null || tmux new-session -d -s techbot ; tmux detach -s techbot ; techbotrun"
#alias techbotrun="tmux send-keys -t techbot.0 'cd ~ && source ~/redenv/bin/activate && while :; do redbot TechBot; sleep 1; done' Enter"
#alias techbotrun="tmux send-keys -t techbot.0 'cd ~ && pyenv local red && while :; do redbot TechBot; sleep 1; done' Enter"
#FISHSUCKS
#alias techbotrun="tmux send-keys -t techbot.0 'cd ~ && eval "$(pyenv init -)"; eval "$(pyenv init --path)"; export PATH="$PYENV_ROOT/bin:$PATH"; export PYENV_ROOT="$HOME/.pyenv"; pyenv local red && while :; do redbot TechBot; sleep 5; done' Enter"
#alias thestruggle="'eval "$(pyenv init -)"; eval "$(pyenv init --path)"; export PATH="$PYENV_ROOT/bin:$PATH"; export PYENV_ROOT="$HOME/.pyenv"'
#######
# GAMES
#######
#alias gw2='vblank_mode=0 ~/Games/GW2/play.sh'
#alias gw2='cd /home/tech/GitHub/Burrito/ && ./run_burrito_link.sh && sleep 1 && ./burrito.x86_64'
########
# MIRROR
########
#alias restartmirror='pushd /mnt/chaotic/docker-mirror/ && git pull && sudo ./stop && sudo ./run && popd'