Skip to content

Instantly share code, notes, and snippets.


Cory Knox (He/Him) corbob

View GitHub Profile
View install-workstation.ps1
# Set execution Policy for the system
Set-ExecutionPolicy Bypass -Force
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString(''))
Invoke-WebRequest -Uri -OutFile C:\Packages.config -UseBasicParsing
choco feature enable -n allowGlobalConfirmation
choco install c:\packages.config

Keybase proof

I hereby claim:

  • I am corbob on github.
  • I am corbob ( on keybase.
  • I have a public key ASCQVZrOBgetkLnKtKfxiikJWM8JR0hRwdFDJDlc-cCjnAo

To claim this, I am signing this object:

View update-nvim.ps1
function Update-Nvim {
Invoke-WebRequest -OutFile $env:TEMP\
Expand-Archive $env:TEMP\ C:\tools\neovim -Force
View discordDoneGud.js
// Put the contents of this gist into any js file within "C:\Users\<user>\AppData\Roaming\discord\0.0.306\modules\"
// I put it in "C:\Users\<username>\AppData\Roaming\discord\0.0.306\modules\discord_dispatch\index.js"
const sb = document.querySelector('[class^="sidebar-"]');
const sbWidth =;
function toggleHide() {
if ( === sbWidth) { = "0"
} else {
View resume.json
"meta": {
"theme": "stackoverflow"
"basics": {
"name": "Cory Knox",
"email": "",
"website": "",
"summary": "Experienced PowerShell developer with a penchant for automation. Continually looking for efficiency improvements through code.",
"location": {
View my.css
h2 {
content: "<div>corbob</div>"
MIT License
Copyright (c) 2019
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
View hmmmm.ps1
# Works
# doesn't work...
param (
View GetHotKeys.vbs
Sub GenerateFullHotkeyList
on error resume next
Set objShell = CreateObject("Shell.Application")
' GenerateFullHotkeyInFolder(objShell.NameSpace(11)) '
GenerateFullHotkeyInFolder(objShell.NameSpace(17)) 'My Comp
headrow = "<THEAD class=instruct>" & vbcrlf & "<TR><TD WIDTH=" & chr(34) & "20%" & chr(34) & "><b>Key</b></TD><TD WIDTH=" & chr(34) & "35%" & chr(34) & "><b>Shortcut Location</b><br>Click to find in Explorer</TD><TD WIDTH=" & chr(34) & "35%" & chr(34) & "><b>Target</b><br>Click to find in Explorer</TD></TR></THEAD>"
If DiagVar<>"" then
FullHotKeyList.InnerHTML = "<table id=tfullhotkeylist>" & headrow & DiagVar & "</table>"
FullHotKeyList.InnerHTML = "<p style='color:red'><b>No hotkeys found</b></p>"
View hmmmm.ps1
I would like to turn this:
Envelope = [ordered]@{
Header = ''
Body = [ordered]@{
listPhone = [ordered]@{
searchCriteria = [ordered]@{
callingSearchSpaceName = '%'
returnedTags = [ordered]@{