Skip to content

Instantly share code, notes, and snippets.

@kirkmawa
kirkmawa / hdradio_logo_correction.py
Last active February 28, 2024 03:13
Python script to resize and encode images for use with the Station Logo service on HD Radio broadcasts
#!/usr/bin/env python3
# Requires Python 3.6+ with PIL
# hdradio_logo_correction.py: Utility to resize and encode images
# for use with the Station Logo service on HD Radio broadcasts
# Copyright (C) 2023-2024 W. Andrew Kirkman <drew@broadcastblueprint.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@kirkmawa
kirkmawa / get_cart.py
Created February 23, 2018 14:44
CGI script to convert lat/long to cartesian coordinates for the Lambert Conformal Conic projection
#!/usr/bin/env python
# This file gets raw cartesian coordinates for the Lambert Conformal Conic projection given a latitude/longitude pair.
# It is used to cross reference a user's location with an ESRI shapefile database.
import os
from urlparse import parse_qs
print "Content-type: text/html\n\n"
from pyproj import Proj
Remove-Module Hyper-V -ErrorAction SilentlyContinue
Import-Module Hyper-V -RequiredVersion 1.1
$VMFinalTable = @()
# Add VM host nodes to the following array
$VMHostNodes = @("E255HVC2H1","E255HVC2H2")
ForEach ($VMHostNode in $VMHostNodes) {
$VMList = Get-VM -ComputerName $VMHostNode | Where {$_.IsClustered -eq $true}
ForEach ($VMObj in $VMList) {
$VMObjTable = New-Object -TypeName PSObject
Add-Member -InputObject $VMObjTable -MemberType NoteProperty -Name "VMHostNode" -Value $VMObj.ComputerName

Keybase proof

I hereby claim:

  • I am kirkmawa on github.
  • I am kirkmawa (https://keybase.io/kirkmawa) on keybase.
  • I have a public key whose fingerprint is 8E9F E530 70D9 EA88 EE85 049F 4DCA 7B23 AA58 69B2

To claim this, I am signing this object:

@kirkmawa
kirkmawa / win10ps.ps1
Last active June 12, 2018 17:14
Remove default apps from Windows 10
Param(
[switch]$UninstallStore
)
## Updated 2018-06-12 for use with Windows 10 version 1803
$RemApps = @(
"Microsoft.Bing*",
"Microsoft.XboxApp*",
"Microsoft.Zune*",
"Microsoft.Office.OneNote*",