Skip to content

Instantly share code, notes, and snippets.

View pdl5p's full-sized avatar

Paul Lucas pdl5p

  • FiveP
  • Melbourne, Australia
View GitHub Profile
@pdl5p
pdl5p / 2019-https-localhost.md
Created November 7, 2023 05:21 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@pdl5p
pdl5p / UpdateIISExpressCertificate.ps1
Created June 30, 2017 01:14 — 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.
$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`}
}
@pdl5p
pdl5p / .block
Created November 18, 2016 23:55 — forked from mbostock/.block
D3 Show Reel
license: gpl-3.0
@pdl5p
pdl5p / .block
Created November 18, 2016 23:53 — forked from mbostock/.block
Bilevel Partition
license: gpl-3.0
@pdl5p
pdl5p / README.md
Last active October 8, 2016 08:26 — forked from jstcki/README.md
Transitions with React and D3 I
@pdl5p
pdl5p / deploy.sh
Created September 30, 2016 04:09 — forked from ryhanen/deploy.sh
Customized Azure deployment script that will run Gulp tasks during deployment
##################################################################################################################################
# Deployment
# ----------
echo Handling node.js deployment.
# 1. Select node version
selectNodeVersion
# 2. Install npm packages
@pdl5p
pdl5p / deploy.sh
Created September 30, 2016 04:05 — forked from jasonruesch/deploy.sh
KUDU Deployment Script with Grunt and Bower support
#!/bin/bash
# ----------------------
# KUDU Deployment Script
# Version: 0.1.7
# ----------------------
# Helpers
# -------
@pdl5p
pdl5p / introrx.md
Created June 19, 2016 00:25 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing