mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-01-09 11:52:31 +01:00
Compare commits
3 Commits
8e28c013d5
...
3e41121fa6
Author | SHA1 | Date | |
---|---|---|---|
3e41121fa6 | |||
f1fc93414a | |||
b612a16731 |
17
rc/bashrc
17
rc/bashrc
@ -399,9 +399,8 @@ alias cwho="who -H -w -u"
|
||||
#alias inxi-install-root="cd /usr/local/bin;\wget -Nc https://github.com/smxi/inxi/raw/master/inxi;chmod +x inxi;./inxi -U;cd"
|
||||
#alias inxi-update="inxi -U"
|
||||
|
||||
# FINEID
|
||||
#alias ssh-add-fineid="ssh-add -s $(find /usr/*lib -name 'libcryptoki.so')"
|
||||
#alias ssh-add-sc-pub="\ssh-add -L"
|
||||
# FINEID to ssh-agent
|
||||
alias fineid="ssh-add -s /usr/lib64/libcryptoki.so"
|
||||
|
||||
# Homebrew
|
||||
#alias homebrew-install="cd ~;git clone https://github.com/Homebrew/homebrew.git --depth=1;mkdir -p .local;rsync -aP homebrew/* .local;rsync -aP homebrew/.* .local;rm -rf homebrew"
|
||||
@ -525,6 +524,9 @@ then
|
||||
alias alsactl="\alsactl -f ~/.config/asound.state"
|
||||
fi
|
||||
|
||||
# More simple SSH file signing, ~/.ssh/signingkey.pub should be a symlink
|
||||
alias ssh-sign-file="ssh-keygen -Y sign -f ~/.ssh/signingkey.pub -n file"
|
||||
|
||||
# Allow custom aliases to be put in .aliases or .bash_aliases .
|
||||
|
||||
# .aliases
|
||||
@ -785,6 +787,15 @@ myip6 () {
|
||||
fi
|
||||
}
|
||||
|
||||
# Easier verifying of SSH signed files: ssh-verify-file whatever@mikaela.info file.txt
|
||||
# It's assumed that signature of file.txt is called as file.txt.sig
|
||||
sshAllowedSigners=$HOME/src/gitea.blesmrt.net/Mikaela/ssh-allowed_signers/allowed_signers
|
||||
ssh-verify-file () {
|
||||
echo "$1 ${2:?Usage: ssh-verify-file <email> <file-to-verify>}" > /dev/null
|
||||
ssh-keygen -Y verify -f $sshAllowedSigners -I $1 -n file -s $2.sig < $2
|
||||
}
|
||||
|
||||
|
||||
# Source files for miscannellious modifications.
|
||||
|
||||
# acme.sh
|
||||
|
17
rc/zshrc
17
rc/zshrc
@ -376,9 +376,8 @@ alias cwho="who -H -w -u"
|
||||
#alias inxi-install-root="cd /usr/local/bin;\wget -Nc https://github.com/smxi/inxi/raw/master/inxi;chmod +x inxi;./inxi -U;cd"
|
||||
#alias inxi-update="inxi -U"
|
||||
|
||||
# FINEID
|
||||
#alias ssh-add-fineid="ssh-add -s $(find /usr/*lib -name 'libcryptoki.so')"
|
||||
#alias ssh-add-sc-pub="ssh-add -L"
|
||||
# FINEID to ssh-agent
|
||||
alias fineid="ssh-add -s /usr/lib64/libcryptoki.so"
|
||||
|
||||
# Homebrew
|
||||
#alias homebrew-install="cd ~;git clone https://github.com/Homebrew/homebrew.git --depth=1;mkdir -p .local;rsync -aP homebrew/* .local;rsync -aP homebrew/.* .local;rm -rf homebrew"
|
||||
@ -502,6 +501,9 @@ then
|
||||
alias alsactl="\alsactl -f ~/.config/asound.state"
|
||||
fi
|
||||
|
||||
# More simple SSH file signing, ~/.ssh/signingkey.pub should be a symlink
|
||||
alias ssh-sign-file="ssh-keygen -Y sign -f ~/.ssh/signingkey.pub -n file"
|
||||
|
||||
# Allow custom aliases to be put in .aliases or .zsh_aliases .
|
||||
|
||||
# .aliases
|
||||
@ -764,6 +766,15 @@ myip6 () {
|
||||
fi
|
||||
}
|
||||
|
||||
# Easier verifying of SSH signed files: ssh-verify-file whatever@mikaela.info file.txt
|
||||
# It's assumed that signature of file.txt is called as file.txt.sig
|
||||
sshAllowedSigners=$HOME/src/gitea.blesmrt.net/Mikaela/ssh-allowed_signers/allowed_signers
|
||||
ssh-verify-file () {
|
||||
echo "$1 ${2:?Usage: ssh-verify-file <email> <file-to-verify>}" > /dev/null
|
||||
ssh-keygen -Y verify -f $sshAllowedSigners -I $1 -n file -s $2.sig < $2
|
||||
}
|
||||
|
||||
|
||||
# Source files for miscannellious modifications.
|
||||
|
||||
# acme.sh
|
||||
|
Loading…
Reference in New Issue
Block a user