-
Notifications
You must be signed in to change notification settings - Fork 3
/
.bash_aliases
67 lines (51 loc) · 1.64 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
alias fedit_i3b="nano ~/.config/i3/i3blocks.conf"
alias fedit_i3="nano ~/.config/i3/config"
alias fedit_a="nano ~/.bash_aliases"
alias gpp='g++ -Wall'
alias gpp2='g++ -pedantic-errors -Wall -Weffc++ -Wextra -Wsign-conversion -Werror'
alias git_status="git status -sb"
alias git_log="git log --all --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
alias switch2speaker="pactl set-default-sink alsa_output.pci-0000_0a_00.3.analog-stereo"
alias switch2hdmi="pactl set-default-sink alsa_output.pci-0000_08_00.1.hdmi-stereo-extra1"
VPS="BLAHBLAH"
alias vm="ssh $VPS -p 22"
alias irc="vm -t tmux attach-session -t 0"
alias pi="pwd>/tmp/pi"
alias po="cd \`cat /tmp/pi\`"
alias link_extract="grep -shoP 'http.*?[\" >]'"
alias logoff="unset HISTFILE && echo history is OFF"
alias py="python3"
alias bye="exit"
alias x="sudo pm-suspend"
urbandict() {
curl -s "https://api.urbandictionary.com/v0/tooltip?term=${1}" |
python3 -c "import sys, json, html; print(html.unescape(json.load(sys.stdin)['string']).split('\n',2)[1])"
}
webm4ch() {
ffmpeg -i $1 -c:v libvpx -b:v 1M -c:a libvorbis $2
}
0x0() {
curl -F "file=@$1" http://0x0.st
}
ix() {
curl -F "f:l=@$1" ix.io
}
ix2() {
curl -F "f:l=<-" ix.io
}
anon() {
curl -F "file=@$1" https://api.anonfile.com/upload
}
wiki() {
raw_data=$(curl 'http://gopherpedia.com/gopher' --data-raw "url=/gopherpedia.com/${1}")
echo -e $(jq '.["data"]' <<< $raw_data) | tr -d '\\' | grep -v 'span\=' | tail -n +2 | less
}
cpy() {
echo -n $1 | xclip -selection clipboard
}
fuck() {
for i in $(pidof $1)
do
kill -s 9 $i
done
}