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
/* ==UserStyle== | |
@name Microsoft Build 2023 - Hide Chat | |
@version 20230524.16.47 | |
@namespace ? | |
==/UserStyle== */ | |
@-moz-document domain("build.microsoft.com") { | |
#studioplayer-container > div > div.home-page__live-stream--content__video { | |
width: 100%; |
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
@-moz-document url-prefix("https://radacad.6connex.com/event/") { | |
.related-content .self-content .screen-container { | |
width: 100% !important; | |
min-height: 600px !important; | |
max-height: 1024px !important; | |
margin-bottom: 6px !important; | |
height: 100% !important; | |
} |
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
# WARNING: NON-WORKING CODE - DO NOT USE IN PRODUCTION! | |
#TODO: Implement $AppName & $MainWindowHandle parameters | |
function Set-WindowState { | |
<# | |
.SYNOPSIS | |
Set a given window state using WinAPI. | |
.DESCRIPTION | |
Use the ShowWindowAsync function to set the Window state for |
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
# To download and install, run this command in PowerShell: | |
# PowerShell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/JamesDBartlett3/40d4459e39402cbc30a73731e310a27c/raw/'))" | |
#Install WinGet | |
#Based on this gist: https://gist.github.com/Codebytes/29bf18015f6e93fca9421df73c6e512c | |
$hasPackageManager = Get-AppPackage -name 'Microsoft.DesktopAppInstaller' | |
if (!$hasPackageManager -or [version]$hasPackageManager.Version -lt [version]"1.10.0.0") { | |
"Installing winget Dependencies" | |
Add-AppxPackage -Path 'https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx' |
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
<?xml version="1.0"?> | |
<root> | |
<version major="2" minor="19" revision="2" build="0" /> | |
<OfficeMouse Enable="false" /> | |
<Layers Number="3" /> | |
<Cursor Allow="true" Speed="6" CS1="6" CS2="7" CS3="10" CS4="2" ChangeLayer="true" ChangeChord="1" ChangeHeld="1" EnhancePointerPrecision="1" /> | |
<Logging Disable="false" Thread="false" /> | |
<RazorMouse DoubleClickFix="false" /> | |
<ScrollWheel ScrollWindowUnderCursor="true" /> | |
<ScrollLock BypassAll="true" BypassDisabled="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
<# | |
Custom PowerShell Functions and Aliases | |
Author: @JamesDBartlett3 | |
#> | |
################################################################################################## | |
<# | |
Stop-ProcessName | |
Alias: spn | |
Example 1: Stop-ProcessName explorer |
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
/********************************************************************************************************************************\ | |
# Description | |
- Some videos on YouTube have a problem where the sound only comes out of the left or right channel | |
- This happens when the person who edits the video forgets to convert any mono audio signals to stereo before rendering | |
- Run this JavaScript snippet in your web browser to make YouTube play stereo audio as mono (same audio signal on all channels) | |
# How To Use | |
- Method 1 (best): Copy/paste into "Custom script" box in "Enhancer for YouTube™ (download & instructions: bit.ly/3GmQgZC) | |
- Method 2: Install as a UserScript using Tampermonkey, Greasemonkey, etc. (download & instructions: bit.ly/3K6B991) |
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
# Source: https://social.technet.microsoft.com/Forums/en-US/2e7db624-2260-4a65-a57b-f6f2e22312f0/sha1-hash-of-an-entire-folder-structure | |
Function Get-FolderHash ($folder) { | |
Get-ChildItem $folder -Recurse | | |
Where-Object {!$_.psiscontainer} | | |
ForEach-Object {[Byte[]]$contents += [System.IO.File]::ReadAllBytes($_.fullname)} | |
$hasher = [System.Security.Cryptography.SHA1]::Create() | |
[string]::Join("",$($hasher.ComputeHash($contents) | ForEach-Object {"{0:x2}" -f $_})) | |
} |
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
// ==UserScript== | |
// @name Power BI - Left Filter Pane | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Move Power BI report filter pane from right side of canvas to left side | |
// @author James D. Bartlett III (@JamesDBartlett3) | |
// @match https://app.powerbi.com/* | |
// @icon https://www.google.com/s2/favicons?domain=powerbi.com | |
// @grant none | |
// ==/UserScript== |
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
#------------------------------------------------------------------------------------------------------------------ | |
# Author: James Bartlett @jamesdbartlett3 | |
# Synopsis: Uses ffmpeg to compress a webinar video to a much more manageable size | |
# Requires: ffmpeg CLI application, accessible in path | |
# Assumes: | |
#------------------------------------------------------------------------------------------------------------------ | |
function Compress-WebinarVideo { |
NewerOlder