Skip to content

Instantly share code, notes, and snippets.

Write-Host "=== Surface Baseline Audit ===" -ForegroundColor Cyan
Write-Host ""
Write-Host "Sleep states:"
powercfg /a
Write-Host ""
Write-Host "Sleep configuration:"
powercfg /query SCHEME_CURRENT SUB_SLEEP
Write-Host ""
@garrans
garrans / shell-setup.ps1
Last active February 25, 2023 13:37 — forked from mikepruett3/shell-setup.ps1
Packages to install via scoop, winget, choco, and other tools...
<#
.SYNOPSIS
Script to Initialize my custom powershell setup.
.DESCRIPTION
Script uses scoop
Use the following command to execute
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://gist.github.com/garrans/332cf115c27e58ef1035552e7d027c4d/raw/shell-setup.ps1'))"
.NOTES
**NOTE** Will configure the Execution Policy for the "CurrentUser" to Unrestricted.
@garrans
garrans / mt7610u-rpi-crosscompile.md
Created August 9, 2020 06:49 — forked from FantomJAC/mt7610u-rpi-crosscompile.md
Cross Compile MT7610U Driver for RPi2/3

Cross Compile MT7610U Driver for RPi2/3

$ mkdir bcm-staging
$ export WORK=`pwd`/bcm-staging

RPi2/3 Kernel

Setup toolchain

$ cd ${WORK}
$ git clone https://github.com/raspberrypi/tools