Skip to content

Instantly share code, notes, and snippets.

View cstlaurent's full-sized avatar
🏠
Working from home

Carl St-Laurent cstlaurent

🏠
Working from home
View GitHub Profile
@cstlaurent
cstlaurent / postgres.md
Created February 17, 2022 14:28 — forked from phortuin/postgres.md
Set up postgres + database on MacOS (M1)

Based on this blogpost.

Install with Homebrew:

$ brew install postgresql

Run server:

# Usage: .\DisableNuGetPackageRestore.ps1 C:\Path\To\Solution.sln
# Get the path that the user specified when calling the script
$solution = $args[0]
$solutionPath = Split-Path $solution -Parent
$solutionName = Split-Path $solution -Leaf
# Delete the .nuget directory and all contents
Remove-Item (Join-Path $solutionPath ".nuget") -Force -Recurse -ErrorAction 0