Skip to content

Instantly share code, notes, and snippets.

View AmericanGeezus's full-sized avatar

Jason M AmericanGeezus

  • Seattle, WA
View GitHub Profile
@AmericanGeezus
AmericanGeezus / Get-HelpByMarkdown.ps1
Last active February 2, 2021 16:41 — forked from Gordonby/Get-HelpByMarkdown.ps1
This script converts PowerShell comment-based help to GitHub Flavored Markdown.
Function Get-HelpByMarkDown {
#
# File: Get-HelpByMarkdown.ps1
#
# Authors: Akira Sugiura (urasandesu@gmail.com)
# Gordon Byers (gordon.byers@microsoft.com)
# Jason Marshall (jason@marshall.gg)
#
#
# Copyright (c) 2014 Akira Sugiura
@AmericanGeezus
AmericanGeezus / runUntilStop.ps1
Created July 26, 2019 12:27
Example of run until readkey
$continue = $true
echo "STOP WITH Q";
While ($continue)
{
if ([console]::KeyAvailable)
{
$x = [Console]::ReadKey($true)
@AmericanGeezus
AmericanGeezus / datagenerators.ps1
Last active January 1, 2019 01:45
Substrate example sender functions for Powershell
# ███████╗██╗ ██╗ █████╗ ███╗ ███╗██████╗ ██╗ ███████╗
# ██╔════╝╚██╗██╔╝██╔══██╗████╗ ████║██╔══██╗██║ ██╔════╝
# █████╗ ╚███╔╝ ███████║██╔████╔██║██████╔╝██║ █████╗
# ██╔══╝ ██╔██╗ ██╔══██║██║╚██╔╝██║██╔═══╝ ██║ ██╔══╝
# ███████╗██╔╝ ██╗██║ ██║██║ ╚═╝ ██║██║ ███████╗███████╗
# ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚══════╝╚══════╝
#
# ███████╗██╗ ██╗███╗ ██╗ ██████╗████████╗██╗ ██████╗ ███╗ ██╗███████╗
# ██╔════╝██║ ██║████╗ ██║██╔════╝╚══██╔══╝██║██╔═══██╗████╗ ██║██╔════╝
@AmericanGeezus
AmericanGeezus / app.css
Last active May 27, 2020 18:31
DarkTheme CSS Files for UnifiController
This file has been truncated, but you can view the full file.
.withLayerShadow {
-webkit-box-shadow: -7px 7px 0px 0px rgba(0, 0, 0, 0.1) !important;
box-shadow: -7px 7px 0px 0px rgba(0, 0, 0, 0.1) !important
}
.alignLeft {
text-align: left !important
}
.alignCenter {
@AmericanGeezus
AmericanGeezus / decompress.ps1
Created September 26, 2018 21:08 — forked from vortexau/decompress.ps1
Powershell to decompress DEFLATE data
$base64data = "insert compressed and base64 data here"
$data = [System.Convert]::FromBase64String($base64data)
$ms = New-Object System.IO.MemoryStream
$ms.Write($data, 0, $data.Length)
$ms.Seek(0,0) | Out-Null
$sr = New-Object System.IO.StreamReader(New-Object System.IO.Compression.DeflateStream($ms, [System.IO.Compression.CompressionMode]::Decompress))
while ($line = $sr.ReadLine()) {