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 / myty-pshazz-1.json
Last active August 29, 2015 14:21
myty-pshazz-themes
{
"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", ""],
@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 / Dev-Boxstarter-Base.ps1
Last active October 23, 2017 12:41
Dev-Boxstarter Scripts
# Description: Boxstarter Script
# Author: Michael Tyson <michaeltyson@outlook.com>
# 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
#
@myty
myty / DevBoxStarter.ps1
Last active December 9, 2022 13:35
DevBoxStarter
# 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 {
@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)"