Skip to content

Instantly share code, notes, and snippets.

View TheFreeman193's full-sized avatar

Nicholas Bissell TheFreeman193

View GitHub Profile
@TheFreeman193
TheFreeman193 / kr_offset.sh
Last active June 8, 2024 23:11
Detect offset of kernel release string
#!/system/bin/sh
# Copyright (C) MIT License 2024 Nicholas Bissell (TheFreeman193)
NL="
"
SYSNMLN=65
showHeader() {
echo "
@TheFreeman193
TheFreeman193 / keybase.md
Last active May 9, 2021 16:44
Keybase ID

Keybase proof

I hereby claim:

  • I am TheFreeman193 on github.
  • I am thefreeman193 (https://keybase.io/thefreeman193) on keybase.
  • I have a public key whose fingerprint is DC85 D3B7 13F7 A2DD 70DE 888C 6E26 1B2E 8362 5970

To claim this, I am signing this object:

@TheFreeman193
TheFreeman193 / Start-MSTimer.ps1
Created March 8, 2021 15:34
Proof of concept for brute-force interaction with Alarms & Clock
<#
.SYNOPSIS
Proof of Concept. Starts a new Alarms & Clock (Time.exe) timer in Windows 10.
.DESCRIPTION
Proof of Concept. Starts a new Alarms & Clock (Time.exe) timer in Windows 10.
It does this by emulating keystroke input. DO NOT USE THIS IN PRODUCTION
ENVIRONMENTS.
.PARAMETER Time
@TheFreeman193
TheFreeman193 / TheFreeman193-CodeSign-PGP-DC85D3B713F7A2DD70DE888C6E261B2E83625970.asc
Last active May 16, 2021 13:45
Code Signing public keys - thefreeman193@hotmail.com (PGP) & thefreeman193@aol.co.uk (PGP, X.509) - DC85 D3B7 13F7 A2DD 70DE 888C 6E26 1B2E 8362 5970
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBF6EniEBEACynSOtozArIpmi7d72MJNw5X01g+AXuUs1F6g1RNNnz8ZiK1Zx
QsKL3rHGITbfYmyNFe5LtgnX0jzMywM/fUcRVcE3bEHidlUUapOj1AT+igle5c0g
3H69NEPbjbBaTBNfj/nRl2AXMMpJjDFTcvl8uxI+cYd2Am0yUMHx8a/0o6lQ8kcf
N7xjENmgq0YSAhOtfX2Kl+LHvUEg7KiqHAfi5WLoThuhxTGhpy69KJqKOIRp69Dc
MOe1C1Heq0XFDVxFya/6InG8wINNaZzN6VNkJ8QSjk45PLiHjO4KXr1AAHPCCY72
fiSm/LuwfvKwQEwpf0EUOC1Nk5AtzPN+9su5l2OtLOirV6jHEhCDNuJI0mpWfEf8
oqjD3g9hPM8INM+EAXwKM52Xw7lZlW9hwTGGxG7mN9My793C9q+ZVGPobI1Q9DOZ
Uv/WbfzDj7GW4WIVkNom2jZ8F3mnK6T9q9/AUxfFVd8rW+Swz7AwiqouAuvlo2Mi
@TheFreeman193
TheFreeman193 / Get-PercentageDifference.ps1
Last active May 9, 2021 16:51
Get-PercentageDifference
# An advanced version of this script is now in my scripts collection:
# https://github.com/TheFreeman193/Scripts/blob/main/PowerShell/Tools/Get-RelativeDifference/Get-RelativeDifference.ps1
Function Get-PercentageDifference {
<#
.SYNOPSIS
Calculates percentage difference.
.DESCRIPTION
Calculates percentage difference between two values,
@TheFreeman193
TheFreeman193 / Updatable Help on GitHub Pages.md
Last active April 1, 2022 21:09
Using GitHub Pages as a container for PowerShell Updatable Help

Using GitHub pages as a container for PowerShell Updatable Help

Introduction

The PowerShell updatable help system is a useful, if not under-utilised, way to supply up-to-date support documentation for your module. While its implementation and ongoing support from Microsoft for native PowerShell modules is questionable (in my opinion) to begin with, it remains under-used and, in many cases, an unrecognised method of supplying updates to help documentation. This may be, in part, related to the complicated way in which PowerShell is