This file contains hidden or 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 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)" |
This file contains hidden or 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
# POWERSHELL | |
Update-ExecutionPolicy Unrestricted | |
# Install Chocolatey | |
if ((Get-Command "choco" -ErrorAction SilentlyContinue) -eq $null) | |
{ | |
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
} | |
function Invoke-RefreshEnvironment { |
This file contains hidden or 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
# Description: Boxstarter Script | |
# Author: Michael Tyson <[email protected]> | |
# Last Updated: 2017-09-29 | |
# Based On: @jessfraz gist https://gist.github.com/jessfraz/7c319b046daa101a4aaef937a20ff41f | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned | |
# |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
{ | |
"plugins": [ "git", "hg", "ssh", "z", "aliases", "dircolors" ], | |
"dircolors": { | |
"dirs": [ | |
[".*", "cyan", ""] | |
], | |
"files": [ | |
["(?ix).(7z|zip|tar|gz|rar)$", "darkcyan", ""], | |
["(?ix).(exe|bat|cmd|py|pl|ps1|psm1|vbs|rb|reg)$", "darkgreen", ""], | |
["(?ix).(doc|docx|ppt|pptx|xls|xlsx|mdb|mdf|ldf)$", "magenta", ""], |