Skip to content

Instantly share code, notes, and snippets.

View PatTheMav's full-sized avatar

Patrick Heyer PatTheMav

View GitHub Profile
@PatTheMav
PatTheMav / cheatsheet.ps1
Created March 6, 2023 16:14 — forked from pcgeek86/cheatsheet.ps1
PowerShell Cheat Sheet / Quick Reference
Get-Command # Retrieves a list of all the commands available to PowerShell
# (native binaries in $env:PATH + cmdlets / functions from PowerShell modules)
Get-Command -Module Microsoft* # Retrieves a list of all the PowerShell commands exported from modules named Microsoft*
Get-Command -Name *item # Retrieves a list of all commands (native binaries + PowerShell commands) ending in "item"
Get-Help # Get all help topics
Get-Help -Name about_Variables # Get help for a specific about_* topic (aka. man page)
Get-Help -Name Get-Command # Get help for a specific PowerShell function
Get-Help -Name Get-Command -Parameter Module # Get help for a specific parameter on a specific command
@PatTheMav
PatTheMav / Example_Markup.html
Created June 6, 2016 17:58
Infinite Scroll bug with Media embedded via MediaElement.js (Jetpack issue #1439)
<div class="jetpack-video-wrapper">
<div class="wp-video" style="width: 640px; ">
<!--[if lt IE 9]><script>document.createElement('video');</script><![endif]-->
<span class="mejs-offscreen">
Video Player
</span>
<div aria-label="Video Player" class="mejs-container svg wp-video-shortcode mejs-video" id="mep_0" role="application" style="width: 523px; height: 294px;" tabindex="0">
<div class="mejs-inner">
<div class="mejs-mediaelement">
<span class="mejs-offscreen">