Skip to content

Instantly share code, notes, and snippets.

@corbob
corbob / vscode-powershell-alpha-goodness.md
Last active December 24, 2023 09:01
VSCode + PSReadline - How To Start Using the Alpha PowerShell Extension for PSReadline Goodness Now

VSCode + PSReadline - How To Start Using the Alpha PowerShell Extension for PSReadline Goodness Now

Courtesy of @scrthq from slack

Chatting on Twitter with @ctmcisco about this and figured it would be worth posting for everyone here, in case anyone else is curious!

  1. Go to the Branches tab on the vscode-powershell repo in GitHub: https://github.com/PowerShell/vscode-powershell/branches
  2. Find the 2.0.0 branch, then click the green check mark in the center of the page.
  3. Click the blue Details link next to the AppVeyor line. This will take you to the most recent AppVeyor build of that branch.
  4. On the top-right of the page, just above the console output, click the Artifacts tab.
@corbob
corbob / ChocolateyGui.log
Created August 30, 2022 22:34
Chocolatey GUI Log
2022-08-30 15:27:45.542 -07:00 [Information] chocolatey - https://community.chocolatey.org/api/v2/ | Priority 0|Bypass Proxy - False|Self-Service - False|Admin Only - False.
2022-08-30 15:27:45.555 -07:00 [Information] test - c:\temp | Priority 0|Bypass Proxy - False|Self-Service - False|Admin Only - False.
2022-08-30 15:28:34.635 -07:00 [Information] Installing the following packages:
2022-08-30 15:28:34.636 -07:00 [Information] delayed
2022-08-30 15:28:34.636 -07:00 [Information] By installing, you accept licenses for the packages.
2022-08-30 15:28:34.906 -07:00 [Information] [NuGet] Installing '"delayed 3.3.3"'.
2022-08-30 15:28:35.171 -07:00 [Information] [NuGet] Successfully installed '"delayed 3.3.3"'.
2022-08-30 15:28:35.173 -07:00 [Information]
delayed v3.3.3
2022-08-30 15:28:35.184 -07:00 [Information] delayed package files install completed. Performing other installation steps.
@corbob
corbob / chocolateyInstall.ps1
Last active August 26, 2022 20:53
Delay Chocolatey output
write-host Hello World
Start-Sleep -Seconds 30
Write-Warning Warning
Start-Sleep -Seconds 30
Write-Error 'Bad Things'
Start-Sleep -Seconds 30
@corbob
corbob / install-workstation.ps1
Last active April 3, 2022 00:01
New Workstation
# 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('https://community.chocolatey.org/install.ps1'))
Invoke-WebRequest -Uri https://gist.githubusercontent.com/corbob/cc3fb9f4558eacfe002b320223624484/raw/d54a50248980faf078bc19bbde401da436082dd6/packages.config -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 (https://keybase.io/corbob) on keybase.
  • I have a public key ASCQVZrOBgetkLnKtKfxiikJWM8JR0hRwdFDJDlc-cCjnAo

To claim this, I am signing this object:

{
"meta": {
"theme": "stackoverflow"
},
"basics": {
"name": "Cory Knox",
"email": "me@coryknox.dev",
"website": "https://www.coryknox.dev",
"summary": "Experienced PowerShell developer with a penchant for automation. Continually looking for efficiency improvements through code.",
"location": {
function Update-Nvim {
Invoke-WebRequest https://github.com/neovim/neovim/releases/download/nightly/nvim-win64.zip -OutFile $env:TEMP\nvim.zip
Expand-Archive $env:TEMP\nvim.zip C:\tools\neovim -Force
}
// 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 = sb.style.width;
function toggleHide() {
if (sb.style.width === sbWidth) {
sb.style.width = "0"
} else {
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: