Skip to content

Instantly share code, notes, and snippets.

View dedale's full-sized avatar
💭
Way more active in GitHub Enterprise 😉

Vianney P. dedale

💭
Way more active in GitHub Enterprise 😉
View GitHub Profile
@dedale
dedale / AutoRun.cmd
Last active April 20, 2021 07:00
Prefix cmd prompt with poetry project name
:: Computer\HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun="%USERPROFILE%\AutoRun.cmd"
:: (replace USERPROFILE with actual value)
@echo off
:: skip if already done
if "%RC_CMD%"=="1" goto :skip
cls
prompt $p$g
:: Update PATH
@dedale
dedale / Example of usage
Last active December 19, 2022 13:15
Custom MSBuild task with mutex
<!-- Replace -->
<MSBuild Projects="$(MSBuildProjectFullPath)"
Targets="Restore"
Properties="$(PackageRestoreProperties)"
BuildInParallel="true" />
<!-- With -->
<Import Project="...\MSBuildWithMutex.proj" />
<!-- ... -->
<Target Name="Restore...Packages" DependsOnTargets="CompileMSBuildWithMutex">
@dedale
dedale / Program.fs
Created January 31, 2021 21:15
Get all public Spotify playlists for a user
open FSharp.Json
open Hopac
open HttpFs.Client
open System
open System.IO
type Credentials = {
access_token : string
}