Skip to content

Instantly share code, notes, and snippets.

Matt Perry dillorscroft

  • Manchester, UK
Block or report user

Report or block dillorscroft

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dillorscroft
dillorscroft / ANestedContentUsePattern.txt
Created Jun 19, 2018 — forked from ChesterCampbellAM/ANestedContentUsePattern.txt
Pattern for binding Nested Content content to strongly-typed models (via Models Builder) in Umbraco CMS v7.
View ANestedContentUsePattern.txt
This pattern has a couple of assumptions built in:
1) All nested content partial views will be saved in the directory: /Views/Partials/NestedContent
2) All nested content partials views will be named using the alias of the Document Type the
nested content is based on, but starting with an underscore. For example: Document Type
"Full Width Text Component" (alias = fullWidthTextComponent) should have a partial view
named "_FullWidthTextComponent.cshtml".
3) All Models Builder generated data models are namespaced to "AM.Models".
@dillorscroft
dillorscroft / JS-LINQ.js
Created Aug 3, 2017 — forked from DanDiplo/JS-LINQ.js
JavaScript equivalents of some common C# LINQ methods. To help me remember!
View JS-LINQ.js
// JS array equivalents to C# LINQ methods - by Dan B.
// Here's a simple array of "person" objects
var people = [
{ name: "John", age: 20 },
{ name: "Mary", age: 35 },
{ name: "Arthur", age: 78 },
{ name: "Mike", age: 27 },
{ name: "Judy", age: 42 },
{ name: "Tim", age: 8 }
@dillorscroft
dillorscroft / UpdateIISExpressCertificate.ps1
Created Jun 2, 2017 — forked from camieleggermont/UpdateIISExpressCertificate.ps1
This powershell script generates a new certificate, removes the old certificate assignments from the IISExpress ssl ports and adds the newly generated one. The certificate is also copied over to the Trusted Root Certificate Authorities.
View UpdateIISExpressCertificate.ps1
$cert = New-SelfSignedCertificate -DnsName "localhost", "localhost" -CertStoreLocation "cert:\LocalMachine\My" -NotAfter (Get-Date).AddYears(5)
$thumb = $cert.GetCertHashString()
For ($i=44300; $i -le 44399; $i++) {
netsh http delete sslcert ipport=0.0.0.0:$i
}
For ($i=44300; $i -le 44399; $i++) {
netsh http add sslcert ipport=0.0.0.0:$i certhash=$thumb appid=`{214124cd-d05b-4309-9af9-9caa44b2b74a`}
}
@dillorscroft
dillorscroft / .gitignore
Created Dec 19, 2016 — forked from plong0/.gitignore
User Registration demo using angular-schema-form
View .gitignore
.DS_Store
bower_components/
You can’t perform that action at this time.