-
Notifications
You must be signed in to change notification settings - Fork 1
/
aliases
33 lines (26 loc) · 1.06 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
#!/bin/bash
alias cls="echo -ne '\033c'"
alias sl='sl -e'
alias ls='ls --file-type --color=tty --group-directories-first'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
# git
alias gs='git status -sb'
alias ga='git add'
alias gc='git commit -m'
alias gl='git log'
# mac-only
alias qlf='qlmanage -p "$1" >& /dev/null'
# utilities
alias myip='curl ipconfig.io'
#alias nano='$HOME/.dotfiles/bin/fileWritable.sh nano'
alias tb="nc termbin.com 9999 | pbcopy"
alias anonymise-git='FILTER_BRANCH_SQUELCH_WARNING=1 git filter-branch -f --env-filter "[email protected]; [email protected];" HEAD'
idnr () { python -c "print('$1'.decode('utf-8').encode('idna'))"}
idn () { python -c "print('$1'.encode('idna').decode('utf-8'))" }
genSecret () { tr -dc A-Za-z0-9 < /dev/urandom | head -c${1:-32} }
digg() {
UPPER=$(echo $2 | tr '[:lower:]' '[:upper:]')
TYPE=$([ "$2" != "" ] && echo "-t$UPPER" || echo "-tA")
dig +nostats +nocomments +nocmd +noquestion +recurse $1 $TYPE @1.1.1.1
}