Skip to content

Instantly share code, notes, and snippets.

View Chirishman's full-sized avatar
⚔️
I guess statuses are a thing now

Chirishman

⚔️
I guess statuses are a thing now
View GitHub Profile
@Chirishman
Chirishman / Get-LocalDiskReport.ps1
Last active August 28, 2023 22:10
Use PowerForensics to get a list of all files and their sizes from a local NTFS volume's Master File Table
# install-module powerforensics
# import-module powerforensics
function Get-LocalDiskReport {
[CmdletBinding()]
Param(
[Parameter(Mandatory)]
[string]
[ValidateSet('\\.\A:','\\.\B:','\\.\C:','\\.\D:','\\.\E:','\\.\F:','\\.\G:','\\.\H:','\\.\I:','\\.\J:','\\.\K:','\\.\L:','\\.\M:','\\.\N:','\\.\O:','\\.\P:','\\.\Q:','\\.\R:','\\.\S:','\\.\T:','\\.\U:','\\.\V:','\\.\W:','\\.\X:','\\.\Y:','\\.\Z:')]
$VolumeName,
function Export-MFT {
<#
.SYNOPSIS
Extracts master file table from volume.
Version: 0.1
Author : Jesse Davis (@secabstraction)
License: BSD 3-Clause
.DESCRIPTION
@Chirishman
Chirishman / Get-DocInfo.ps1
Last active July 17, 2020 23:19
Get all metadata for old .doc files - Prototype
#* Setup
$BaseSelect = @(
'Directory',
'Extension',
'BaseName',
'Length',
'LastWriteTime',
'FullName'
)
@Chirishman
Chirishman / InvalidKeyTypeExample.ps1
Created July 17, 2020 22:35
Invalid Key Type (Somehow)
$AllProperties = @(
'Title',
'Subject',
'Author',
'Keywords',
'Comments',
'Template',
'Last Author',
'Revision Number',
'Application Name',
@Chirishman
Chirishman / PrototypeDDWrapper.ps1
Created October 31, 2019 00:35
Prototype wrapper for DD
$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

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
[DscResource()]
class MaintenancePatching {
[DscProperty(Key)]
[string]$Name
[DscProperty()]
[string]$MaintenanceWindow
[DscProperty()]
[boolean]$SingleInstance
@Chirishman
Chirishman / Listener.ps1
Created May 28, 2019 23:56
PowerShell Keypress Listener
# 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
{
Hive: HKEY_CLASSES_ROOT
Name Property
---- --------
.vbs (default) : VBSFile