Skip to content

Instantly share code, notes, and snippets.

View pdl5p's full-sized avatar

Paul Lucas pdl5p

  • FiveP
  • Melbourne, Australia
View GitHub Profile
@scholtes
scholtes / readme.md
Last active March 14, 2026 12:54
Wordle dictionary

Deprecated!

⚠This gist will remain available for posterity, but be aware that Wordle no longer uses these dictionaries.⚠

Wordle dictionary

Wordle is a web browser game that you can play at this link. You get 6 chances to guess a single 5 letter word and there is only 1 word per day.

@cecilemuller
cecilemuller / 2019-https-localhost.md
Last active January 26, 2026 09:00
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).

@camieleggermont
camieleggermont / UpdateIISExpressCertificate.ps1
Last active March 29, 2025 04:03
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`}
}
@jakkaj
jakkaj / run.csx
Created February 26, 2017 01:08
FFMPEG inside an Azure function.
#r "Microsoft.WindowsAzure.Storage"
using Microsoft.WindowsAzure.Storage.Blob;
using System.Diagnostics;
using System.IO;
public static async Task Run(Stream myBlob, string name, Binder binder, TraceWriter log)
{
log.Info($"Jordan C# Blob trigger function Processed blob\n Name:{name} \n Size: {myBlob.Length} Bytes");
@patriklindstrom
patriklindstrom / Compare-HashTable.ps1
Last active October 5, 2023 22:32
Powershell Set operations like union, except and Intersect between hashtables
$CSharpLinqMojo = @"
using System.Collections.Generic;
using System.Linq;
namespace CompareTool
{
public class DictCompareOnKeyOnly : IEqualityComparer<KeyValuePair<string, string>>
{
public bool Equals(KeyValuePair<string, string> x, KeyValuePair<string, string> y)
{
return x.Key.Equals(y.Key);
webpack --display-modules | awk '{print $3$4" "$2}' | grep -v bytes | sort -n | tail -100
@rcugut
rcugut / node-npm-install.md
Last active October 10, 2025 20:15 — forked from DanHerbert/fix-homebrew-npm.md
Install node & npm on Mac OS X with Homebrew

DEPRECATED as of macOS 10.13 (High Sierra). See the new GUIDE to install nvm and yarn for macOS (updated July 2019)

Fixing npm On Mac OS X for Homebrew Users

Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.

Solution

This solution fixes the error caused by trying to run npm update npm -g. Once you're finished, you also won't need to use sudo to install npm modules globally.

@Restuta
Restuta / framework-sizes.md
Last active June 11, 2025 03:17
Sizes of JS frameworks, just minified + minified and gzipped, (React, Angular 2, Vue, Ember)

Below is the list of modern JS frameworks and almost frameworks – React, Vue, Angular, Ember and others.

All files were downloaded from https://cdnjs.com and named accordingly. Output from ls command is stripped out (irrelevant stuff)

As-is (minified)

$ ls -lhS
566K Jan 4 22:03 angular2.min.js
var buffer = null,
bufferContext = null;
//null => not yet checked
var multiplyDetected = null;
function isMultiplySupported() {
if (multiplyDetected === null) { //we haven't checked yet
if (!buffer) { //shared buffer...
buffer = document.createElement("canvas");
@Maverik
Maverik / CSRGenerator.cs
Last active August 4, 2020 10:56
CSR Generator Snippet for Linqpad (C#)
// this snippet can be easily used in any normal c# project as well by simply removing the .Dump() methods
// and saving the output into a variable / file of your choice.
// you'll need to add BouncyCastle.Crypto nuget to use this.
// tested on 1.8.1
// OUTPUTS: CSR, Private Key, Public Key, Self-signed Certificate
using Org.BouncyCastle.Asn1;
using Org.BouncyCastle.Asn1.Cms;
using Org.BouncyCastle.Asn1.Pkcs;
using Org.BouncyCastle.Asn1.X509;