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
configure | |
set firewall name WAN_LOCAL rule 100 action accept | |
set firewall name WAN_LOCAL rule 100 description 'Allow IKE for Remote VPN Server' | |
set firewall name WAN_LOCAL rule 100 destination port 500 | |
set firewall name WAN_LOCAL rule 100 log enable | |
set firewall name WAN_LOCAL rule 100 protocol udp | |
set firewall name WAN_LOCAL rule 110 action accept | |
set firewall name WAN_LOCAL rule 110 description 'Allow L2TP for Remote VPN Server' | |
set firewall name WAN_LOCAL rule 110 destination port 1701 |
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
show configuration commands >/config/user-data/erl-commands.txt |
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
<?php | |
if (getenv('HTTP_CLIENT_IP')) | |
echo "HTTP_CLIENT_IP: " . getenv('HTTP_CLIENT_IP') . "<br />"; | |
if(getenv('HTTP_X_FORWARDED_FOR')) | |
echo "HTTP_X_FORWARDED_FOR: " . getenv('HTTP_X_FORWARDED_FOR') . "<br />"; | |
if(getenv('HTTP_X_FORWARDED')) | |
echo "HTTP_X_FORWARDED: " . getenv('HTTP_X_FORWARDED') . "<br />"; | |
if(getenv('HTTP_FORWARDED_FOR')) | |
echo "HTTP_FORWARDED_FOR: " . getenv('HTTP_FORWARDED_FOR') . "<br />"; | |
if(getenv('HTTP_FORWARDED')) |
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
sudo apt-get update | |
sudo apt-get install -y apache2 php7.0 libapache2-mod-php7.0 php7.0-mysql php7.0-curl php7.0-json |
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
[] |
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
[{"name":"tor_exit_ipv4","color":"Grey","position":{"x":101,"y":100},"increment":false,"timestamp":false,"softdelete":false,"column":[{"name":"id","type":"increments","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c42","order":0},{"name":"ip_address","type":"string","length":"16","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c50","order":1},{"name":"timestamp_1","type":"datetime","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c68","order":2},{"name":"timestamp_2","type":"datetime","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded": |
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
@type network-status-consensus-3 r 1.0 | |
network-status-version 3 | |
vote-status consensus | |
consensus-method 25 | |
valid-after 2017-03-09 14:00:00 | |
fresh-until 2017-03-09 15:00:00 | |
valid-until 2017-03-09 17:00:00 | |
foo | |
r seele AAoQ1DAR6kkoo19hBAX5K0QztNw Is6WVULfiBd5brywe2ptl1ZBDJU 2017-03-08 21:11:07 67.164.109.21 9001 0 | |
s Running Stable V2Dir Valid |
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
<?php | |
/* test host list */ | |
$hostlist = array( | |
'96.4.1.22', | |
'207.191.191.90', | |
'8.8.8.8' | |
); | |
/* do the lookup */ |
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/bash | |
# setup LAPP server with | |
# pg admin postgres | postgrespw | |
# try with `export PGPASSWORD='postgrespw'; psql -h <serverip> -U postgres` | |
export DEBIAN_FRONTEND=noninteractive | |
export DEBIAN_PRIORITY=critical | |
sudo -E apt-get -qy update | |
sudo -E apt-get -qy -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" upgrade | |
sudo -E apt-get -qy autoclean |
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/bash | |
declare -x MYSQLCONNSTR_MS_Mysql="Database=mydevwiki; Data Source=mw-mysql; User Id=root; Password=mysecretpassword" | |
declare -A mysqlconn | |
# Strip spaces, then convert semicolon to spaces to loop in array | |
# We must strip spaces since this is inconsistent used inside azure | |
for keyvaluepair in $(echo $MYSQLCONNSTR_MS_Mysql | sed "s/ //g; s/;/ /g") | |
do | |
ARR=(${keyvaluepair//=/ }) | |
mysqlconn[${ARR[0]}]=${ARR[1]} |
OlderNewer