2022-09-12 14:35:29 +00:00
|
|
|
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'
|
2024-03-24 08:56:26 +00:00
|
|
|
alias taglist='git tag | tr - \~ | sort -V | tr \~ -'
|
2021-01-11 14:25:38 +00:00
|
|
|
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)'
|
2023-03-31 18:25:47 +00:00
|
|
|
alias sshfingerprint='ssh-keygen -lf'
|
2023-10-02 12:38:23 +00:00
|
|
|
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'
|
2021-07-18 16:41:56 +00:00
|
|
|
|
2024-03-24 05:03:51 +00:00
|
|
|
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'
|
2022-08-21 14:19:30 +00:00
|
|
|
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'
|