Skip to content

Instantly share code, notes, and snippets.

View myty's full-sized avatar
👋
Hi

Michael Tyson myty

👋
Hi
View GitHub Profile
@myty
myty / 0_reuse_code.js
Created June 30, 2016 14:37
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@myty
myty / InstallWinGet.ps1
Last active December 9, 2022 13:37 — forked from crutkas/InstallWinGet.ps1
InstallWinGet PowerShell
function InstallWinGet()
{
$hasPackageManager = Get-AppPackage -name "Microsoft.DesktopAppInstaller"
if(!$hasPackageManager)
{
$releases_url = "https://api.github.com/repos/microsoft/winget-cli/releases/latest"
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$releases = Invoke-RestMethod -uri "$($releases_url)"