Skip to content

Instantly share code, notes, and snippets.

@blinds52
blinds52 / EVAL
Created July 26, 2019 22:21 — forked from CHEF-KOCH/EVAL
Server 2019 Eval. to LTSC
https://software-download.microsoft.com/download/pr/17763.253.190108-0006.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_ZH-CN.img
https://software-download.microsoft.com/download/pr/17763.253.190108-0006.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_en-us.img
https://software-download.microsoft.com/download/pr/17763.253.190108-0006.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_FR-FR.img
https://software-download.microsoft.com/download/pr/17763.253.190108-0006.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_DE-DE.img
https://software-download.microsoft.com/download/pr/17763.253.190108-0006.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_IT-IT.img
https://software-download.microsoft.com/download/pr/17763.253.190108-0006.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_JA-JP.img
https://software-download.microsoft.com/download/pr/17763.253.190108-0006.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_ru-ru.img
https://software-download.microsoft.com/download/pr/17763.253.190108-0006.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_ES-ES.img
@blinds52
blinds52 / Generic Volume License Key.txt
Created July 26, 2019 22:19 — forked from CHEF-KOCH/Generic Volume License Key.txt
Microsoft Office 2019 RTM RETAIL Direct Links for Download
https://docs.microsoft.com/en-us/DeployOffice/vlactivation/gvlks
=================================================================
Office Professional Plus 2019 NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP
Office Standard 2019 6NWWJ-YQWMR-QKGCB-6TMB3-9D9HK
Project Professional 2019 B4NPR-3FKK7-T2MBV-FRQ4W-PKD2B
Project Standard 2019 C4F7P-NCP8C-6CQPT-MQHV9-JXD2M
Visio Professional 2019 9BGNQ-K37YR-RQHF2-38RQ3-7VCBB
Visio Standard 2019 7TQNQ-K3YQQ-3PFH7-CCPPM-X4VQ2
Access 2019 9N9PT-27V4Y-VJ2PD-YXFMF-YTFQT
Excel 2019 TMJWT-YYNMB-3BKTF-644FC-RVXBD
@blinds52
blinds52 / Startup.cs
Created July 8, 2019 01:41 — forked from componentspace/Startup.cs
IdentityServer4 as a SAML IdP using ComponentSpace - Startup class
using IdentityServer4;
using IdentityServer4.Models;
using IdentityServer4.Services;
using IdentityServer4.Stores;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using System;
@blinds52
blinds52 / Startup.cs
Created July 8, 2019 01:40 — forked from componentspace/Startup.cs
IdentityServer4 as a SAML SP using ComponentSpace - Startup class
using IdentityServer4;
using IdentityServer4.Models;
using IdentityServer4.Services;
using IdentityServer4.Stores;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using System;
@blinds52
blinds52 / tokens.md
Created July 5, 2019 14:11 — forked from zmts/tokens.md
Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Основы:

Аутентификация(authentication, от греч. αὐθεντικός [authentikos] – реальный, подлинный; от αὐθέντης [authentes] – автор) - это процесс проверки учётных данных пользователя (логин/пароль). Проверка подлинности пользователя путём сравнения введённого им логина/пароля с данными сохранёнными в базе данных.

Авторизация(authorization — разрешение, уполномочивание) - это проверка прав пользователя на доступ к определенным ресурсам.

Например после аутентификации юзер sasha получает право обращатся и получать от ресурса "super.com/vip" некие данные. Во время обращения юзера sasha к ресурсу vip система авторизации проверит имеет ли право юзер обращатся к этому ресурсу (проще говоря переходить по неким разрешенным ссылкам)

@blinds52
blinds52 / ReadMe.md
Created May 15, 2019 23:22 — forked from Jaykul/ReadMe.md
Kestrel in PowerShell

Trying to get Kestrel to work in PowerShell

This works, sort-of, but for some reason it won't actually serve pages. I get nothing but "The connection was reset" or "can't reach this page"

Before you can run Start-Kestrel, you need to download a bunch of assemblies, and since my example is just trying to serve files, you'll need a file or two...

From an empty folder where you're going to put Start-Kestrel.ps1 we need to install a thousand DLLs or so...

Install-Package Microsoft.AspNetCore.App -ProviderName NuGet -Destination bin -Source nuget.org -Force
function Get-ClrReflection
{
<#
.SYNOPSIS
Detects memory-only CLR (.NET) modules
Author: Joe Desimone (@dez_)
License: BSD 3-Clause
@blinds52
blinds52 / powershell-workflow-to-xaml.ps1
Created May 13, 2019 02:45 — forked from orosandrei/powershell-workflow-to-xaml.ps1
Powershell Workflow - export to Xaml file
#powershell workflow - export to xaml file
workflow PsWfExample {
param([String[]]$Services)
foreach -parallel ($svc in $Services){
$svc
}
}
#get the serialized xaml content
@blinds52
blinds52 / hosts.ps1
Created April 8, 2019 09:46 — forked from markembling/hosts.ps1
Powershell script for adding/removing/viewing entries to the hosts file.
#
# Powershell script for adding/removing/showing entries to the hosts file.
#
# Known limitations:
# - does not handle entries with comments afterwards ("<ip> <host> # comment")
#
$file = "C:\Windows\System32\drivers\etc\hosts"
function add-host([string]$filename, [string]$ip, [string]$hostname) {
@blinds52
blinds52 / dotnet-native-shared-framework-directive.xml
Created March 8, 2019 02:54 — forked from richlander/dotnet-native-shared-framework-directive.xml
Instructions to opt-in to using the .NET Native Shared Framework
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
<UseDotNetNativeSharedAssemblyFrameworkPackage>true</UseDotNetNativeSharedAssemblyFrameworkPackage>