This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Download-Paket { | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
md -force .paket | |
Invoke-Webrequest -uri "https://github.com/fsprojects/Paket/releases/download/5.180.1/paket.bootstrapper.exe" -outfile ".\.paket\paket.exe" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Create-InstallMyTools.ps1 { | |
choco list | % {if($_ -match "(.+) (.+)") {"choco install $($matches[1])"}} > Install-MyTools.ps1 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#. { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
PowerShell -NoProfile -ExecutionPolicy unrestricted -Command "$wc=new-object net.webclient; $wp=[system.net.WebProxy]::GetDefaultProxy(); $wp.UseDefaultCredentials=$true; $wc.Proxy=$wp; iex ($wc.DownloadString('http://boxstarter.org/bootstrapper.ps1')); get-boxstarter -Force" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$wc=new-object net.webclient | |
$wp=[system.net.WebProxy]::GetDefaultProxy() | |
$wp.UseDefaultCredentials=$true | |
$wc.Proxy=$wp | |
Invoke-Expression ($wc.DownloadString("http://boxstarter.org/bootstrapper.ps1")) | |
get-boxstarter -Force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This script relies on that ..\.paket\paket.bootstrapper.exe exists. | |
& { | |
if(!(Test-Path $PSScriptRoot\..\.paket\paket.exe)) { | |
& $PSScriptRoot\..\.paket\paket.bootstrapper.exe "--force-nuget", "--nuget-source=https://nuget.org/api/v2" | |
} | |
& $PSScriptRoot\..\.paket\paket.exe install | |
Write-Host -ForegroundColor Yellow @" | |
========================================================================= | |
New super power equipped! | |
Now you have access to paket - the nuget package manager on steroids! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
choco list -lo | % {if($_ -match "(.+) (.+)") {"choco install $($matches[1])"}} > gist.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
cinst visualstudiocode | |
cinst windows-sdk-10 | |
cinst microsoft-build-tools | |
choco install visualfsharptools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source /etc/bash_completion.d/git-prompt | |
GIT_PS1_SHOWCOLORHINTS=true | |
GIT_PS1_SHOWDIRTYSTATE=true | |
PROMPT_COMMAND='__git_ps1 "${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w" "\$\[\033[00m\] "' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Downloads latest paket.bootstrapper.exe from github | |
$urlbase = "https://github.com" | |
$latestPage="$urlbase/fsprojects/Paket/releases/latest" | |
Write-Host "Parsing latest release page: $latestPage" | |
$page=Invoke-Webrequest -uri $latestPage | |
$latestBootStrapper=($page.Links | Where-Object { $_.href -match "bootstrapper" }).href | |
$dlurl="$urlbase$latestBootStrapper" | |
Write-Host "Downloading paket.bootstrapper.exe from $dlurl" |
NewerOlder