Skip to content

Instantly share code, notes, and snippets.

@da9l
da9l / Download-Paket.ps1
Last active November 8, 2018 20:18
Install paket bootstrapper from https
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"
}
@da9l
da9l / Create-InstallMyTools.ps1
Last active June 14, 2024 15:03
Create powershell script containing all chocolatey packages on your local machine.
Function Create-InstallMyTools.ps1 {
choco list | % {if($_ -match "(.+) (.+)") {"choco install $($matches[1])"}} > Install-MyTools.ps1
}
@da9l
da9l / PlantUML.md
Last active February 16, 2018 09:48
PlantUML

I like PlantUML

I like PlantUML

#. { 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"
$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 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!
choco list -lo | % {if($_ -match "(.+) (.+)") {"choco install $($matches[1])"}} > gist.txt
@da9l
da9l / FsharpDevW10.txt
Last active December 9, 2016 13:53
F# on Windows10
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
cinst visualstudiocode
cinst windows-sdk-10
cinst microsoft-build-tools
choco install visualfsharptools
@da9l
da9l / git-color-prompt
Last active May 14, 2016 21:35
Git-prompt-color
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\] "'
@da9l
da9l / paketpsbootstrap_github
Last active January 18, 2021 17:36
paket bootstrap in powershell
#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"