Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻

Kevin Kirkpatrick vScripter

👨‍💻
View GitHub Profile
@cdhunt
cdhunt / PerfmonCountersDrive
Last active Aug 29, 2015
Perfmon Counter Provider
View PerfmonCountersDrive
root {
Get-Counter -ListSet * | Select-Object -ExpandProperty CounterSetName | foreach-object {
$content = $_;
script $content {
Get-Counter -ListSet $content
}.GetNewClosure();
}
}
View gist:5fea04e28f4730c9a129
function Get-DownloadSpeed
{
[CmdletBinding()]
Param
(
# Param1 help description
[Parameter(Mandatory=$true, Position=0)]
$SpeedtestServer,
@dfinke
dfinke / PSSummit.ps1
Last active Aug 29, 2015
PowerShell GUI for viewing YouTube Videos of the PowerShell NA Summit 2015
View PSSummit.ps1
Add-Type -AssemblyName PresentationFrameWork
$MainWindow=@'
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Topmost="True"
WindowStartupLocation="CenterScreen"
Title="PowerSHell Summit Videos" Height="850" Width="1200">
<Grid>
<Grid.RowDefinitions>
View Get-DotNetVersion.ps1
<#
.SYNOPSIS
Gets the installed .NET versions.
.DESCRIPTION
Gets the versions of all installed Microsoft .NET Framework builds
installed on the local computer.
.EXAMPLE
.\Get-DotNetVersion
@mattifestation
mattifestation / list_assemblies.ps1
Created Aug 21, 2016
Enumerate loaded assemblies in PowerShell on Linux and OSX. This is subject to change.
View list_assemblies.ps1
[PSObject].Assembly.GetType('System.Management.Automation.ClrFacade').GetMethod('GetAssemblies', [Reflection.BindingFlags] 'NonPublic, Static', $null, @([String]), $null).Invoke($null, @(''))
@fearthecowboy
fearthecowboy / PowerShellWebServer.ps1
Last active Aug 25, 2017
PowerShell Webserver that restarts when you edit the script.
View PowerShellWebServer.ps1
#
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@a7madgamal
a7madgamal / dark.md
Last active Jun 23, 2020
Dark mode for Slack on MacOS
View dark.md
You can’t perform that action at this time.