Skip to content

Instantly share code, notes, and snippets.

View NickSlash's full-sized avatar

Nick Sewell NickSlash

  • Cambridge, UK
View GitHub Profile
@NickSlash
NickSlash / 1932975.klc
Created December 28, 2025 21:02
MSKLC Source File. Copied "AltGr + Key" polish accent keys onto "Control + Key"
KBD Layout01 "Polish (214) - AltGr -> Ctrl"
COPYRIGHT "(c) 2025 Company"
COMPANY "Company"
LOCALENAME "pl-PL"
LOCALEID "00000415"
@NickSlash
NickSlash / transform_postcodes.sp1
Created November 24, 2025 00:52
script to transform/filter postcodes.csv - choose columns, filter by postcode district(s) and weather in-use or not.
# https://www.doogal.co.uk/files/postcodes.zip
# 0 Postcode # 21 Lower layer super output area # 42 Plus Code
# 1 In Use? # 22 Rural/urban # 43 Average Income
# 2 Latitude # 23 Region # 44 Sewage Company
# 3 Longitude # 24 Altitude # 45 Travel To Work Area
# 4 Easting # 25 London zone # 46 ITL level 2
# 5 Northing # 26 LSOA Code # 47 ITL level 3
# 6 Grid Ref # 27 Local authority # 48 UPRNs
# 7 County # 28 MSOA Code # 49 Distance to sea
# 8 District # 29 Middle layer super output area # 50 LSOA21 Code
@NickSlash
NickSlash / make_mbr.ps1
Created October 29, 2025 18:08
Create a windows installation USB with two partitions
#Requires -RunAsAdministrator
param(
[String]$image=(Join-Path $PSScriptRoot "Win10_2004_EnglishInternational_x64.iso"),
[Switch]$update
)
If ( -Not $update.IsPresent) {
If ( -Not (Test-Path $image)) {
Write-Host "Error: <image> not found"
Exit 1
}
@NickSlash
NickSlash / 1929453.ps1
Last active October 31, 2025 11:40
Modify Icons on DefaultApplication
$extension = ".htm"
$icon = "%SystemRoot%\System32\ddores.dll,-210"
$userChoice = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\${extension}\UserChoice"
try {
if (Test-Path $userChoice) {
$progId = (Get-ItemProperty -Path $userChoice -Name "ProgId" -ErrorAction Stop).ProgId
Write-Host "ProgId for <${extension}> is <${progId}>"
@NickSlash
NickSlash / ps1x.reg
Created July 25, 2025 10:17
File Extension (.ps1x) to make scripts execute when opened/clicked instead of opening in editor
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.ps1x]
@="ps1xfile"
[HKEY_CLASSES_ROOT\ps1xfile]
@="PowerShell Executable Script (.ps1x)"
[HKEY_CLASSES_ROOT\ps1xfile\DefaultIcon]
@="C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe,0"
@NickSlash
NickSlash / data.json
Created March 30, 2025 21:29
SnowRunner Upgrade and Watchtower coordinates.
{
"level_ru_08_02": {
"watchpoints": {
"WATCHPOINT_03": {
"z": -36.885,
"x": 444.305
},
"WATCHPOINT_02": {
"z": 470.724,
"x": -141.485
@NickSlash
NickSlash / upgrades.md
Created March 16, 2025 20:23
Snow Runner Upgrade Check

snow runner upgrade check

manually checking what upgrades have been collected is a pain.

below is a list of upgrades available in the base game.

the {upgrade name} is the value used in your savefile and the link will show you the location on maprunner.

open CompleteSave.cfg and search for upgradesGiverData, inside this object search for the {level name} for the map you want to check.

@NickSlash
NickSlash / get-stringresource.ps1
Created January 4, 2025 14:17
Powershell function to evaluate Localized String Resources
# Add-Type block for ResourceLoader class
Add-Type @"
using System;
using System.Runtime.InteropServices;
public class ResourceLoader {
[DllImport("kernel32.dll", CharSet = CharSet.Auto)]
public static extern IntPtr LoadLibrary(string lpFileName);
[DllImport("user32.dll", CharSet = CharSet.Auto)]
@NickSlash
NickSlash / latest-gist.user.js
Last active November 17, 2024 01:39
Userscript to add a direct link to the latest version of a gist
// ==UserScript==
// @name Latest Gist
// @namespace nickslash
// @version 1.1
// @description Shift clicking "Raw" link will take you to the latest version
// @author nickslash
// @match https://gist.github.com/*/*
// @grant none
// ==/UserScript==
@NickSlash
NickSlash / explorer_tweak.reg
Created November 10, 2024 01:14
Clear the navigation pane, This PC folder group and Profile folder in Windows Explorer
Windows Registry Editor Version 5.00
; tested on windows 10 22h2v1 international english
; remove folders from navigation tree, this pc "folders" group and profile folder
; Desktop (tree and this pc only)
; Desktop (profile folder only)
; Documents
; 3D Objects
; Downloads