Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
#
# repl-game.rb
# Copyright (C) 2017 Gregory Stula <[email protected]>
#
# Distributed under terms of the MIT license.
#
def colorize(text, color_code)
"\e[#{color_code}m#{text}\e[0m"
##########
# Win10 Initial Setup Script
# Author: Disassembler <[email protected]>
# Version: 1.4, 2016-01-16
##########
# Ask for elevated permissions if required
If (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]"Administrator")) {
Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs
Exit