Skip to content

Instantly share code, notes, and snippets.

View go2tom42's full-sized avatar

tom42 go2tom42

  • Earth
View GitHub Profile
@go2tom42
go2tom42 / Sync-SRT.ps1
Last active November 10, 2024 16:49
Change framerate for SRT subtitle files
function Sync-SRT {
[CmdletBinding()]
Param(
[Parameter(Mandatory=$false)]
[double]$SourceFPS,
[Parameter(Mandatory=$false)]
[double]$TargetFPS,
[Parameter(Mandatory=$false)]
[double]$milliseconds,
@go2tom42
go2tom42 / Sync-Chapters.ps1
Last active November 10, 2024 08:20
Change framerate for OGM Chapter files
function Sync-Chapters {
[CmdletBinding()]
Param(
[Parameter(Mandatory=$false)]
[double]$SourceFPS,
[Parameter(Mandatory=$false)]
[double]$TargetFPS,
[Parameter(Mandatory=$false)]
[double]$milliseconds,
@go2tom42
go2tom42 / fftheme.ps1
Last active October 11, 2024 05:16
Updates my firefox theme
#Requires -Version 7.0
function Update-FFTheme {
<#
.SYNOPSIS
Install and updates Firefox to a custum Theme.
.DESCRIPTION
Install and updates Firefox to a custum Theme.
It closes and reopens Firefox
It downloads 3 files from github
@go2tom42
go2tom42 / Convert-CIX2CBI.ps1
Created October 8, 2024 04:39
Converts Comic Book Metadata, ComicInfo.xml to ComicBookInfo.txt
#Usage Convert-CIX2CBI -in "Path\ComicInfo.xml" -out "Path\ComicBookInfo.txt"
function Convert-CIX2CBI {
[CmdletBinding()]
param (
[Parameter(Mandatory = $true)]
$Infile,
[Parameter(Mandatory = $false)]
$Outfile = $Input.replace('xml','json')
@go2tom42
go2tom42 / Start-Normalize.ps1
Last active May 11, 2024 18:02
Normalize Default audio track, inserts it in Video file, original audio remains
function Start-Normalize {
<#
.SYNOPSIS
Normalized Default audio track, inserts it in Video file, original audio remains a different audio track
.DESCRIPTION
Normalized Default audio track, inserts it in Video file, original audio remains a different audio track
.PARAMETER file
Path to video file that needs normalizing
.PARAMETER codec
@go2tom42
go2tom42 / StartMeUp.ps1
Last active February 16, 2024 01:15
StartMeUp
param(
[string]$a
)
Set-Location $env:userprofile
Set-executionpolicy -Force -executionpolicy unrestricted;[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
Install-PackageProvider -Name NuGet -Force;
New-PSDrive -Name "Z" -PSProvider "FileSystem" -Root "\\192.168.1.75\share" -Persist
Install-Module -Name tom42tools -Force -AllowClobber;
Import-Module -Name tom42tools -Force;

Did you know you can install fonts without elevation?

The catch is that they're only available for the duration of your session. They are, however, available in all apps across the system.

Someone asked about how to do it on Facebook this week, and at first, I just pointed them at the install script for PowerLineFonts which loops through all the fonts in a folder and install them.

I've used this more than a few times to install some fonts, including the PowerLine ones, which are great:

$sa = New-Object -ComObject Shell.Application
@go2tom42
go2tom42 / FONToMASS.ps1
Created January 26, 2023 21:56
FONToMASS downloader
#CHANGE⌄
$pages = 869
#CHANGE^
# DON'T CHANGE⌄
Function Get-RedirectedUrl {
Param (
[Parameter(Mandatory = $true)]
[String]$URL