Skip to content

Instantly share code, notes, and snippets.

@jeffa00
jeffa00 / gist:13c269b1bcf732755fb1
Created March 6, 2016 00:13
Powershell module for converting flv files to mp4. I use it for the output of OpenBroadcaster.
<#
.Synopsis
Converts a video from flv to mp4.
.Description
Calls ffmpeg to convert a video from flv to mp4.
.Parameter InputFile
Name of the flv file to convert.
@jeffa00
jeffa00 / Get-Temperature
Last active July 28, 2024 20:10
Get CPU Temperature With PowerShell
# Please note that this is quite old at this point and may or may not work for you. I leave it here for historical purposes
# and just in case it can help someone. I think I may have been using Windows 7 when I wrote this.
function Get-Temperature {
$t = Get-WmiObject MSAcpi_ThermalZoneTemperature -Namespace "root/wmi"
$currentTempKelvin = $t.CurrentTemperature / 10
$currentTempCelsius = $currentTempKelvin - 273.15
$currentTempFahrenheit = (9/5) * $currentTempCelsius + 32
@jeffa00
jeffa00 / Speechy
Created February 12, 2013 02:10
Speech In PowerShell using Windows Speech API COM object
function Out-Speech($text) {
$speechy = New-Object –ComObject SAPI.SPVoice;
$voices = $speechy.GetVoices();
foreach ($voice in $voices) {
$voice.GetDescription();
$speechy.Voice = $voice;