Skip to content

Instantly share code, notes, and snippets.

@smorris93
smorris93 / 0_reuse_code.js
Created December 3, 2015 11:22
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
@smorris93
smorris93 / UninstallUpdates.ps1
Last active September 1, 2015 13:46
Powershell script that uninstalls every windows update on your current machine.
# This script will uninstall every windows update on your machine (that it can)
# Don't run unless you really want all updates removed ...
# Restart PC when finished
$file = "./updateList.txt"
Function GetUpdateList
{
if(Test-Path $file) {
Remove-Item $file
}
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
cinst chocolatey
cinst notepadplusplus.install
cinst sublimetext3
cinst visualstudiocode
cinst maven -version 3.2.1
cinst firefox -version 21.0
cinst googlechrome
cinst vlc
@smorris93
smorris93 / jhipster-install
Last active May 24, 2017 06:29
Uses Chocolatey to download and install jhipster and its dependencies.
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
choco install -y java.jdk
choco install -y git.install
choco install -y nodejs
choco upgrade -y nodejs.install
npm install -g yo
npm install -g bower
npm install -g grunt-cli
npm install -g generator-jhipster