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 / cstl.omp.json
Created December 6, 2023 13:57
oh-my-posh config
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"foreground": "#45F1C2",
"style": "plain",
"template": "\ueb99 {{ .UserName }} on",
@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:

Keybase proof

I hereby claim:

  • I am cstlaurent on github.
  • I am cstlaurent (https://keybase.io/cstlaurent) on keybase.
  • I have a public key whose fingerprint is 955B 6EE0 DE83 D0D9 EFE6 6811 41F9 5D9A F0E0 ECCB

To claim this, I am signing this object:

/// <summary>
/// Closes the current StreamWriter object and the underlying stream.
/// </summary>
/// <exception cref="T:System.Text.EncoderFallbackException">The current encoding does not support displaying half of a Unicode surrogate pair.</exception><filterpriority>1</filterpriority>
public override void Close()
{
this.Dispose(true);
GC.SuppressFinalize((object) this);
}
# 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