Skip to content

Instantly share code, notes, and snippets.

I guess statuses are a thing now


I guess statuses are a thing now
View GitHub Profile
Chirishman / Get-DocInfo.ps1
Last active Jul 17, 2020
Get all metadata for old .doc files - Prototype
View Get-DocInfo.ps1
#* Setup
$BaseSelect = @(
Chirishman / InvalidKeyTypeExample.ps1
Created Jul 17, 2020
Invalid Key Type (Somehow)
View InvalidKeyTypeExample.ps1
$AllProperties = @(
'Last Author',
'Revision Number',
'Application Name',
Chirishman / PrototypeDDWrapper.ps1
Created Oct 31, 2019
Prototype wrapper for DD
View PrototypeDDWrapper.ps1
$ChocoInventory = choco list -lo
if ("$ChocoInventory" -notmatch 'qemu-img') {
choco install qemu-img -y
if ("$ChocoInventory" -notmatch '\ git\ ') {
choco install git -y
$env:path += ';c:\program files\git\usr\bin'

Authoring Richly Formatted Audiobooks

Why Bother

If you're anything like me (and I recognize that most people aren't) then you listen to a lot of audiobooks in a year. As technology advances though, there can be a temptation to either rebuy audiobooks which you bought on other media like CD in the past or to skip content that is only available in older formats due to inconveniences like lack of bookmarking, inability to skip to a desired chapter, and the player not remembering your position between sessions.

Now I've not been one to let these things stop me, I figure there always has to be a way to author advanced audiobooks if you try hard enough. I know it's possible to convert books in a very basic way simply by merging all of the CD tracks into one file and converting it to M4A (AAC) and renaming the file extension and I've done so in the past. Unfortunately the only thing that helps with is the basic player position memory and iTunes doesn't include a way to merge the CD tracks into a single file

View cmdline.txt
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=14a75fe9-02 rootfstype=ext4 elevator=deadline fsck.mode=skip rootwait loglevel=3 consoleblank=0 plymouth.enable=0
View MaintenancePatching.ps1
class MaintenancePatching {
Chirishman / Listener.ps1
Created May 28, 2019
PowerShell Keypress Listener
View Listener.ps1
# Currently using two c# types because I can't figure out how to capture the return of the big/first one listed here.
# Any help on that is appreciated.
add-type @'
using System;
using System.Runtime.InteropServices;
using System.Diagnostics;
namespace GlobalLowLevelHooks
View File Handler Differences.txt
Name Property
---- --------
.vbs (default) : VBSFile
Chirishman / ConvertTo-UTF8.ps1
Created Apr 15, 2019
Function to convert a file on disk to UTF8-NoBOM
View ConvertTo-UTF8.ps1
function ConvertTo-UTF8 {
[string]$Contents = (Get-Content -Path $Path) -join "`r`n"
$Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding $False
Chirishman / Convertto-OutlookHTMLTable.ps1
Last active Mar 22, 2019
Function to allow advanced table styling in HTML based emails opened in Outlook
View Convertto-OutlookHTMLTable.ps1
Function Convertto-OutlookHTMLTable {
[string]$Delimiter = ',',