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/php | |
<?php | |
#description=Container VPN Tester | |
$container_label = "label_here=value"; | |
$restart_commands = [ | |
"php /boot/config/plugins/user.scripts/scripts/restartContainerVPN/script" | |
]; |
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/php | |
<?php | |
#description=ARR Tester | |
// -- CONFIG -- // | |
// API Key mode: | |
// Determines if the API key is sent as part of the URL or in the request header | |
// either HEADER or URL |
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/php | |
<?php | |
#description=Docker Compose functions | |
#argumentDescription=arg1: action (up, down, stop, update, down_up) arg2+: compose project names | |
#argumentDefault=down_up dns tunnels websites multimedia downloads websites automation essentials | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
error_reporting(E_ALL); |
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 | |
#description=Suck args into array | |
#argumentDescription=This is the description of the argument(s) | |
#argumentDefault="ab c dne" 1 2 "de" 3 | |
splitArgs () { | |
# Default delimiter is * | |
if [ -z ${2+x} ]; then d=*; else d=$2; fi |
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/php | |
<?php | |
#description=PHP - Get split args out | |
#argumentDescription=This is the description of the argument(s) | |
#argumentDefault="a b c" 1 2 3 "de" 4 5 | |
# Split out args | |
$args = preg_split('/(".*?")/', $argv[1],-1,PREG_SPLIT_DELIM_CAPTURE); | |
for ($key=0; $key<count($args); $key++) { |
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
################################################################ | |
# edit file: /boot/config/acpi_handler.sh | |
# change "power)" line to point at vmStartStop script location (shown at top of web UI when editing User Script) | |
################################################################ | |
#!/bin/sh | |
# Default acpi script that takes an entry for all actions | |
IFS=${IFS}/ | |
set $@ |
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 | |
PORT_DHCP="67" | |
PORT_DNS="53" | |
SHINOBI_IP="192.168.9.10" | |
STATE_NEW="-m state --state NEW" | |
REJECT="REJECT --reject-with icmp-host-prohibited" | |
REJECT_TCP="REJECT --reject-with tcp-reset" | |
# limit guests to essential router services (icmp echo/reply, dhcp, dns) |