1. MrTux Hdb
  2. dotfiles

Commits

MrTux Hdb  committed fe549b2

Add vpnbook_password() function: quickly get current vpnbook password

  • Participants
  • Parent commits ff2bb1a
  • Branches master

Comments (0)

Files changed (1)

File shell/functions

View file
     script /tmp/log.txt
 }
 
-# End of file
+# vpnbook_password
+function vpnbook_password () {
+    VPNBOOK_DAILY_PASSWORD=$(curl -s http://www.vpnbook.com | grep -m 1 Password | cut -d ':' -f 2 | cut -d '<' -f 1 | tr -d ' ')
+    echo "VPNBook current password: $VPNBOOK_DAILY_PASSWORD"
+    clipboard $VPNBOOK_DAILY_PASSWORD
+}
+
+# End of file