diff options
| author | Marc Vertes <mvertes@free.fr> | 2024-10-23 12:02:22 -0500 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2024-10-23 12:02:22 -0500 |
| commit | 5e3b62288690c896c38068175f21771c3a989b02 (patch) | |
| tree | 3be87e9e6bed97a4048ad8a11547720577a00a30 | |
| parent | 3894336b98831ddf4667f02392f22ce93f72fa1f (diff) | |
update
| -rw-r--r-- | .bashrc | 3 | ||||
| -rwxr-xr-x | bin/gauth | 5 |
2 files changed, 5 insertions, 3 deletions
@@ -5,7 +5,7 @@ export PAGER=less export EDITOR=vim -export HISTIGNORE=ls:ps:history +export HISTIGNORE=2fa:ls:ps:history export HISTCONTROL=ignoreboth:erasedups # no start space and duplicate entries export HISTSIZE=100000 # big big history export HISTFILESIZE=100000 # big big history @@ -73,6 +73,7 @@ alias gob='go build' alias goh='p go help' alias god='p go doc' alias gol='GO111MODULE=off go' +alias golint='golangci-lint run --no-config --disable-all -E' # alias gtr='go test -v -run' alias gtb='go test -v -cpuprofile cpu.out -memprofile mem.out -benchmem -bench' alias gdt='dlv test -- -test.v -test.run' @@ -2,9 +2,10 @@ # Use backup from andOTP #cat ~/otp_accounts.json | +#gpg -qd ~/.otp.gpg | [ "$1" ] && post="grep -i $1" || post=cat -gpg -qd ~/.otp.gpg | +cat ~/.otp_accounts.json | jq -r '.[] | "\(.label) \(.secret) \(.issuer)"' | while read -r l s i; do - printf "%-32s %-10s %s\n" "$l" "$i" "$(oathtool --totp -b "$s")" + printf "%-32s %-14s %s\n" "$l" "$i" "$(oathtool --totp -b "$s")" done | $post |
