Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
antipasta committed Sep 23, 2021
1 parent 4e2e45a commit 677e466
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
20 changes: 13 additions & 7 deletions bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -152,17 +152,23 @@ function vpnconnect() {
}

function bwvpnconnect() {
echo $(bw get username "$1.vpn") > $HOME/vpn/$1.tblk/Contents/Resources/creds.txt
VPNPASS=$(bw get password "$1.vpn")
VPNOTP=$(bw get totp $1)
echo "$VPNPASS$VPNOTP" >> $HOME/vpn/$1.tblk/Contents/Resources/creds.txt
docker start $1 && sleep 1 && rm $HOME/vpn/$1.tblk/Contents/Resources/creds.txt && echo "connected to $1"
SERVER=$1
echo $(bw get username "$SERVER.vpn") > $HOME/vpn/$SERVER.tblk/Contents/Resources/creds.txt
VPNPASS=$(bw get password "$SERVER.vpn")
VPNOTP=$(bw get totp $SERVER)
echo "$VPNPASS$VPNOTP" >> $HOME/vpn/$SERVER.tblk/Contents/Resources/creds.txt
docker start $SERVER && sleep 1 && rm $HOME/vpn/$SERVER.tblk/Contents/Resources/creds.txt && echo "connected to $SERVER"
}

function sfvpn() {
local bw_session=$(bw unlock --raw)
if [ -z "${BW_SESSION}" ]; then
local bw_session=$(bw unlock --raw)
else
local bw_session=$BW_SESSION
fi

BW_SESSION=$bw_session bwvpnconnect mars &
BW_SESSION=$bw_session bwvpnconnect saturn
BW_SESSION=$bw_session bwvpnconnect saturn
}

function vssh() {
Expand Down
2 changes: 2 additions & 0 deletions doom.d/configuration.org
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ org mode seems to ignore my per-headline visibility properties unless this is se
* Super agenda
#+BEGIN_SRC emacs-lisp
(setq org-tag-alist '(("work" . ?w) ("home" . ?h) ("ramona" . ?r) ("buy" . ?b) ("someday" . ?s)))

; dont need to show project tag
(setq org-agenda-hide-tags-regexp (regexp-opt '("project")))

(use-package! org-super-agenda
Expand Down
10 changes: 9 additions & 1 deletion ssh-config
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,20 @@ Host 10.125.*.*
KbdInteractiveAuthentication false


Host 10.96.*.*
User appuser
ConnectTimeout 30
ProxyCommand docker exec -i mars nc -q0 %h %p 2>/dev/null
#ProxyCommand ~/dotfiles/script/vpnnc.sh saturn %h %p
StrictHostKeyChecking false
KbdInteractiveAuthentication false



Host *.saturn.sfsrv.net
User appuser
ConnectTimeout 30
ProxyCommand docker exec -i saturn nc -q0 %h %p 2>/dev/null
#ProxyCommand ~/dotfiles/script/vpnnc.sh saturn %h %p
StrictHostKeyChecking false
KbdInteractiveAuthentication false

Expand Down

0 comments on commit 677e466

Please sign in to comment.