Skip to content

Instantly share code, notes, and snippets.

View ittchmh's full-sized avatar

Vladimir ittchmh

  • 08:29 (UTC -04:00)
View GitHub Profile
@ittchmh
ittchmh / Windows 10 20H1.ps1
Created May 25, 2020 08:50
Test script Windows 10 20H1
<#
.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
@ittchmh
ittchmh / create-docker-tls.sh
Last active February 9, 2020 18:02 — forked from Stono/create-docker-tls.sh
Creating and setting up Docker for TLS
#!/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
#
#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
@ittchmh
ittchmh / ipcptz.pl
Created July 24, 2019 09:13 — forked from 667bdrm/ipcptz.pl
PTZ control tool and generic SDK for Huamai PTZ camera 5508N-W-IR (eye10000.com)
#!/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>)
@ittchmh
ittchmh / dvr-alarm-server.pl
Created July 24, 2019 09:13 — forked from 667bdrm/dvr-alarm-server.pl
Chinese DVR Alarm Server
#!/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
@ittchmh
ittchmh / named.conf
Created February 21, 2019 20:49 — forked from cpswan/named.conf
Unbound/BIND config for DNS over TLS to 1.1.1.1
options {
directory "/tmp";
listen-on-v6 { none; };
forwarders {
127.0.0.1 port 2053;
};
auth-nxdomain no; # conform to RFC1035
@ittchmh
ittchmh / ReplaceStorageSpacesFailedDisk.ps1
Created September 17, 2017 08:21 — forked from MattHodge/ReplaceStorageSpacesFailedDisk.ps1
ReplaceStorageSpacesFailedDisk.ps1
# 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