my dotz
0

Configure Feed

Select the types of activity you want to include in your feed.

at main 671 B View raw
1#!/bin/sh 2# 3# connects or kills the gp 4# vpn tunnel 5 6die() { 7 notify-send "💀 $1" -t 2000 8 sleep 1 9 exit 1 10} 11 12vpn_running() { 13 pgrep openconnect >/dev/null 14} 15 16if [ "$1" = "kill" ]; then 17 vpn_running || 18 die 'vpn is already dead' 19 notify-send '🔪 killing vpn' -t 1000 20 sudo pkill openconnect 21else 22 vpn_running && 23 die 'vpn is already running' 24 notify-send '🛡️ vpn connecting' -t 500 25 # ty katco 🙌 26 openconnect-gp-okta \ 27 -username jolson \ 28 -password-command 'pa show vpn' \ 29 -vpn-endpoint vpn-nyc3.digitalocean.com \ 30 -openconnect-args='--reconnect-timeout --csd-wrapper=/usr/lib/openconnect/hipreport.sh' 31 notify-send '🛡️ vpn connected' -t 500 32fi