Skip to content

Instantly share code, notes, and snippets.

@mattmhersh
mattmhersh / SetupMachine.bat
Last active June 19, 2017 14:58
Setup Developer Machine
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
choco feature enable -n allowGlobalConfirmation
choco install sublimetext3 visualstudiocode mobaxterm cmder dropbox jing nodejs mongodb -y
@mattmhersh
mattmhersh / InstallTools.ps1
Last active February 20, 2017 01:39
Setup Computer using Powershell
cls
powershell Set-ExecutionPolicy RemoteSigned
# Install Chocolatey
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
# Set Chocolatey Settings
choco feature enable -n=allowGlobalConfirmation
clear
function publish_packages ($local_dir) {
Get-ChildItem -Path $local_dir -Filter *.nupkg |
Foreach-Object{
$package = $_.Name
Write-Host "Publishing Package: $package"
@mattmhersh
mattmhersh / GetNugetLocal.ps1
Last active September 22, 2015 15:49
GetNugetLocal.ps1
# --- settings ---
$feedUrlBase = "http://go.microsoft.com/fwlink/?LinkID=206669"
# the rest will be params when converting to funclet
$latest = $true
$overwrite = $false
$top = 500 #use $top = $null to grab all
$destinationDirectory = join-path ([Environment]::GetFolderPath("MyDocuments")) "NuGetLocal"
# --- locals ---
$webClient = New-Object System.Net.WebClient
@mattmhersh
mattmhersh / Chocolatey Install Programs
Created November 16, 2014 23:07
Chocolatey Install Programs
choco install GoogleChrome SublimeText3 SublimeText3.PackageControl Slickrun console2 procexp procmon zoomit 7zip jing putty paint.net PowerGUI beyondcompare fiddler filezilla dotPeek