14 lines
866 B
Plaintext
14 lines
866 B
Plaintext
alias pubkey='for PUBKEY_FILE in $(ls ~/.ssh/id_*.pub); do echo "${PUBKEY_FILE} :" | sed -e "s/.*id//;s/\.pub//"; cat "${PUBKEY_FILE}"; echo; done'
|
|
alias hosts='sudo nano /etc/hosts'
|
|
alias historygrep='history | grep'
|
|
alias sshconfig='nano ~/.ssh/config'
|
|
alias bashrc='. ~/.bashrc'
|
|
alias sshagent='eval `ssh-agent` && ssh-add ~/.ssh/id_!(*.pub)'
|
|
alias newrepo='bash <(curl -s https://get.bjphoster.com/new-git-repo.sh)'
|
|
alias newansibleworkspace='bash <(curl -s https://get.bjphoster.com/new-ansible-workspace.sh)'
|
|
|
|
alias sambaserver='docker run -it --rm --network host -p 137:137 -p 138:138 -p 139:139 -p 445:445 -v `pwd`:/share dperson/samba -n -p -s "sambashare;/share;yes;no;no;shareuser" -w "WORKGROUP"'
|
|
alias acme.sh='docker run -it --rm -v ~/acme.sh:/acme.sh neilpang/acme.sh'
|
|
alias termbin='nc termbin.com 9999'
|
|
alias dnsversion='dig txt chaos version.bind'
|