Skip to content

Instantly share code, notes, and snippets.

View wuping2004's full-sized avatar

Ping wuping2004

  • China
  • SH China
View GitHub Profile
@wuping2004
wuping2004 / gist:c91d4d8aab33eba4fe9366afdd740d86
Created May 5, 2020 10:58
Testing Project For Get Certificates
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp6
@wuping2004
wuping2004 / gist:e90742f4d299b70a7c5167a2c8b3193c
Last active May 14, 2020 13:08
Copy Directory from File to Blob
using Microsoft.Azure.Storage;
using Microsoft.Azure.Storage.Blob;
using Microsoft.Azure.Storage.DataMovement;
using Microsoft.Azure.Storage.File;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Threading;
$ip = "127.0.0.1"
$a = @(1025..1027)
$b = @(19000..19010)
$c = 445,139
$port = $a + $b + $c
$(Foreach($item in $port)
{
$ip = "127.0.0.1"
$a = @(1025..1027)
$b = @(19000..19010)
$c = 445,139
$port = $a + $b + $c
$(Foreach($item in $port)
{
{
"Properties": {
"Security": {
"$id": "1",
"ClusterCredentialType": "None",
"ServerCredentialType": "None"
},
"NodeTypes": [
{
"AllowStatefulWorkloads": true,
{
"Properties": {
"Security": {
"$id": "1",
"ClusterCredentialType": "None",
"ServerCredentialType": "None"
},
"NodeTypes": [
{
"AllowStatefulWorkloads": true,
REM Set the value of netfx to install appropriate .NET Framework.
REM ***** To install .NET 4.5.2 set the variable netfx to "NDP452" *****
REM ***** To install .NET 4.6 set the variable netfx to "NDP46" *****
REM ***** To install .NET 4.6.1 set the variable netfx to "NDP461" ***** https://go.microsoft.com/fwlink/?LinkId=671729
REM ***** To install .NET 4.6.2 set the variable netfx to "NDP462" ***** https://www.microsoft.com/download/details.aspx?id=53345
REM ***** To install .NET 4.7 set the variable netfx to "NDP47" *****
REM ***** To install .NET 4.7.1 set the variable netfx to "NDP471" ***** https://go.microsoft.com/fwlink/?LinkId=852095
REM ***** To install .NET 4.7.2 set the variable netfx to "NDP472" ***** https://go.microsoft.com/fwlink/?LinkId=863262
set netfx="NDP472"
REM ***** To install .NET 4.8 set the variable netfx to "NDP48" ***** https://dotnet.microsoft.com/download/thank-you/net48
REM Set the value of netfx to install appropriate .NET Framework.
REM ***** To install .NET 4.5.2 set the variable netfx to "NDP452" *****
REM ***** To install .NET 4.6 set the variable netfx to "NDP46" *****
REM ***** To install .NET 4.6.1 set the variable netfx to "NDP461" ***** https://go.microsoft.com/fwlink/?LinkId=671729
REM ***** To install .NET 4.6.2 set the variable netfx to "NDP462" ***** https://www.microsoft.com/download/details.aspx?id=53345
REM ***** To install .NET 4.7 set the variable netfx to "NDP47" *****
REM ***** To install .NET 4.7.1 set the variable netfx to "NDP471" ***** https://go.microsoft.com/fwlink/?LinkId=852095
REM ***** To install .NET 4.7.2 set the variable netfx to "NDP472" ***** https://go.microsoft.com/fwlink/?LinkId=863262
set netfx="NDP472"
REM ***** To install .NET 4.8 set the variable netfx to "NDP48" ***** https://dotnet.microsoft.com/download/thank-you/net48
# Copyright 2018, Alexander Hass
# https://www.hass.de/content/setup-microsoft-windows-or-iis-ssl-perfect-forward-secrecy-and-tls-12
#
# After running this script the computer only supports:
# - TLS 1.2
#
# Version 3.0.0, see CHANGELOG.txt for changes.
Write-Host 'Configuring IIS with SSL/TLS Deployment Best Practices...'
Write-Host '--------------------------------------------------------------------------------'
# You can use the -SetCipherOrder (or -sco) option to also set the TLS cipher
# suite order. Change the cipherorder variable below to the order you want to set on the
# server. Setting this requires a reboot to take effect.
Param(
[parameter(Mandatory=$false)]
[alias("sco")]
[switch]$SetCipherOrder)
Function DisableRC4 {