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
function Load { | |
param([scriptblock]$function, | |
[string]$Label) | |
$job = Start-Job -ScriptBlock $function | |
$symbols = @("⣾⣿", "⣽⣿", "⣻⣿", "⢿⣿", "⡿⣿", "⣟⣿", "⣯⣿", "⣷⣿", | |
"⣿⣾", "⣿⣽", "⣿⣻", "⣿⢿", "⣿⡿", "⣿⣟", "⣿⣯", "⣿⣷") | |
$i = 0; | |
while ($job.State -eq "Running") { | |
$symbol = $symbols[$i] |
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
function Elevate { | |
Param ($Path) | |
if (-Not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator') ` | |
-And [int](Get-CimInstance -Class Win32_OperatingSystem | Select-Object -ExpandProperty BuildNumber) -ge 6000) | |
{ | |
$CommandLine = "-File `"$Path`"" | |
Start-Process -FilePath PowerShell.exe -Verb Runas -ArgumentList $CommandLine | |
Exit | |
} | |
} |
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
@echo off | |
:: BatchGotAdmin | |
:------------------------------------- | |
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" | |
if '%errorlevel%' NEQ '0' ( | |
echo Requesting administrative privileges... | |
goto UACPrompt | |
) else ( goto gotAdmin ) | |
:UACPrompt | |
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" |
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
# For use with vscode standard (non insiders) change "code-insiders" to "code" | |
code-insiders.cmd --list-extensions | ForEach-Object {Write-Output "code-insiders --install-extension $_"} > vscode-extension-installer.ps1 |
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
# For use with vscode standard (non insiders) change "code-insiders" to "code" | |
code-insiders --install-extension 13xforever.language-x86-64-assembly | |
code-insiders --install-extension adamwalzer.string-converter | |
code-insiders --install-extension aeschli.vscode-css-formatter | |
code-insiders --install-extension alefragnani.Bookmarks | |
code-insiders --install-extension alefragnani.project-manager | |
code-insiders --install-extension bengreenier.vscode-node-readme | |
code-insiders --install-extension buianhthang.xml2json | |
code-insiders --install-extension castwide.solargraph | |
code-insiders --install-extension christian-kohler.path-intellisense |
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
// https://hyper.is#cfg | |
module.exports = { | |
config: | |
{ | |
updateChannel: 'stable', | |
// Fonts | |
fontFamily: 'Consolas', | |
fontSize: 14, |