JFFS script to isolate configured guest wifi networks on AsusWRT Merlin into a seperate VLAN.
Original script from: http://www.snbforums.com/threads/ac56u-how-to-add-bridges-with-dhcp-servers.20326/#post-189032
<?xml version="1.0"?> | |
<root> | |
<devicevendordef> | |
<vendorname>CM_Storm</vendorname> | |
<vendorid>0x2516</vendorid> | |
</devicevendordef> | |
<deviceproductdef> | |
<productname>QuickFire_TK</productname> | |
<productid>0x0011</productid> | |
</deviceproductdef> |
[push] | |
default = simple | |
[alias] | |
ci = commit | |
co = checkout | |
cp = cherry-pick | |
st = status | |
ps = push | |
pl = pull | |
br = branch |
JFFS script to isolate configured guest wifi networks on AsusWRT Merlin into a seperate VLAN.
Original script from: http://www.snbforums.com/threads/ac56u-how-to-add-bridges-with-dhcp-servers.20326/#post-189032
#!/bin/sh | |
# register a subdomain at https://www.duckdns.org/ to get your token | |
# put 'hostname:token' in the 'Host Name' field under DDNS | |
# e.g. myhost:abcdefgh-1234-5678-9876-f71b0ed7a7fe | |
DDNS_HOSTNAME_FIELD=$(nvram get ddns_hostname_x) | |
SUBDOMAIN=$(echo "$DDNS_HOSTNAME_FIELD" | awk -F':' '{print $1}') | |
TOKEN=$(echo "$DDNS_HOSTNAME_FIELD" | awk -F':' '{print $2}') | |
IPV4=$(nvram get wan0_ipaddr) |
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
package whatever; | |
import java.io.File; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.HashSet; | |
import org.apache.maven.artifact.Artifact; | |
import org.apache.maven.artifact.DefaultArtifact; | |
import org.apache.maven.artifact.handler.DefaultArtifactHandler; |
#!bin/bash | |
SUBSCRIPTION_LIST=( | |
https://easylist-downloads.adblockplus.org/easyprivacy.txt | |
https://easylist-downloads.adblockplus.org/easylistchina.txt | |
https://easylist-downloads.adblockplus.org/easylist.txt | |
https://easylist-downloads.adblockplus.org/malwaredomains_full.txt | |
https://easylist-downloads.adblockplus.org/exceptionrules.txt | |
) |
echo "Dropping database.." | |
mysql -e 'drop database if exists `seafile-ccnet`;' | |
mysql -e 'drop database if exists `seafile-main`;' | |
mysql -e 'drop database if exists `seafile-seahub`;' | |
echo 'Recreating ccnet database..' | |
mysql -e 'create database `seafile-ccnet` character set = "utf8";' | |
mysql 'seafile-ccnet' < seafile-server-latest/sql/mysql/ccnet.sql | |
echo 'Recreating seafile database..' |
blueprint: | |
name: State Based Entity Control | |
description: Change the target entity to desired entity state base on the trigger entity's state, illuminance sensor's state, Sun elevation and so on. | |
domain: automation | |
input: | |
trigger_entity: | |
name: Trigger Entity | |
description: This entity will trigger the automation. | |
selector: | |
entity: |
blueprint: | |
name: State Based Entity Control2 | |
description: Change the target entity to desired entity state base on the trigger entity's state, illuminance sensor's state, Sun elevation and so on. | |
domain: automation | |
input: | |
trigger_entities: | |
name: Trigger Entities | |
selector: | |
entity: | |
multiple: true |