Skip to content

Instantly share code, notes, and snippets.

ipmo -force Polaris
New-PolarisStaticRoute -FolderPath . -RoutePath /public -EnableDirectoryBrowser $True
New-PolarisRoute -Path "/*" -Method GET -Scriptblock {
$PDFContent = Get-Content -Path "7121_Enhancing_remote_access_in_Windows_10_with_an_automatic_VPN_profile_TCS.pdf" -Raw
$PDFContent = Get-Content -Path "7121_Enhancing_remote_access_in_Windows_10_with_an_automatic_VPN_profile_TCS.pdf"
$PDFContent = Get-Content -Path "7121_Enhancing_remote_access_in_Windows_10_with_an_automatic_VPN_profile_TCS.pdf"
$Response.SetContentType("application/pdf")
$Response.SetHeader("Transfer-Encoding", "chunked")
@ChrisMagnuson
ChrisMagnuson / FetchTest.js
Last active November 20, 2018 04:26
Fetch example with all Promises evaluated
fetch("https://www.google.com").then(response => response.text().then(text => console.log(text)))
fetch("https://www.google.com")
.then(
response =>
response.text()
.then(
text =>
console.log(text)
)
function test {
param (
$Parameter1,
$Parameter2
)
$PSBoundParameters
}
$spalt = @{}
test @spalt
@ChrisMagnuson
ChrisMagnuson / Update-AUPackages.md
Last active June 6, 2018 01:32
Update-AUPackages Report #powershell #chocolatey
@ChrisMagnuson
ChrisMagnuson / Update-AUPackages.md
Created January 26, 2017 00:04
Update-AUPackages Report #powershell #chocolatey
@ChrisMagnuson
ChrisMagnuson / Update-AUPackages.md
Created January 25, 2017 00:04
Update-AUPackages Report #powershell #chocolatey
@ChrisMagnuson
ChrisMagnuson / Update-AUPackages.md
Created January 24, 2017 00:04
Update-AUPackages Report #powershell #chocolatey
@ChrisMagnuson
ChrisMagnuson / Update-AUPackages.md
Created January 23, 2017 00:05
Update-AUPackages Report #powershell #chocolatey
@ChrisMagnuson
ChrisMagnuson / Update-AUPackages.md
Created January 22, 2017 00:04
Update-AUPackages Report #powershell #chocolatey
@ChrisMagnuson
ChrisMagnuson / Update-AUPackages.md
Created January 21, 2017 00:04
Update-AUPackages Report #powershell #chocolatey