Skip to content

Commit

Permalink
vpnconnect cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
antipasta committed May 27, 2020
1 parent e447d57 commit e7c0413
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 7 additions & 2 deletions bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ec2-info() {
}
export EDITOR=vim
export GOPATH=$HOME/code/go
export PATH=$HOME/bin:$HOME/local/bin:$HOME/bin/fzf/bin/:$HOME/gobin/go/bin/:/usr/local/go/bin:$HOME/perl5/bin:/usr/sbin/:$GOPATH/bin:$HOME/Library/Python/2.7/bin:$HOME/bin/vim/vim-8.0.1481/bin/bin/:$HOME/dotfiles/bin/:$PATH
export PATH=$HOME/bin:$HOME/local/bin:$HOME/bin/fzf/bin/:$HOME/gobin/go/bin/:/usr/local/go/bin:$HOME/perl5/bin:/usr/sbin/:$GOPATH/bin:$HOME/Library/Python/2.7/bin:$HOME/bin/vim/vim-8.0.1481/bin/bin/:$HOME/dotfiles/bin/:$HOME/Applications/:$PATH
[ -f $HOME/perl5/lib/perl5/Devel/Local.pm ] && source `which devel-local.sh`
function github() {
git clone [email protected]:SocialFlowDev/$1.git
Expand Down Expand Up @@ -157,5 +157,10 @@ rmqq() {
}
function vpnotp() {
echo -n 'Enter keepass pw: ';
~/tmp/squashfs-root/usr/bin/keepassxc-cli show ~/dropbox/keepass/keepass2.kdbx $1 -q -t -a Password | tr -d '\n' | xclip -selection c
printf "\033]52;c;$(echo $(KeePassXC-2.5.4-x86_64.AppImage cli show /mnt/chromeos/GoogleDrive/MyDrive/keepass/keepass2.kdbx $1 -q -t -a Password | tr -d '\n') | base64)\a"
}

function vpnconnect() {
echo -n 'Enter keepass pw: ';
KeePassXC-2.5.4-x86_64.AppImage cli show /mnt/chromeos/GoogleDrive/MyDrive/keepass/keepass2.kdbx $1 -q -t -a UserName -a Password | sed -z "s|[\n\r]||2g" > ~/vpn/new-$1.tblk/Contents/Resources/creds.txt && docker start $1vpn && rm ~/vpn/new-$1.tblk/Contents/Resources/creds.txt && echo "connected to $1"
}
1 change: 0 additions & 1 deletion vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ call plug#begin('~/.vim/plugged')
Plug 'junegunn/fzf.vim'
Plug 'jamessan/vim-gnupg'
Plug 'vim-scripts/openssl.vim'
Plug 'https://github.com/Alok/notational-fzf-vim'
call plug#end()
" }}}

Expand Down

0 comments on commit e7c0413

Please sign in to comment.