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
| [CmdletBinding()] | |
| param ( | |
| [Parameter()] | |
| [ValidateSet("RP", "Retail")] | |
| [string] | |
| $Ring = "RP" | |
| ) | |
| ## Set Execution Policy | |
| $progressPreference = 'silentlyContinue' | |
| ## Helper Funcions |
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
| <# | |
| .SYNOPSIS | |
| "Windows 10 Setup Script" is a set of tweaks for OS fine-tuning and automating the routine tasks | |
| .DESCRIPTION | |
| Supported Windows versions: | |
| Windows 10 2004 (20H1), 19041 build, x64 only | |
| Tested on Home/Pro/Enterprise editions | |
| Check whether file is encoded in UTF-8 with BOM |
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
| #!/bin/bash | |
| # This script will help you setup Docker for TLS authentication. | |
| # Run it passing in the arguement for the FQDN of your docker server | |
| # | |
| # For example: | |
| # ./create-docker-tls.sh myhost.docker.com | |
| # | |
| # The script will also create a profile.d (if it exists) entry | |
| # which configures your docker client to use TLS | |
| # |
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
| #requires -version 4 | |
| <# | |
| .SYNOPSIS | |
| Gets the current Let's Encrypt certificate by domain from the given opnSense-Firewall via SCP. | |
| .DESCRIPTION | |
| Sync-Cert connects to the given opnSense-Router via SCP. It pulls the Let's encrypt certificate and key for the given domain name, based on the common name | |
| into the local working directory. Afterwards it uses OpenSSL to convert the .cer and .key files to create a new .pfx file which can be used in Exchange and IIS. | |
| .PARAMETER Domain | |
| Domain of the certificate to get from the firewall | |
| .PARAMETER Router |
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/perl | |
| # PTZ control tool and generic SDK for Huamai PTZ camera 5508N-W-IR (eye10000.com) | |
| # http://www.aliexpress.com/item/New-IR-wireless-ip-camera-with-P2P-H-264-PTZ-WIFI-SD-Slot-Network-camera-Free/782606869.html | |
| # | |
| # Usage: | |
| # | |
| # ipcptz.pl --host <ip> --port <port> --authserial <serial> --authtime <time> --authtoken <token> --direction <up|down|left|right|patrol|zoomin|zoomout> --speed <speed> | |
| # | |
| # authtime and authtoken must be grabbed from the original Windows desktop application traffic (<Authentication></Authentication> and <Time></Time>) |
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/perl | |
| # | |
| # Simple log/alarm server receiving and printing to console remote dvr/camera events. Tested with: | |
| # | |
| # HJCCTV HJ-H4808BW | |
| # http://www.aliexpress.com/item/Hybird-NVR-8chs-H-264DVR-8chs-onvif-2-3-Economical-DVR-8ch-Video-4-AUDIO-AND/1918734952.html | |
| # | |
| # PBFZ TCV-UTH200 | |
| # http://www.aliexpress.com/item/Free-shipping-2014-NEW-IP-camera-CCTV-2-0MP-HD-1080P-IP-Network-Security-CCTV-Waterproof/1958962188.html |
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
| options { | |
| directory "/tmp"; | |
| listen-on-v6 { none; }; | |
| forwarders { | |
| 127.0.0.1 port 2053; | |
| }; | |
| auth-nxdomain no; # conform to RFC1035 |
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
| # Find the failed Disk | |
| Get-PhysicalDisk | |
| # Shutdown, take the disk out and reboot. Set the missing disk to a variable | |
| $missingDisk = Get-PhysicalDisk | Where-Object { $_.OperationalStatus -eq 'Lost Communication' } | |
| # Retire the missing disk | |
| $missingDisk | Set-PhysicalDisk -Usage Retired | |
| # Find the name of your new disk |