- RedirectToRouteResult is now RedirectToActionResult, with an
ActionName
property - No System.Runtime.Caching - replace it with IMemoryCache (
Microsoft.Extensions.Caching.Memory
) - typeof(x).Assembly is now typeof(x).GetTypeInfo().Assembly
- MongoCollection has changed
- StringComparison.InvariantCultureIgnoreCase is gone, easy replacement
- Configuration + Sections are totally different
- HttpContext and HttpRequest etc. now found in
Microsoft.AspNetCore.Http.Abstractions - Microsoft.AspNetCore.Http.HttpRequest
- Request.RequestUri is now various new properties, for example
Request.Host (a HostString)
- WebActivatorEx?
- DependencyResolver?
This file contains 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
Netmask Netmask (binary) CIDR Notes | |
_____________________________________________________________________________ | |
255.255.255.255 11111111.11111111.11111111.11111111 /32 Host (single addr) | |
255.255.255.254 11111111.11111111.11111111.11111110 /31 Unuseable | |
255.255.255.252 11111111.11111111.11111111.11111100 /30 2 useable | |
255.255.255.248 11111111.11111111.11111111.11111000 /29 6 useable | |
255.255.255.240 11111111.11111111.11111111.11110000 /28 14 useable | |
255.255.255.224 11111111.11111111.11111111.11100000 /27 30 useable | |
255.255.255.192 11111111.11111111.11111111.11000000 /26 62 useable | |
255.255.255.128 11111111.11111111.11111111.10000000 /25 126 useable |
This file contains 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
git config --local user.email "chrisTHISPARTISFAKEsmall+github@gmail.com" |
Published | title | author | layout | shortpost | tags | ||
---|---|---|---|---|---|---|---|
2016-MM-DD |
Title here |
Chris S |
post |
true |
|
This file contains 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
# Launch Powershell as admin | |
Set-ExecutionPolicy RemoteSigned -Confirm:$false -Force | |
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')) | |
# Stop prompting in Choclately | |
choco feature enable -n allowGlobalConfirmation | |
choco install googlechrome | |
choco install firefox | |
choco install coneumu |
This file contains 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
# Using properties inside strings | |
$now = get-date | |
$shortId = "$($now.Millisecond)$($now.Day)$($now.Month)" | |
# Parameters, eg .\myscript.ps1 -arg1 value1 -arg2 value2 -force | |
param ( | |
[Parameter(Mandatory=$true)] | |
[string] | |
$arg1 = "defaultvalue", | |
[string] $arg2 = $(throw "-arg2 is required."), |
This file contains 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
# Change the config editor to notepad | |
git config --global core.editor notepad | |
# ...and then edit the config | |
git config --global --edit | |
# Revert master back by 5 commits | |
git revert --no-commit HEAD~5.. | |
# Revert master back by 5, but do it so there you get a "Revert commit" for each commit you reverted (this opens Vim) |
I’m a web app that wants to allow other web apps access to my users’ information, but I want to ensure that the user says it’s ok.
I can’t trust the other web apps, so I must interact with my users directly. I’ll let them know that the other app is trying to get their info, and ask whether they want to grant that permission. Oauth defines a way to initiate that permission verification from the other app’s site so that the user experience is smooth. If the user grants permission, I issue an AuthToken to the other app which it can use to make requests for that user's info.
Oauth2 has nothing to do with encryption -- it relies upon SSL to keep things (like the client app’s shared_secret) secure.