Skip to content

Instantly share code, notes, and snippets.

@jeebak
Last active August 18, 2022 15:10
Show Gist options
  • Save jeebak/8064d35757c99b0cd507 to your computer and use it in GitHub Desktop.
Save jeebak/8064d35757c99b0cd507 to your computer and use it in GitHub Desktop.

Revisions

  1. jeebak revised this gist Oct 21, 2020. 1 changed file with 17 additions and 13 deletions.
    30 changes: 17 additions & 13 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -100,19 +100,20 @@ function _Install-Module {
    }

    # Packages
    # cmder # Using custom install in OneDrive, keeping its configs in git
    # Gow
    _cinst microsoft-windows-terminal
    #cinst powertoys

    # Git
    _cinst git.install # cmder contain: %CMDER_ROOT%\vendor\git-for-windows\ but...
    _cinst poshgit # git.install is a dependency
    _cinst git-credential-manager-for-windows # git.install is a dependency
    # _cinst github
    #cinst github

    # Editors
    # No SublimeText3, atom, or markdownpad2. Using...
    # cinst -y typora --pre
    # cinst visualstudiocode
    #cinst -y typora --pre
    #cinst visualstudiocode
    _cinst vscodium
    # w/ vim keybindings
    _cinst vim # for use under Powershell (there is no "fg" when suspending. Use "exit")
    @@ -140,9 +141,11 @@ _cinst virtualbox
    _cinst virtualbox.extensionpack
    _cinst vagrant
    _cinst docker-for-windows
    # _cinst docker
    # _cinst docker-machine
    # _cinst docker-compose
    _cinst wsl
    _cinst wsl-ubuntu-2004
    #cinst docker
    #cinst docker-machine
    #cinst docker-compose

    if (Test-PendingReboot) { Invoke-Reboot }

    @@ -156,16 +159,17 @@ _cinst sysinternals
    if (Test-PendingReboot) { Invoke-Reboot }

    # ansicon
    # babun # Going w/ cmder bash
    # babun # Obviated by wsl
    # cmder # Obviated by wsl
    # f.lux # Using (currently newer) beta version instead (manually installed)
    # sharpkeys # Elminated the need for this with this AHK scriptlet: https://superuser.com/a/581988
    # ... but would be useful on Macs re: cmd/option keys
    # There is no touchcursor package: http://martin-stone.github.io/touchcursor/download.html
    # using custom AutoHotKey script now
    _cinst acrylic-dns-proxy
    #cinst acrylic-dns-proxy # Causes problems with wsl
    _cinst autohotkey.install
    _cinst clipjump
    _cinst brave
    #cinst brave
    _cinst cshell
    _cinst cyberduck
    _cinst fiddler
    @@ -181,8 +185,8 @@ choco install -y openssh -params '"/SSHServerFeature"'

    _cinst paint.net
    _cinst pasteboard
    _cinst phpstorm
    # _cinst quicktime
    #cinst phpstorm
    #cinst quicktime
    _cinst rsync
    _cinst slack
    _cinst tor-browser
    @@ -200,7 +204,7 @@ _cinst youtube-dl
    # PowerShell: Invoke-WebRequest -Outfile index.html http://foo.com
    _cinst curl
    _cinst wget
    _cinst wox
    #cinst wox

    # Using the PortableApps version of these in OneDrive instead
    # 7zip.install
  2. jeebak revised this gist Feb 16, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -192,6 +192,7 @@ _cinst windirstat
    _cinst wireshark
    # CLI
    _cinst awscli
    _cinst bat
    _cinst jq
    _cinst pstools
    _cinst youtube-dl
  3. jeebak revised this gist Feb 16, 2020. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -110,11 +110,12 @@ _cinst git-credential-manager-for-windows # git.install is a dependency
    # _cinst github

    # Editors
    # No SublimeText3, atom, markdownpad2, or vim. Using...
    # No SublimeText3, atom, or markdownpad2. Using...
    # cinst -y typora --pre
    # cinst visualstudiocode
    _cinst vscodium
    # w/ vim keybindings
    _cinst vim # for use under Powershell (there is no "fg" when suspending. Use "exit")

    # Node, npm
    # nodejs.install
    @@ -164,6 +165,7 @@ if (Test-PendingReboot) { Invoke-Reboot }
    _cinst acrylic-dns-proxy
    _cinst autohotkey.install
    _cinst clipjump
    _cinst brave
    _cinst cshell
    _cinst cyberduck
    _cinst fiddler
  4. jeebak revised this gist Dec 12, 2019. 1 changed file with 9 additions and 2 deletions.
    11 changes: 9 additions & 2 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -62,6 +62,8 @@ if (!(Test-Path 'C:\ProgramData\chocolatey\bin\choco.exe')) {

    # test for this (choco list --source windowsfeatures)
    cinst -y Microsoft-Hyper-V-All -source windowsFeatures
    # https://www.microsoft.com/en-us/download/details.aspx?id=55106
    # Linux Integration Services

    # Seed an associative array of all locally installed chocolatey packages
    $_installed_packages = @{}
    @@ -109,7 +111,9 @@ _cinst git-credential-manager-for-windows # git.install is a dependency

    # Editors
    # No SublimeText3, atom, markdownpad2, or vim. Using...
    _cinst visualstudiocode
    # cinst -y typora --pre
    # cinst visualstudiocode
    _cinst vscodium
    # w/ vim keybindings

    # Node, npm
    @@ -162,11 +166,12 @@ _cinst autohotkey.install
    _cinst clipjump
    _cinst cshell
    _cinst cyberduck
    _cinst fiddler4
    _cinst fiddler
    _cinst firefox
    _cinst greenshot
    _cinst linqpad
    _cinst malwarebytes
    _cinst mpv

    # https://chocolatey.org/packages/openssh
    # vs. https://docs.microsoft.com/en-us/windows/uwp/get-started/enable-your-device-for-development
    @@ -178,6 +183,7 @@ _cinst phpstorm
    # _cinst quicktime
    _cinst rsync
    _cinst slack
    _cinst tor-browser
    _cinst tortoisegit
    _cinst webpicmd
    _cinst windirstat
    @@ -191,6 +197,7 @@ _cinst youtube-dl
    # PowerShell: Invoke-WebRequest -Outfile index.html http://foo.com
    _cinst curl
    _cinst wget
    _cinst wox

    # Using the PortableApps version of these in OneDrive instead
    # 7zip.install
  5. jeebak revised this gist Aug 17, 2017. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -167,6 +167,11 @@ _cinst firefox
    _cinst greenshot
    _cinst linqpad
    _cinst malwarebytes

    # https://chocolatey.org/packages/openssh
    # vs. https://docs.microsoft.com/en-us/windows/uwp/get-started/enable-your-device-for-development
    choco install -y openssh -params '"/SSHServerFeature"'

    _cinst paint.net
    _cinst pasteboard
    _cinst phpstorm
  6. jeebak revised this gist Aug 16, 2017. 1 changed file with 40 additions and 9 deletions.
    49 changes: 40 additions & 9 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,9 @@
    #
    # https://github.com/tknerr/bills-kitchen
    # All you need for cooking with Chef and Vagrant on Windows you will find in Bill's Kitchen
    # https://github.com/tknerr/linus-kitchen
    # An Ubuntu-based developer VM for hacking with Chef, Vagrant, Docker & Co
    #
    # Based on: https://github.com/felixrieseberg/windows-development-environment

    # Test-Admin is not available yet, so use...
    @@ -59,8 +65,8 @@ cinst -y Microsoft-Hyper-V-All -source windowsFeatures

    # Seed an associative array of all locally installed chocolatey packages
    $_installed_packages = @{}
    choco list --localonly | % {
    $line = $_.split(' ')
    choco list --limitoutput --localonly | % {
    $line = $_.split('|')
    $_installed_packages[$line[0].ToLower()] = $line[1]
    }

    @@ -123,10 +129,15 @@ _cinst visualstudiocode
    # pip
    #
    # DevOps Stuff
    # virtualbox
    # virtualbox.extensionpack
    # vagrant
    # docker
    # Hyper-V, either/or?
    # http://www.hanselman.com/blog/SwitchEasilyBetweenVirtualBoxAndHyperVWithABCDEditBootEntryInWindows81.aspx
    _cinst virtualbox
    _cinst virtualbox.extensionpack
    _cinst vagrant
    _cinst docker-for-windows
    # _cinst docker
    # _cinst docker-machine
    # _cinst docker-compose

    if (Test-PendingReboot) { Invoke-Reboot }

    @@ -160,8 +171,10 @@ _cinst paint.net
    _cinst pasteboard
    _cinst phpstorm
    # _cinst quicktime
    _cinst rsync
    _cinst slack
    _cinst tortoisegit
    _cinst webpicmd
    _cinst windirstat
    _cinst wireshark
    # CLI
    @@ -211,7 +224,21 @@ $Shortcut.Save()
    # Set System Environment Variable:
    [Environment]::SetEnvironmentVariable("GIT_SSH", "C:\Program Files\TortoiseGit\bin\TortoiseGitPlink.exe", "Machine")

    # http://techness.co.uk/2014/08/17/installing-dig-on-windows-8-1/
    $_bind_path = "$env:USERPROFILE\OneDrive\Applications\BIND9.10.6.x64" # dig, host, nslookup (Update PATH)
    if ((Test-Path $_bind_path) -and ! [Environment]::GetEnvironmentVariable('Path', 'Machine') -match [regex]::Escape($_bind_path)) {
    [Environment]::SetEnvironmentVariable("Path", "${_bind_path};${env:Path}", "Machine")
    }

    # PowerShell Gallery
    _Install-Module posh-docker # https://www.powershellgallery.com/packages/posh-docker/0.0.2
    # https://github.com/samneirinck/posh-docker
    if (-Not (Test-Path $PROFILE)) {
    New-Item $PROFILE -Type File -Force
    }
    if (-Not (Get-Content $PROFILE | % { $_ -match 'Import-Module posh-docker' }) -contains $true) {
    Add-Content $PROFILE "`nImport-Module posh-docker"
    }
    _Install-Module Posh-Git # https://www.powershellgallery.com/packages/Posh-Git/0.7.1
    # Functions: Invoke-NullCoalescing Add-PoshGitToProfile Write-GitStatus Write-Prompt Write-VcsStatus Get-GitBranch Get-GitStatus Enable-GitColors Get-GitDirectory TabExpansion Get-AliasPattern Get-SshAgent Start-SshAgent Stop-SshAgent Add-SshKey Get-SshPath Update-AllBranches tgit
    # https://github.com/dahlbyk/posh-git
    @@ -231,10 +258,14 @@ _Install-Module oh-my-posh # https://www.powershellgallery.com/packages/oh-my-p
    # $ThemeSettings
    # $GitPromptSettings

    # http://techness.co.uk/2014/08/17/installing-dig-on-windows-8-1/
    # $env:USERPROFILE\OneDrive\Applications\BIND9.10.6.x64 # dig, host, nslookup (Update PATH)

    # Let's get Updates, too
    # Install-WindowsUpdate -acceptEula

    # http://mikefrobbins.com/2016/01/14/powershell-script-module-design-placing-functions-directly-in-the-psm1-file-versus-dot-sourcing-separate-ps1-files/

    # Subcommands
    # https://github.com/lukesampson/scoop
    # https://signalvnoise.com/posts/3264-automating-with-convention-introducing-sub
    # https://github.com/basecamp/sub#readme

    if (Test-PendingReboot) { Invoke-Reboot }
  7. jeebak revised this gist Aug 10, 2017. 1 changed file with 48 additions and 46 deletions.
    94 changes: 48 additions & 46 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -2,21 +2,21 @@

    # Test-Admin is not available yet, so use...
    if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
    Start-Process powershell -ArgumentList "-noprofile -NoExit -file `"$PSCommandPath`"" -Verb RunAs
    Exit
    Start-Process powershell -ArgumentList "-noprofile -NoExit -file `"$PSCommandPath`"" -Verb RunAs
    Exit
    }

    # http://boxstarter.org/InstallBoxstarter
    # Installing from the web

    # From a Administrator PowerShell, if Get-ExecutionPolicy returns Restricted, run:
    if((Get-ExecutionPolicy) -eq "Restricted") {
    Set-ExecutionPolicy Unrestricted -Force
    if ((Get-ExecutionPolicy) -eq "Restricted") {
    Set-ExecutionPolicy Unrestricted -Force
    }

    $_boxstarter_path = 'C:\ProgramData\Boxstarter\BoxstarterShell.ps1'
    if (!(Test-Path $_boxstarter_path)) {
    . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
    . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
    }

    # Then run: Boxstarter Shell as an Administrator
    @@ -35,19 +35,19 @@ cd "$cwd"

    # Configure Windows (Boxstarter.WinConfig cmdlets)
    Set-WindowsExplorerOptions `
    -EnableShowHiddenFilesFoldersDrives `
    -EnableShowProtectedOSFiles `
    -EnableShowFileExtensions `
    -EnableShowFullPathInTitleBar `
    -DisableOpenFileExplorerToQuickAccess `
    -DisableShowRecentFilesInQuickAccess `
    -DisableShowFrequentFoldersInQuickAccess
    -EnableShowHiddenFilesFoldersDrives `
    -EnableShowProtectedOSFiles `
    -EnableShowFileExtensions `
    -EnableShowFullPathInTitleBar `
    -DisableOpenFileExplorerToQuickAccess `
    -DisableShowRecentFilesInQuickAccess `
    -DisableShowFrequentFoldersInQuickAccess

    Update-ExecutionPolicy Unrestricted

    # Install chocolatey
    if (!(Test-Path 'C:\ProgramData\chocolatey\bin\choco.exe')) {
    iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
    iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
    }

    # TODO:
    @@ -59,34 +59,36 @@ cinst -y Microsoft-Hyper-V-All -source windowsFeatures

    # Seed an associative array of all locally installed chocolatey packages
    $_installed_packages = @{}
    choco list --localonly | %{
    $line = $_.split(' ')
    $_installed_packages[$line[0].ToLower()] = $line[1]
    choco list --localonly | % {
    $line = $_.split(' ')
    $_installed_packages[$line[0].ToLower()] = $line[1]
    }

    function _cinst {
    param([string] $package)

    if(!$_installed_packages[$package.ToLower()]) {
    Write-Host "Installing: $package"
    cinst -y "$package"
    } else {
    Write-Host "Already installed: $package"
    }
    param([string] $package)

    if (!$_installed_packages[$package.ToLower()]) {
    Write-Host "Installing: $package"
    cinst -y "$package"
    }
    else {
    Write-Host "Already installed: $package"
    }
    }

    # Seed a string variable with all locally installed PowerShell Gallery modules
    # Posh-Git
    $_installed_modules = Get-InstalledModule
    function _Install-Module {
    param([string] $module)

    if($_installed_modules -match "\b$module\b") {
    Write-Host "Already installed: $module"
    } else {
    Write-Host "Installing: $module"
    Install-Module $module -Force
    }
    param([string] $module)

    if ($_installed_modules -match "\b$module\b") {
    Write-Host "Already installed: $module"
    }
    else {
    Write-Host "Installing: $module"
    Install-Module $module -Force
    }
    }

    # Packages
    @@ -211,23 +213,23 @@ $Shortcut.Save()

    # PowerShell Gallery
    _Install-Module Posh-Git # https://www.powershellgallery.com/packages/Posh-Git/0.7.1
    # Functions: Invoke-NullCoalescing Add-PoshGitToProfile Write-GitStatus Write-Prompt Write-VcsStatus Get-GitBranch Get-GitStatus Enable-GitColors Get-GitDirectory TabExpansion Get-AliasPattern Get-SshAgent Start-SshAgent Stop-SshAgent Add-SshKey Get-SshPath Update-AllBranches tgit
    # https://github.com/dahlbyk/posh-git
    # Functions: Invoke-NullCoalescing Add-PoshGitToProfile Write-GitStatus Write-Prompt Write-VcsStatus Get-GitBranch Get-GitStatus Enable-GitColors Get-GitDirectory TabExpansion Get-AliasPattern Get-SshAgent Start-SshAgent Stop-SshAgent Add-SshKey Get-SshPath Update-AllBranches tgit
    # https://github.com/dahlbyk/posh-git
    _Install-Module Posh-SSH # https://www.powershellgallery.com/packages/Posh-SSH/1.7.7
    # Cmdlets: Get-SCPFile Get-SCPFolder Get-SFTPFile Set-SFTPFile New-SFTPSession New-SSHSession Set-SCPFile Set-SCPFolder
    # Functions: Get-SSHSession Remove-SSHSession Invoke-SSHCommand Get-PoshSSHModVersion Invoke-SSHCommandStream New-SSHShellStream Invoke-SSHStreamExpectAction Invoke-SSHStreamExpectSecureAction Get-SSHTrustedHost New-SSHTrustedHost Remove-SSHTrustedHost Get-SFTPSession Remove-SFTPSession Get-SFTPChildItem Test-SFTPPath Remove-SFTPItem Set-SFTPLocation Get-SFTPLocation Rename-SFTPFile Get-SFTPPathAttribute Set-SFTPPathAttribute New-SFTPSymlink Get-SFTPContent Set-SFTPContent New-SFTPFileStream New-SFTPItem
    # https://github.com/darkoperator/Posh-SSH
    # Cmdlets: Get-SCPFile Get-SCPFolder Get-SFTPFile Set-SFTPFile New-SFTPSession New-SSHSession Set-SCPFile Set-SCPFolder
    # Functions: Get-SSHSession Remove-SSHSession Invoke-SSHCommand Get-PoshSSHModVersion Invoke-SSHCommandStream New-SSHShellStream Invoke-SSHStreamExpectAction Invoke-SSHStreamExpectSecureAction Get-SSHTrustedHost New-SSHTrustedHost Remove-SSHTrustedHost Get-SFTPSession Remove-SFTPSession Get-SFTPChildItem Test-SFTPPath Remove-SFTPItem Set-SFTPLocation Get-SFTPLocation Rename-SFTPFile Get-SFTPPathAttribute Set-SFTPPathAttribute New-SFTPSymlink Get-SFTPContent Set-SFTPContent New-SFTPFileStream New-SFTPItem
    # https://github.com/darkoperator/Posh-SSH
    #Install-Module PSReadline # https://www.powershellgallery.com/packages/PSReadline/1.2
    # Cmdlets: Get-PSReadlineKeyHandler Set-PSReadlineKeyHandler Remove-PSReadlineKeyHandler Get-PSReadlineOption Set-PSReadlineOption
    # Functions: PSConsoleHostReadline
    # https://www.powershellgallery.com/packages/PSReadline/1.2/Content/SamplePSReadlineProfile.ps1
    # Cmdlets: Get-PSReadlineKeyHandler Set-PSReadlineKeyHandler Remove-PSReadlineKeyHandler Get-PSReadlineOption Set-PSReadlineOption
    # Functions: PSConsoleHostReadline
    # https://www.powershellgallery.com/packages/PSReadline/1.2/Content/SamplePSReadlineProfile.ps1
    _Install-Module oh-my-posh # https://www.powershellgallery.com/packages/oh-my-posh/2.0.111
    # Functions: Show-Colors Show-ThemeColors Set-Theme Get-VCSStatus Get-VcsInfo Get-Drive Get-ShortPath Get-FullPath Set-CursorForRightBlockWrite Save-CursorPosition Pop-CursorPosition Set-CursorUp Test-VirtualEnv Get-VirtualEnvName
    # https://github.com/JanJoris/oh-my-posh
    # Set-Theme darkblood
    # Show-Colors
    # $ThemeSettings
    # $GitPromptSettings
    # Functions: Show-Colors Show-ThemeColors Set-Theme Get-VCSStatus Get-VcsInfo Get-Drive Get-ShortPath Get-FullPath Set-CursorForRightBlockWrite Save-CursorPosition Pop-CursorPosition Set-CursorUp Test-VirtualEnv Get-VirtualEnvName
    # https://github.com/JanJoris/oh-my-posh
    # Set-Theme darkblood
    # Show-Colors
    # $ThemeSettings
    # $GitPromptSettings

    # http://techness.co.uk/2014/08/17/installing-dig-on-windows-8-1/
    # $env:USERPROFILE\OneDrive\Applications\BIND9.10.6.x64 # dig, host, nslookup (Update PATH)
  8. jeebak revised this gist Aug 9, 2017. 1 changed file with 29 additions and 8 deletions.
    37 changes: 29 additions & 8 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -33,9 +33,6 @@ cd "$cwd"

    # Logs: C:\ProgramData\chocolatey\logs\chocolatey.log

    # TODO:
    # http://www.alexdresko.com/2014/12/22/automatically-generating-a-chocolatey-install-script/

    # Configure Windows (Boxstarter.WinConfig cmdlets)
    Set-WindowsExplorerOptions `
    -EnableShowHiddenFilesFoldersDrives `
    @@ -53,7 +50,11 @@ if (!(Test-Path 'C:\ProgramData\chocolatey\bin\choco.exe')) {
    iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
    }

    # TODO: test for this
    # TODO:
    # http://www.alexdresko.com/2014/12/22/automatically-generating-a-chocolatey-install-script/
    # https://www.microsoft.com/web/downloads/platform.aspx

    # test for this (choco list --source windowsfeatures)
    cinst -y Microsoft-Hyper-V-All -source windowsFeatures

    # Seed an associative array of all locally installed chocolatey packages
    @@ -96,7 +97,7 @@ function _Install-Module {
    _cinst git.install # cmder contain: %CMDER_ROOT%\vendor\git-for-windows\ but...
    _cinst poshgit # git.install is a dependency
    _cinst git-credential-manager-for-windows # git.install is a dependency
    _cinst github
    # _cinst github

    # Editors
    # No SublimeText3, atom, markdownpad2, or vim. Using...
    @@ -208,10 +209,30 @@ $Shortcut.Save()
    # Set System Environment Variable:
    [Environment]::SetEnvironmentVariable("GIT_SSH", "C:\Program Files\TortoiseGit\bin\TortoiseGitPlink.exe", "Machine")

    # Posh-Git
    _Install-Module Posh-Git
    # PowerShell Gallery
    _Install-Module Posh-Git # https://www.powershellgallery.com/packages/Posh-Git/0.7.1
    # Functions: Invoke-NullCoalescing Add-PoshGitToProfile Write-GitStatus Write-Prompt Write-VcsStatus Get-GitBranch Get-GitStatus Enable-GitColors Get-GitDirectory TabExpansion Get-AliasPattern Get-SshAgent Start-SshAgent Stop-SshAgent Add-SshKey Get-SshPath Update-AllBranches tgit
    # https://github.com/dahlbyk/posh-git
    _Install-Module Posh-SSH # https://www.powershellgallery.com/packages/Posh-SSH/1.7.7
    # Cmdlets: Get-SCPFile Get-SCPFolder Get-SFTPFile Set-SFTPFile New-SFTPSession New-SSHSession Set-SCPFile Set-SCPFolder
    # Functions: Get-SSHSession Remove-SSHSession Invoke-SSHCommand Get-PoshSSHModVersion Invoke-SSHCommandStream New-SSHShellStream Invoke-SSHStreamExpectAction Invoke-SSHStreamExpectSecureAction Get-SSHTrustedHost New-SSHTrustedHost Remove-SSHTrustedHost Get-SFTPSession Remove-SFTPSession Get-SFTPChildItem Test-SFTPPath Remove-SFTPItem Set-SFTPLocation Get-SFTPLocation Rename-SFTPFile Get-SFTPPathAttribute Set-SFTPPathAttribute New-SFTPSymlink Get-SFTPContent Set-SFTPContent New-SFTPFileStream New-SFTPItem
    # https://github.com/darkoperator/Posh-SSH
    #Install-Module PSReadline # https://www.powershellgallery.com/packages/PSReadline/1.2
    # Cmdlets: Get-PSReadlineKeyHandler Set-PSReadlineKeyHandler Remove-PSReadlineKeyHandler Get-PSReadlineOption Set-PSReadlineOption
    # Functions: PSConsoleHostReadline
    # https://www.powershellgallery.com/packages/PSReadline/1.2/Content/SamplePSReadlineProfile.ps1
    _Install-Module oh-my-posh # https://www.powershellgallery.com/packages/oh-my-posh/2.0.111
    # Functions: Show-Colors Show-ThemeColors Set-Theme Get-VCSStatus Get-VcsInfo Get-Drive Get-ShortPath Get-FullPath Set-CursorForRightBlockWrite Save-CursorPosition Pop-CursorPosition Set-CursorUp Test-VirtualEnv Get-VirtualEnvName
    # https://github.com/JanJoris/oh-my-posh
    # Set-Theme darkblood
    # Show-Colors
    # $ThemeSettings
    # $GitPromptSettings

    # http://techness.co.uk/2014/08/17/installing-dig-on-windows-8-1/
    # $env:USERPROFILE\OneDrive\Applications\BIND9.10.6.x64 # dig, host, nslookup (Update PATH)

    # Let's get Updates, too
    Install-WindowsUpdate -acceptEula
    # Install-WindowsUpdate -acceptEula

    if (Test-PendingReboot) { Invoke-Reboot }
  9. jeebak revised this gist Aug 9, 2017. 1 changed file with 28 additions and 6 deletions.
    34 changes: 28 additions & 6 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -36,8 +36,15 @@ cd "$cwd"
    # TODO:
    # http://www.alexdresko.com/2014/12/22/automatically-generating-a-chocolatey-install-script/

    # Configure Windows
    Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
    # Configure Windows (Boxstarter.WinConfig cmdlets)
    Set-WindowsExplorerOptions `
    -EnableShowHiddenFilesFoldersDrives `
    -EnableShowProtectedOSFiles `
    -EnableShowFileExtensions `
    -EnableShowFullPathInTitleBar `
    -DisableOpenFileExplorerToQuickAccess `
    -DisableShowRecentFilesInQuickAccess `
    -DisableShowFrequentFoldersInQuickAccess

    Update-ExecutionPolicy Unrestricted

    @@ -49,7 +56,7 @@ if (!(Test-Path 'C:\ProgramData\chocolatey\bin\choco.exe')) {
    # TODO: test for this
    cinst -y Microsoft-Hyper-V-All -source windowsFeatures

    # Seed an associative array of all locally instally chocolatey packages
    # Seed an associative array of all locally installed chocolatey packages
    $_installed_packages = @{}
    choco list --localonly | %{
    $line = $_.split(' ')
    @@ -67,6 +74,20 @@ function _cinst {
    }
    }

    # Seed a string variable with all locally installed PowerShell Gallery modules
    # Posh-Git
    $_installed_modules = Get-InstalledModule
    function _Install-Module {
    param([string] $module)

    if($_installed_modules -match "\b$module\b") {
    Write-Host "Already installed: $module"
    } else {
    Write-Host "Installing: $module"
    Install-Module $module -Force
    }
    }

    # Packages
    # cmder # Using custom install in OneDrive, keeping its configs in git
    # Gow
    @@ -163,9 +184,9 @@ _cinst wget
    # Meh
    # bginfo

    # Pinning Things
    # Pinning Things/File Association (These are Chocolatey functions, not Boxstarter functions)
    # Install-ChocolateyPinnedTaskBarItem "$env:programfiles\Google\Chrome\Application\chrome.exe"
    # Install-ChocolateyFileAssociation ".txt" "$env:programfiles\Sublime Text 3\sublime_text.exe"
    # Install-ChocolateyFileAssociation ".txt" "${env:ProgramFiles(x86)}\Microsoft VS Code\Code.exe"

    # Visual Studio 2015 (Holy crap! This takes forever!!!)
    # visualstudio2015community
    @@ -186,8 +207,9 @@ $Shortcut.Save()

    # Set System Environment Variable:
    [Environment]::SetEnvironmentVariable("GIT_SSH", "C:\Program Files\TortoiseGit\bin\TortoiseGitPlink.exe", "Machine")

    # Posh-Git
    Install-Module Posh-Git -Force
    _Install-Module Posh-Git

    # Let's get Updates, too
    Install-WindowsUpdate -acceptEula
  10. jeebak revised this gist Aug 9, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -133,6 +133,7 @@ _cinst greenshot
    _cinst linqpad
    _cinst malwarebytes
    _cinst paint.net
    _cinst pasteboard
    _cinst phpstorm
    # _cinst quicktime
    _cinst slack
  11. jeebak revised this gist Aug 8, 2017. 1 changed file with 152 additions and 86 deletions.
    238 changes: 152 additions & 86 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -1,20 +1,33 @@
    # Based on: https://github.com/felixrieseberg/windows-development-environment

    # Test-Admin is not available yet, so use...
    if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
    Start-Process powershell -ArgumentList "-noprofile -NoExit -file `"$PSCommandPath`"" -Verb RunAs
    Exit
    }

    # http://boxstarter.org/InstallBoxstarter
    # Installing from the web

    # From a Administrator PowerShell, if Get-ExecutionPolicy returns Restricted, run:
    #
    # Old:
    # Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
    # New:
    # Set-ExecutionPolicy Unrestricted -Force
    # . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
    if((Get-ExecutionPolicy) -eq "Restricted") {
    Set-ExecutionPolicy Unrestricted -Force
    }

    $_boxstarter_path = 'C:\ProgramData\Boxstarter\BoxstarterShell.ps1'
    if (!(Test-Path $_boxstarter_path)) {
    . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
    }

    # Then run: Boxstarter Shell as an Administrator
    $cwd = "$(Get-Location)"
    . $_boxstarter_path
    cd "$cwd"

    # Copy: Microsoft.PowerShell_profile.ps1 file to $env:userprofile\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1

    # To install, run from Adinistrator: Boxstarter shell
    # C:\path\to\this\file\boxstarter.ps2
    # C:\path\to\this\file\boxstarter.ps1
    # Or, open up a PowerShell as Administrator, and run:
    # START http://boxstarter.org/package/nr/url?https://gist.github.com/jeebak/8064d35757c99b0cd507

    @@ -29,100 +42,153 @@ Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtec
    Update-ExecutionPolicy Unrestricted

    # Install chocolatey
    iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
    if (!(Test-Path 'C:\ProgramData\chocolatey\bin\choco.exe')) {
    iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
    }

    # TODO: test for this
    cinst -y Microsoft-Hyper-V-All -source windowsFeatures

    # Seed an associative array of all locally instally chocolatey packages
    $_installed_packages = @{}
    choco list --localonly | %{
    $line = $_.split(' ')
    $_installed_packages[$line[0].ToLower()] = $line[1]
    }

    function _cinst {
    param([string] $package)

    if(!$_installed_packages[$package.ToLower()]) {
    Write-Host "Installing: $package"
    cinst -y "$package"
    } else {
    Write-Host "Already installed: $package"
    }
    }

    # Packages
    cinst -y cmder
    # cinst -y Gow

    ## Node, npm
    cinst -y nodejs.install

    ## Git
    # cinst -y git.install
    # cinst -y poshgit
    # cinst -y git-credential-manager-for-windows
    cinst -y github # use --ignore-checksums if it fails?

    ## Node, npm
    cinst -y nodejs.install
    npm install -g npm-windows-upgrade

    ## Editors
    # cinst -y SublimeText3
    # cinst -y SublimeText3.PackageControl
    # cinst -y Sublimetext3-contextmenu
    # cinst -y SublimeText3.PowershellAlias
    # cinst -y atom
    # cinst -y markdownpad2
    # cinst -y vim
    cinst -y visualstudiocode

    ## Ruby, Go, Python
    cinst -y ruby
    cinst -y ruby.devkit

    cinst -y golang

    cinst -y python
    cinst -y pip

    ## DevOps Stuff
    cinst -y virtualbox
    cinst -y virtualbox.extensionpack
    cinst -y vagrant
    cinst -y docker
    # cmder # Using custom install in OneDrive, keeping its configs in git
    # Gow

    # Git
    _cinst git.install # cmder contain: %CMDER_ROOT%\vendor\git-for-windows\ but...
    _cinst poshgit # git.install is a dependency
    _cinst git-credential-manager-for-windows # git.install is a dependency
    _cinst github

    # Editors
    # No SublimeText3, atom, markdownpad2, or vim. Using...
    _cinst visualstudiocode
    # w/ vim keybindings

    # Node, npm
    # nodejs.install
    #
    # Node, npm
    # nodejs.install
    # npm install -g npm-windows-upgrade
    #
    # Ruby, Go, Python
    # ruby
    # ruby.devkit
    #
    # golang
    #
    # python
    # pip
    #
    # DevOps Stuff
    # virtualbox
    # virtualbox.extensionpack
    # vagrant
    # docker

    if (Test-PendingReboot) { Invoke-Reboot }

    ## Basics
    cinst -y GoogleChrome
    cinst -y sysinternals
    # cinst -y DotNet3.5
    # cinst -y DotNet4.0 -- not needed on windows 8
    # cinst -y DotNet4.5 -- not needed on windows 10
    # cinst -y PowerShell -- not needed on windows 10
    # Basics
    _cinst GoogleChrome
    _cinst sysinternals
    # DotNet3.5
    # DotNet4.0 -- not needed on windows 8
    # DotNet4.5 -- not needed on windows 10
    # PowerShell -- not needed on windows 10
    if (Test-PendingReboot) { Invoke-Reboot }

    # Mine
    # cinst -y ansicon
    # cinst -y babun # Going w/ cmder
    # cinst -y f.lux # Using (newer) beta version now
    # cinst -y sharpkeys # Elminated the need for this with this AHK scriptlet: https://superuser.com/a/581988
    # There is no touchcursor package. WIP: creating a PortableApps package from:
    # http://martin-stone.github.io/touchcursor/download.html
    # .zip and add to OneDrive
    cinst -y acrylic-dns-proxy
    cinst -y autohotkey.install
    cinst -y cshell
    cinst -y cyberduck
    cinst -y fiddler4
    cinst -y firefox
    cinst -y greenshot
    cinst -y linqpad
    cinst -y paint.net
    cinst -y phpstorm # C:\tools\cmder\vendor\git-for-windows\bin\git.exe
    cinst -y quicktime
    cinst -y slack
    cinst -y tortoisegit # C:\tools\cmder\vendor\git-for-windows\bin\git.exe

    # Using PortableApps version in OneDrive
    # cinst -y 7zip.install
    # cinst -y ditto # Using AHK script to map Tab as Alt/Ctrl/Shift as "Hyper" key on hold, Tab on tap
    # cinst -y gimp
    # cinst -y putty
    # cinst -y sumatrapdf
    # cinst -y vlc
    # ansicon
    # babun # Going w/ cmder bash
    # f.lux # Using (currently newer) beta version instead (manually installed)
    # sharpkeys # Elminated the need for this with this AHK scriptlet: https://superuser.com/a/581988
    # ... but would be useful on Macs re: cmd/option keys
    # There is no touchcursor package: http://martin-stone.github.io/touchcursor/download.html
    # using custom AutoHotKey script now
    _cinst acrylic-dns-proxy
    _cinst autohotkey.install
    _cinst clipjump
    _cinst cshell
    _cinst cyberduck
    _cinst fiddler4
    _cinst firefox
    _cinst greenshot
    _cinst linqpad
    _cinst malwarebytes
    _cinst paint.net
    _cinst phpstorm
    # _cinst quicktime
    _cinst slack
    _cinst tortoisegit
    _cinst windirstat
    _cinst wireshark
    # CLI
    _cinst awscli
    _cinst jq
    _cinst pstools
    _cinst youtube-dl
    # bitsadmin is deprecated
    # PowerShell: Invoke-WebRequest -Outfile index.html http://foo.com
    _cinst curl
    _cinst wget

    # Using the PortableApps version of these in OneDrive instead
    # 7zip.install
    # cpu-z
    # ditto # Was using AHK script to map Tab as Alt/Ctrl/Shift as "Hyper" key on hold, Tab on tap, now using clipjump
    # gimp
    # putty
    # sumatrapdf
    # vlc
    # winmerge

    # Meh
    # bginfo

    # Pinning Things
    # Install-ChocolateyPinnedTaskBarItem "$env:programfiles\Google\Chrome\Application\chrome.exe"
    # Install-ChocolateyFileAssociation ".txt" "$env:programfiles\Sublime Text 3\sublime_text.exe"

    ## Visual Studio 2015 (Holy crap! This takes forever!!!)
    # cinst -y visualstudio2015community
    # Visual Studio 2015 (Holy crap! This takes forever!!!)
    # visualstudio2015community
    # visualstudio2017community # (?)
    # if (Test-PendingReboot) { Invoke-Reboot }

    # https://gist.github.com/dmangiarelli/1a0ae107aaa5c478c51e
    # How to setup Git for Windows

    # https://stackoverflow.com/questions/9701840/how-to-create-a-shortcut-using-powershell
    $WshShell = New-Object -comObject WScript.Shell
    $Shortcut = $WshShell.CreateShortcut("$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Startup\pageant.lnk")
    $ppks = $env:USERPROFILE + "\.ssh\*.ppk"
    $keys = [string[]](Get-ChildItem -Path ($ppks) -Recurse)
    $Shortcut.TargetPath = '"C:\Program Files\TortoiseGit\bin\pageant.exe"'
    $Shortcut.Arguments = ($keys -join " ")
    $Shortcut.Save()

    # Set System Environment Variable:
    [Environment]::SetEnvironmentVariable("GIT_SSH", "C:\Program Files\TortoiseGit\bin\TortoiseGitPlink.exe", "Machine")
    # Posh-Git
    Install-Module Posh-Git -Force

    # Let's get Updates, too
    Install-WindowsUpdate -acceptEula

    if (Test-PendingReboot) { Invoke-Reboot }
  12. jeebak revised this gist Jul 29, 2017. 1 changed file with 51 additions and 31 deletions.
    82 changes: 51 additions & 31 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,28 @@
    # Based on: https://github.com/felixrieseberg/windows-development-environment

    # http://boxstarter.org/InstallBoxstarter
    # Installing from the web

    # From a Administrator PowerShell, if Get-ExecutionPolicy returns Restricted, run:
    #
    # Old:
    # Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
    # New:
    # Set-ExecutionPolicy Unrestricted -Force
    # . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force

    # Copy: Microsoft.PowerShell_profile.ps1 file to $env:userprofile\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1

    # To install, run from Adinistrator: Boxstarter shell
    # C:\path\to\this\file\boxstarter.ps1
    # C:\path\to\this\file\boxstarter.ps2
    # Or, open up a PowerShell as Administrator, and run:
    # START http://boxstarter.org/package/nr/url?https://gist.github.com/jeebak/8064d35757c99b0cd507

    # Logs: C:\ProgramData\chocolatey\logs\chocolatey.log

    # TODO:
    # http://www.alexdresko.com/2014/12/22/automatically-generating-a-chocolatey-install-script/

    # Configure Windows
    Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar

    @@ -14,20 +31,20 @@ Update-ExecutionPolicy Unrestricted
    # Install chocolatey
    iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))

    # cinst -y Microsoft-Hyper-V-All -source windowsFeatures
    cinst -y Microsoft-Hyper-V-All -source windowsFeatures

    # Packages
    # cinst -y cmder -pre
    cinst -y cmder
    # cinst -y Gow

    ## Node, npm
    cinst -y nodejs.install

    ## Git
    cinst -y git.install
    cinst -y poshgit
    cinst -y git-credential-manager-for-windows
    cinst -y github
    # cinst -y git.install
    # cinst -y poshgit
    # cinst -y git-credential-manager-for-windows
    cinst -y github # use --ignore-checksums if it fails?

    ## Node, npm
    cinst -y nodejs.install
    @@ -38,15 +55,11 @@ npm install -g npm-windows-upgrade
    # cinst -y SublimeText3.PackageControl
    # cinst -y Sublimetext3-contextmenu
    # cinst -y SublimeText3.PowershellAlias
    cinst -y atom
    cinst -y markdownpad2
    cinst -y vim
    # cinst -y atom
    # cinst -y markdownpad2
    # cinst -y vim
    cinst -y visualstudiocode

    ## Visual Studio 2015
    cinst -y visualstudio2015community
    if (Test-PendingReboot) { Invoke-Reboot }

    ## Ruby, Go, Python
    cinst -y ruby
    cinst -y ruby.devkit
    @@ -60,17 +73,12 @@ cinst -y pip
    cinst -y virtualbox
    cinst -y virtualbox.extensionpack
    cinst -y vagrant

    # Docker is currently not included, since it doesn't support Windows 10 at this time.
    # To install, manually download and run https://github.com/docker/toolbox/releases/download/v1.8.1a/DockerToolbox-1.8.1a-windows-10-test.exe
    cinst -y docker

    if (Test-PendingReboot) { Invoke-Reboot }

    # PA: === PortableApps
    ## Basics
    # PA: cinst -y vlc
    cinst -y GoogleChrome
    # PA: cinst -y 7zip.install
    cinst -y sysinternals
    # cinst -y DotNet3.5
    # cinst -y DotNet4.0 -- not needed on windows 8
    @@ -80,29 +88,41 @@ if (Test-PendingReboot) { Invoke-Reboot }

    # Mine
    # cinst -y ansicon
    # cinst -y babun # Going w/ cmder
    # cinst -y f.lux # Using (newer) beta version now
    # cinst -y sharpkeys # Elminated the need for this with this AHK scriptlet: https://superuser.com/a/581988
    # There is no touchcursor package. WIP: creating a PortableApps package from:
    # http://martin-stone.github.io/touchcursor/download.html
    # .zip and add to OneDrive
    cinst -y acrylic-dns-proxy
    cinst -y autohotkey.install
    cinst -y babun
    cinst -y cshell
    cinst -y cyberduck
    # PA: cinst -y ditto
    cinst -y f.lux
    cinst -y firefox
    cinst -y fiddler4
    # PA: cinst -y gimp
    cinst -y firefox
    cinst -y greenshot
    cinst -y linqpad
    cinst -y paint.net
    # Ugh, it's PhpStorm 9
    # cinst -y phpstorm
    # PA: cinst -y putty
    cinst -y sharpkeys
    cinst -y phpstorm # C:\tools\cmder\vendor\git-for-windows\bin\git.exe
    cinst -y quicktime
    cinst -y slack
    # PA: cinst -y sumatrapdf
    cinst -y tortoisegit
    cinst -y tortoisegit # C:\tools\cmder\vendor\git-for-windows\bin\git.exe

    # Using PortableApps version in OneDrive
    # cinst -y 7zip.install
    # cinst -y ditto # Using AHK script to map Tab as Alt/Ctrl/Shift as "Hyper" key on hold, Tab on tap
    # cinst -y gimp
    # cinst -y putty
    # cinst -y sumatrapdf
    # cinst -y vlc

    # Pinning Things
    # Install-ChocolateyPinnedTaskBarItem "$env:programfiles\Google\Chrome\Application\chrome.exe"
    # Install-ChocolateyFileAssociation ".txt" "$env:programfiles\Sublime Text 3\sublime_text.exe"

    ## Visual Studio 2015 (Holy crap! This takes forever!!!)
    # cinst -y visualstudio2015community
    # if (Test-PendingReboot) { Invoke-Reboot }

    # Let's get Updates, too
    Install-WindowsUpdate -acceptEula
  13. jeebak revised this gist Jul 8, 2016. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,7 @@
    # Based on: https://github.com/felixrieseberg/windows-development-environment
    # Run from Adinistrator: Boxstarter shell
    # From a Administrator PowerShell, if Get-ExecutionPolicy returns Restricted, run:
    # Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
    # To install, run from Adinistrator: Boxstarter shell
    # C:\path\to\this\file\boxstarter.ps1
    # Or, open up a PowerShell as Administrator, and run:
    # START http://boxstarter.org/package/nr/url?https://gist.github.com/jeebak/8064d35757c99b0cd507
  14. jeebak revised this gist Jul 8, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -67,7 +67,7 @@ if (Test-PendingReboot) { Invoke-Reboot }
    # PA: === PortableApps
    ## Basics
    # PA: cinst -y vlc
    # PA: cinst -y GoogleChrome
    cinst -y GoogleChrome
    # PA: cinst -y 7zip.install
    cinst -y sysinternals
    # cinst -y DotNet3.5
    @@ -84,7 +84,7 @@ cinst -y cshell
    cinst -y cyberduck
    # PA: cinst -y ditto
    cinst -y f.lux
    # PA: cinst -y firefox
    cinst -y firefox
    cinst -y fiddler4
    # PA: cinst -y gimp
    cinst -y greenshot
  15. jeebak revised this gist Jul 8, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # Based on: https://github.com/felixrieseberg/windows-development-environment
    # Run from Adinistrator: Boxstarter shell
    # C:\path\to\this\file\boxstarter.ps1
    # Or:
    # Or, open up a PowerShell as Administrator, and run:
    # START http://boxstarter.org/package/nr/url?https://gist.github.com/jeebak/8064d35757c99b0cd507

    # Configure Windows
  16. jeebak revised this gist Jul 8, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,8 @@
    # Based on: https://github.com/felixrieseberg/windows-development-environment
    # Run from Adinistrator: Boxstarter shell
    # C:\path\to\this\file\boxstarter.ps1
    # Or:
    # START http://boxstarter.org/package/nr/url?https://gist.github.com/jeebak/8064d35757c99b0cd507

    # Configure Windows
    Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
  17. jeebak revised this gist Jul 8, 2016. 1 changed file with 10 additions and 9 deletions.
    19 changes: 10 additions & 9 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -62,10 +62,11 @@ cinst -y vagrant

    if (Test-PendingReboot) { Invoke-Reboot }

    # PA: === PortableApps
    ## Basics
    cinst -y vlc
    cinst -y GoogleChrome
    cinst -y 7zip.install
    # PA: cinst -y vlc
    # PA: cinst -y GoogleChrome
    # PA: cinst -y 7zip.install
    cinst -y sysinternals
    # cinst -y DotNet3.5
    # cinst -y DotNet4.0 -- not needed on windows 8
    @@ -74,25 +75,25 @@ cinst -y sysinternals
    if (Test-PendingReboot) { Invoke-Reboot }

    # Mine
    cinst -y ansicon
    # cinst -y ansicon
    cinst -y autohotkey.install
    cinst -y babun
    cinst -y cshell
    cinst -y cyberduck
    cinst -y ditto
    # PA: cinst -y ditto
    cinst -y f.lux
    cinst -y firefox
    # PA: cinst -y firefox
    cinst -y fiddler4
    cinst -y gimp
    # PA: cinst -y gimp
    cinst -y greenshot
    cinst -y linqpad
    cinst -y paint.net
    # Ugh, it's PhpStorm 9
    # cinst -y phpstorm
    cinst -y putty
    # PA: cinst -y putty
    cinst -y sharpkeys
    cinst -y slack
    cinst -y sumatrapdf
    # PA: cinst -y sumatrapdf
    cinst -y tortoisegit

    # Pinning Things
  18. jeebak revised this gist Jun 2, 2016. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,9 @@ Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtec

    Update-ExecutionPolicy Unrestricted

    # Install chocolatey
    iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))

    # cinst -y Microsoft-Hyper-V-All -source windowsFeatures

    # Packages
  19. jeebak revised this gist Jan 5, 2016. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -84,7 +84,8 @@ cinst -y gimp
    cinst -y greenshot
    cinst -y linqpad
    cinst -y paint.net
    cinst -y phpstorm
    # Ugh, it's PhpStorm 9
    # cinst -y phpstorm
    cinst -y putty
    cinst -y sharpkeys
    cinst -y slack
  20. jeebak revised this gist Jan 5, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -84,6 +84,7 @@ cinst -y gimp
    cinst -y greenshot
    cinst -y linqpad
    cinst -y paint.net
    cinst -y phpstorm
    cinst -y putty
    cinst -y sharpkeys
    cinst -y slack
  21. jeebak revised this gist Jan 4, 2016. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -73,6 +73,8 @@ if (Test-PendingReboot) { Invoke-Reboot }
    # Mine
    cinst -y ansicon
    cinst -y autohotkey.install
    cinst -y babun
    cinst -y cshell
    cinst -y cyberduck
    cinst -y ditto
    cinst -y f.lux
    @@ -81,10 +83,12 @@ cinst -y fiddler4
    cinst -y gimp
    cinst -y greenshot
    cinst -y linqpad
    cinst -y paint.net
    cinst -y putty
    cinst -y sharpkeys
    cinst -y slack
    cinst -y sumatrapdf.commandline
    cinst -y sumatrapdf
    cinst -y tortoisegit

    # Pinning Things
    # Install-ChocolateyPinnedTaskBarItem "$env:programfiles\Google\Chrome\Application\chrome.exe"
  22. jeebak revised this gist Jan 4, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -72,7 +72,7 @@ if (Test-PendingReboot) { Invoke-Reboot }

    # Mine
    cinst -y ansicon
    cinst -y autohotkey.portable
    cinst -y autohotkey.install
    cinst -y cyberduck
    cinst -y ditto
    cinst -y f.lux
  23. jeebak revised this gist Jan 3, 2016. 1 changed file with 5 additions and 2 deletions.
    7 changes: 5 additions & 2 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -32,7 +32,7 @@ npm install -g npm-windows-upgrade
    # cinst -y Sublimetext3-contextmenu
    # cinst -y SublimeText3.PowershellAlias
    cinst -y atom
    cinst -y markdownpad
    cinst -y markdownpad2
    cinst -y vim
    cinst -y visualstudiocode

    @@ -48,7 +48,6 @@ cinst -y golang

    cinst -y python
    cinst -y pip
    cinst -y easy.install

    ## DevOps Stuff
    cinst -y virtualbox
    @@ -74,11 +73,15 @@ if (Test-PendingReboot) { Invoke-Reboot }
    # Mine
    cinst -y ansicon
    cinst -y autohotkey.portable
    cinst -y cyberduck
    cinst -y ditto
    cinst -y f.lux
    cinst -y firefox
    cinst -y fiddler4
    cinst -y gimp
    cinst -y greenshot
    cinst -y linqpad
    cinst -y putty
    cinst -y sharpkeys
    cinst -y slack
    cinst -y sumatrapdf.commandline
  24. jeebak created this gist Jan 3, 2016.
    91 changes: 91 additions & 0 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,91 @@
    # Based on: https://github.com/felixrieseberg/windows-development-environment
    # Run from Adinistrator: Boxstarter shell
    # C:\path\to\this\file\boxstarter.ps1

    # Configure Windows
    Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar

    Update-ExecutionPolicy Unrestricted

    # cinst -y Microsoft-Hyper-V-All -source windowsFeatures

    # Packages
    # cinst -y cmder -pre
    # cinst -y Gow

    ## Node, npm
    cinst -y nodejs.install

    ## Git
    cinst -y git.install
    cinst -y poshgit
    cinst -y git-credential-manager-for-windows
    cinst -y github

    ## Node, npm
    cinst -y nodejs.install
    npm install -g npm-windows-upgrade

    ## Editors
    # cinst -y SublimeText3
    # cinst -y SublimeText3.PackageControl
    # cinst -y Sublimetext3-contextmenu
    # cinst -y SublimeText3.PowershellAlias
    cinst -y atom
    cinst -y markdownpad
    cinst -y vim
    cinst -y visualstudiocode

    ## Visual Studio 2015
    cinst -y visualstudio2015community
    if (Test-PendingReboot) { Invoke-Reboot }

    ## Ruby, Go, Python
    cinst -y ruby
    cinst -y ruby.devkit

    cinst -y golang

    cinst -y python
    cinst -y pip
    cinst -y easy.install

    ## DevOps Stuff
    cinst -y virtualbox
    cinst -y virtualbox.extensionpack
    cinst -y vagrant

    # Docker is currently not included, since it doesn't support Windows 10 at this time.
    # To install, manually download and run https://github.com/docker/toolbox/releases/download/v1.8.1a/DockerToolbox-1.8.1a-windows-10-test.exe

    if (Test-PendingReboot) { Invoke-Reboot }

    ## Basics
    cinst -y vlc
    cinst -y GoogleChrome
    cinst -y 7zip.install
    cinst -y sysinternals
    # cinst -y DotNet3.5
    # cinst -y DotNet4.0 -- not needed on windows 8
    # cinst -y DotNet4.5 -- not needed on windows 10
    # cinst -y PowerShell -- not needed on windows 10
    if (Test-PendingReboot) { Invoke-Reboot }

    # Mine
    cinst -y ansicon
    cinst -y autohotkey.portable
    cinst -y ditto
    cinst -y f.lux
    cinst -y fiddler4
    cinst -y gimp
    cinst -y greenshot
    cinst -y sharpkeys
    cinst -y slack
    cinst -y sumatrapdf.commandline

    # Pinning Things
    # Install-ChocolateyPinnedTaskBarItem "$env:programfiles\Google\Chrome\Application\chrome.exe"
    # Install-ChocolateyFileAssociation ".txt" "$env:programfiles\Sublime Text 3\sublime_text.exe"

    # Let's get Updates, too
    Install-WindowsUpdate -acceptEula