Last active
November 16, 2021 23:11
-
-
Save kiwimato/132649f0839c519bc052b9085a98716f to your computer and use it in GitHub Desktop.
.bashrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Custom stuff | |
# Yubikey | |
#export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh" | |
export GPG_TTY="$(tty)" | |
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) | |
gpgconf --launch gpg-agent | |
# echo "UPDATESTARTUPTTY" | gpg-connect-agent > /dev/null 2>&1 | |
alias ykrestart='gpg-connect-agent updatestartuptty /bye' | |
# Switch between yubikeys with same key on them | |
alias ykswitch='gpg-connect-agent "scd serialno" "learn --force" /bye' | |
# Command to encrypt stuff with both keys | |
# gpg --recv-keys 957F8768371A5FA393998D49CAA44E47EA44A979 0xB94C16F4F383AC5F | |
alias prv8encrypt='gpg2 --encrypt -r 957F8768371A5FA393998D49CAA44E47EA44A979 -r 0xB94C16F4F383AC5F' | |
# Terraform cache for faster init | |
export TF_PLUGIN_CACHE_DIR=~/.tfcache | |
# Some History hacks for a longer bash history | |
export HISTTIMEFORMAT="%h %d %H:%M:%S " | |
export HISTSIZE=100000 | |
shopt -s histappend | |
PROMPT_COMMAND='history -a' | |
# aws-vault | |
export AWS_VAULT_BACKEND=kwallet | |
export AWS_VAULT_PROMPT=ykman | |
#export AWS_VAULT_PROMPT=kdialog | |
#alias ykcode='ykman oath code arn:aws:iam::<ID>:mfa/<user>' | |
alias ykcode='ykman oath accounts code arn:aws:iam::<ID>:mfa/<user>' | |
alias proxy-dacia='ssh dacia.ninja -p 1337 -l root -v -D 3128' | |
alias pacman='sudo pacman' | |
alias clock-to-850mv='sudo amdctl -c 23 -v 112' | |
# Terraform shortcuts | |
alias tp="terraform plan -out terraform.tfplan" | |
alias ta="terraform apply terraform.tfplan" | |
alias tpa="tp;ta" | |
# NodeJS | |
alias nvm-init="source /usr/share/nvm/init-nvm.sh" | |
export EXPOSE_PATH="/home/mihai/pentest/Lynx/exploitable/ExpoSE/"; export PATH=$PATH:$EXPOSE_PATH #EXPOSE_ENTRY | |
export PATH=$PATH:~/go/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment