Skip to content

Instantly share code, notes, and snippets.

Jeff Ammons jeffa00

Block or report user

Report or block jeffa00

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jeffa00
jeffa00 / gist:13c269b1bcf732755fb1
Created Mar 6, 2016
Powershell module for converting flv files to mp4. I use it for the output of OpenBroadcaster.
View gist:13c269b1bcf732755fb1
<#
.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 Oct 24, 2019
Get CPU Temperature With PowerShell
View Get-Temperature
function Get-Temperature {
$t = Get-WmiObject MSAcpi_ThermalZoneTemperature -Namespace "root/wmi"
$currentTempKelvin = $t.CurrentTemperature / 10
$currentTempCelsius = $currentTempKelvin - 273.15
$currentTempFahrenheit = (9/5) * $currentTempCelsius + 32
return $currentTempCelsius.ToString() + " C : " + $currentTempFahrenheit.ToString() + " F : " + $currentTempKelvin + "K"
}
@jeffa00
jeffa00 / Speechy
Created Feb 12, 2013
Speech In PowerShell using Windows Speech API COM object
View Speechy
function Out-Speech($text) {
$speechy = New-Object –ComObject SAPI.SPVoice;
$voices = $speechy.GetVoices();
foreach ($voice in $voices) {
$voice.GetDescription();
$speechy.Voice = $voice;
You can’t perform that action at this time.