- Download and install OBS from OBS Download
- Disable Hardware Acceleration in Chrome
- Open Chrome - Settings - Search for Hardware Acceleration - Turn off 'Use hardware acceleration when available' - Relaunch Chrome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# escape=` | |
ARG fromTag=latest | |
ARG WindowsServerCoreRepo=mcr.microsoft.com/windows/servercore | |
# Use server core as an installer container to extract PowerShell, | |
# As this is a multi-stage build, this stage will eventually be thrown away | |
FROM ${WindowsServerCoreRepo}:${fromTag} AS installer-env | |
ARG PS_VERSION=6.2.0 | |
ARG PS_PACKAGE_URL=https://github.com/PowerShell/PowerShell/releases/download/v${PS_VERSION}/PowerShell-${PS_VERSION}-win-x64.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-AzCachedAccessToken { | |
<# | |
.SYNOPSIS | |
Get the Bearer token from the currently set AzContext | |
.DESCRIPTION | |
Get the Bearer token from the currently set AzContext. Retrieves from Get-AzContext | |
.EXAMPLE | |
Get-AzCachedAccesstoken |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
/* | |
// Place your snippets for PowerShell here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
"Print to console": { | |
"prefix": "log", | |
"body": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-MsTeamsGroupId { | |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory=$true, | |
Position=0, | |
ValueFromPipeline=$true, | |
ValueFromPipelineByPropertyName=$true)] | |
[ValidateNotNullOrEmpty()] | |
[string] | |
$TeamName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Backup-Profile { | |
[CmdletBinding()] | |
param ( | |
[string] | |
$Path = "C:\support\git\gitwork\profile", | |
[switch] | |
$Push | |
) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Configuration LabBuild { | |
param ( | |
[Parameter()] | |
[ValidateNotNull()] | |
[PSCredential]$Credential = (Get-Credential -Credential 'Administrator') | |
) | |
Import-DscResource -Module PSDesiredStateConfiguration, xActiveDirectory | |
node $AllNodes.NodeName { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"files.defaultLanguage": "powershell", | |
"window.zoomLevel": -1, | |
"editor.renderWhitespace": "all", | |
"powershell.integratedConsole.focusConsoleOnExecute": false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Stolen from here: https://github.com/petere/git-whoami/blob/master/git-whoami | |
function Git-Whoami { | |
$author = git config user.name | |
$email = git config user.email | |
[pscustomobject]@{ | |
Author = $author | |
Email = $email | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-TwitchEvent { | |
[CmdletBinding(DefaultParameterSetName = 'Standard')] | |
param ( | |
[Parameter(Mandatory, | |
ParameterSetName = 'Standard')] | |
[string] | |
$UserName, | |
[Parameter(Mandatory, | |
ParameterSetName = 'Pipeline', |