personal-linux-config/bashrc_overrides/convenience_aliases

18 lines
1.1 KiB
Plaintext
Raw Normal View History

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'
2022-01-03 09:11:47 +00:00
alias sshconfig='nano ~/.ssh/config'
2022-08-03 06:24:25 +00:00
alias bashrc='. ~/.bashrc'
2022-08-21 14:33:25 +00:00
alias sshagent='eval `ssh-agent` && ssh-add ~/.ssh/id_!(*.pub)'
alias sshfingerprint='ssh-keygen -lf'
alias nocomments='grep -vE "^$|^#|^;"'
2021-07-09 16:39:31 +00:00
alias newrepo='bash <(curl -s https://get.bjphoster.com/new-git-repo.sh)'
2022-02-10 16:41:29 +00:00
alias newansibleworkspace='bash <(curl -s https://get.bjphoster.com/new-ansible-workspace.sh)'
2023-12-17 11:32:32 +00:00
alias infinitenothing='while true; do sleep 1; done'
alias sambaserver='docker run -dit --rm --name sambaserver -p 137:137 -p 138:138 -p 139:139 -p 445:445 -v `pwd`:/share dperson/samba -n -p -u "user;P4ssw0rd" -s "share;/share;yes;no;yes;user;user" -w "WORKGROUP"'
alias sambastop='docker stop sambaserver; docker rm sambaserver'
alias acme.sh='docker run -it --rm -v ~/acme.sh:/acme.sh neilpang/acme.sh'
2021-08-18 09:42:16 +00:00
alias termbin='nc termbin.com 9999'
2022-04-02 14:03:11 +00:00
alias dnsversion='dig txt chaos version.bind'