Alias Generator
Select
All
None
Download
mdminhazulhaque/alias-generator
adb
adba="adb shell 'pm list packages -3' | sed -e 's/^package://' | sort"
adbd='adb devices'
adbs='adb shell'
adbl='adb logcat'
logcat() { adb logcat --pid $(adb shell ps | grep "$1" | awk '{print $2}'); }
All
None
apt
au='apt update'
ai='apt install'
afu='apt full-upgrade'
ac='apt clean'
aac='apt autoclean'
aar='apt autoremove'
update='apt update && apt -y full-upgrade'
All
None
brew
brin='brew install'
brudt='brew update'
brugd='brew upgrade'
brcu='brew cleanup'
All
None
cd
..='cd ..'
~='cd ~'
All
None
color
red() { echo -e "\e[31m$(cat)\e[0m"; }
green() { echo -e "\e[32m$(cat)\e[0m"; }
yellow() { echo -e "\e[33m$(cat)\e[0m"; }
blue() { echo -e "\e[34m$(cat)\e[0m"; }
magenta() { echo -e "\e[35m$(cat)\e[0m"; }
cyan() { echo -e "\e[36m$(cat)\e[0m"; }
black() { echo -e "\e[30m$(cat)\e[0m"; }
white() { echo -e "\e[97m$(cat)\e[0m"; }
All
None
core
chx="chmod +x"
md='mkdir -p'
cpr="cp -r"
fl='file'
hex="xxd -p"
psa="ps -axo pid,%cpu,%mem,command"
psc="ps -axo pid,command"
realpath="readlink -f"
All
None
cups
printeron() { systemctl start cups; systemctl start cups-browsed; }
printeroff() { systemctl stop cups-browsed; systemctl stop cups; }
All
None
disk
duh='du -hs'
dub='du -b'
dd='dcfldd'
rsync='rsync -rltuDv'
rsyncnodot='rsync -rltDuv --exclude ".*" --delete'
All
None
docker
d="docker"
db="docker build"
de="docker exec"
di="docker images"
din="docker inspect"
dr="docker run"
drit="docker run -it"
drm="docker rm"
ds="docker stop"
dsp="yes | docker system prune"
dsv="yes | docker volume prune"
dc="docker-compose"
dcb="docker-compose build"
dcb="docker-compose up"
dcd="docker-compose down"
All
None
find
ff='find . -type f -iname'
fd='find . -type d -iname'
fe='find . -type f -executable -iname'
ffmin() { find . -type f -size +$1; }
ffmax() { find . -type f -size -$1; }
All
None
git
ga='git add'
gb='git branch'
gc='git commit -m'
gd='git diff'
gck='git checkout'
gcl='git clone'
gcpk='git cherry-pick'
gf='git fetch'
gi='git init'
gl='git log --pretty=oneline'
gl5='git log -5'
gm='git merge'
gpl='git pull'
gps='git push'
gs='git status'
gcl1="git clone -b master --single-branch --depth 1"
gundo="git reset --hard HEAD"
All
None
grep
g='grep --color=auto'
gr='grep --color=auto -r'
gri='grep --color=auto -ri'
gril='grep --color=auto -ril'
grep='grep --color=auto'
fgrep='fgrep --color=auto'
egrep='egrep --color=auto'
hgrep='history | grep'
All
None
jekyll
js='jekyll serve --watch --incremental --trace'
jc='jekyll clean'
jb='jekyll build'
All
None
kubectl
k="kubectl"
kctx="kubectx"
kdd="kubectl delete deployments"
kdp="kubectl delete pods"
kds="kubectl delete services"
kex="kubectl exec -it"
kgd="kubectl get deployments"
kgda="kubectl get deployments --sort-by=.metadata.creationTimestamp"
kgdg="kubectl get deployments | grep"
kgp="kubectl get pods"
kgpa="kubectl get pods --sort-by=.metadata.creationTimestamp"
kgpg="kubectl get pods | grep"
kgs="kubectl get services"
kgsa="kubectl get services --sort-by=.metadata.creationTimestamp"
kgsg="kubectl get services | grep"
klf="kubectl logs -f"
klink="awk '{print \$1\" http://\"\$4}'"
krhd="kubectl rollout history deployment"
krhp="kubectl rollout history pods"
All
None
lang
py='python'
py2='python2'
py3='python3'
rb='ruby'
pl='perl'
rvm='source /usr/share/rvm/scripts/rvm'
All
None
ls
ls="ls --color=auto -pG"
l='ls -1'
ll='ls -alF'
la='ls -1A'
lh='ls -lh'
lr="ls -1t"
All
None
make
mk='make'
mk4='make -j4'
mk8='make -j8'
mkc='make clean'
mkv='make V=s'
mkm='make menuconfig'
All
None
media
yd='youtube-dl --prefer-ffmpeg'
fm='ffmpeg -hide_banner'
fp='ffplay -hide_banner'
All
None
misc
sudo='sudo '
open='xdg-open'
now='date +%Y-%m-%d\ %H:%M:%S'
solat() { sleep $1 && kdialog --msgbox "Solat!!!"; }
repeat() { local n="$1"; shift; while ((n-- > 0)); do "$@"; done; }
All
None
mqtt
pub="mosquitto_pub"
sub="mosquitto_sub -v"
All
None
network
curl='curl -s'
dig='dig +noall +answer'
ping='ping -c 4 -i 0.5'
nsl='nslookup'
ns="netstat -pltn"
s='ssh'
t='telnet'
sshv='ssh -v'
sshk='killall ssh'
sshc='rm -f ~/.ssh/known_hosts'
All
None
osx
nosleep='pmset noidle'
swl='sudo softwareupdate -l'
swu='sudo softwareupdate -via'
All
None
pb
pbcopy='xclip -selection clipboard'
pbpaste='xclip -selection clipboard -o'
All
None
picocom
pc1152="picocom -b115200 /dev/ttyUSB0"
pc5760="picocom -b57600 /dev/ttyUSB0"
All
None
pwgen
pe='apg -a1 -m 16 -M NCL'
ph='apg -a1 -m 16 -M NCLS'
All
None
string
lower="tr 'A-Z' 'a-z'"
upper="tr 'a-z' 'A-Z'"
nospace="tr -d ' '"
title="sed 's/[^ ]\+/\L\u&/g'"
quote="python -c 'import json; import sys; print json.dumps(sys.stdin.read())'"
nocomment="grep -v ^#"
nonewline="grep -v ^$"
b64e="base64"
b64d="base64 -d"
pj='python -m json.tool'
All
None
term
c='clear'
q='exit'
All
None