-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.aliases
61 lines (45 loc) · 1.48 KB
/
.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
#!/usr/bin/env bash
alias ll='ls -alF'
alias la='ls -lahF'
alias l='ls -CF'
alias lsd="ls -lhF --color | grep --color=never '^d'"
# Allow aliases to be with sudo
alias sudo="sudo "
alias dl="cd ~/Downloads"
alias dt="cd ~/Desktop"
alias p="cd ~/projects"
alias h="history"
# Concatenate and print content of files (add line numbers)
alias catn="cat -n"
alias sniff="sudo ngrep -d 'en1' -t '^(GET|POST) ' 'tcp and port 80'"
# Stopwatch
alias timer='echo "Timer started. Stop with Ctrl-D." && date && time cat && date'
# Public address
alias pubip="dig +short txt ch whoami.cloudflare @1.0.0.1 | tr -d '\"'"
# Local address
alias localip='ip r | grep '^default' | awk '\''{print $9, $5}'\'''
if [ "$(uname -s)" == "Linux" ]; then
# Open new tab in mate terminal
alias tab="gnome-terminal --tab"
alias pbcopy='xclip -selection clipboard'
alias pbpaste='xclip -selection clipboard -o'
fi
# Python
alias python="python3"
alias pyserver="python3 -m http.server"
# Vagrant
alias vs="vagrant ssh"
alias vd="vagrant destroy"
# Generate self-signed certificates
alias self_cert="openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout server.key -out server.pem"
# Flush Directory Service cache
alias flushdns="dscacheutil -flushcache"
# Kubernetes
alias kubegetcon='kubectl config get-contexts'
alias kubecurcon='kubectl config current-context'
alias kubegp='kubectl get pods'
alias kubegpa='kubectl get pods --all-namespaces'
alias k=kubecolor
#alias k='kubectl'
alias kx='kubectx'
alias kn='kubens'