Skip to content

Instantly share code, notes, and snippets.

View surgicalcoder's full-sized avatar

surgicalcoder

  • United Kingdom
View GitHub Profile
@surgicalcoder
surgicalcoder / file.cs
Created August 10, 2020 12:30
Deterministic "random" number
void Main()
{
// 1000 = Minimum number
// 65536 = maximum number
(1000 + GetInt64HashCode("John Reginald III esq.") % 65536).Dump();
}
static Int64 GetInt64HashCode(string strText)
{
Int64 hashCode = 0;
Subject access request
I am writing to formally make a Subject Access Request, for a digital copy of information held about me, for which I am entitled to under the General Data Protection Regulations (GDPR) 2018.
You can identify my records by using the following information:
• Name: CHANGEME
• Address: CHANGEME
Please supply the data about me, that I am entitled to, under the Data Protection Act 2019, including:
• Confirmation that you are processing my personal data
@surgicalcoder
surgicalcoder / powershell.reg
Created April 25, 2025 20:44
Run a powershell file on windows with double click
Windows Registry Editor Version 5.00
; Register PowerShell Script file type
[HKEY_CLASSES_ROOT\.ps1]
@="Microsoft.PowerShellScript.1"
"Content Type"="text/plain"
; Create the PowerShell Script type
[HKEY_CLASSES_ROOT\Microsoft.PowerShellScript.1]
@="PowerShell 7 Script"