This file contains hidden or 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
VPNCMD="sudo /usr/local/vpnserver/vpncmd localhost:443 /SERVER /CMD" | |
# Create virtual hub | |
${VPNCMD} HubCreate ${HubName} /PASSWD:admin | |
# Create local bridge(connect to physical device) | |
${VPNCMD} BridgeCreate ${HubName} /DEVICE:${phy_dev_name:-eth0} | |
# Create local bridge(create tap interface) |
This file contains hidden or 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
<?= PHP short opening tag | |
( | |
$_ temporary variable | |
= assignment (of temporary variable $_) | |
@ suppress PHP errors | |
$_GET[2] value corresponding to key 2 in array of values of HTTP GET (these are the arguments you see in a URL like ?argument1=foo&argument2=foo2) |
This file contains hidden or 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 python | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
""" |
NewerOlder