Skip to content

Instantly share code, notes, and snippets.

View jeanfrancoislarente's full-sized avatar

J.F. Larente jeanfrancoislarente

View GitHub Profile
@jeanfrancoislarente
jeanfrancoislarente / Microsoft.PowerShell_profile.ps1.sample
Last active February 11, 2022 00:38
Custom powershell profiles with aliases directory navigation
$sharedProfile = [string]::join([environment]::newline, (get-content -path "<path-to>\profile.ps1"))
Invoke-Expression $sharedProfile
$saveHistoryScript = $sharedProfile = [string]::join([environment]::newline, (get-content -path "C:\<path-to>\ps-profile\psexit.ps1"))
Invoke-Expression $saveHistoryScript
@jeanfrancoislarente
jeanfrancoislarente / azure-pipelines-output.txt
Last active June 11, 2021 17:18
GitVersion configuration and output
2021-06-11T14:14:29.8053509Z ##[section]Starting: Execute GitVersion
2021-06-11T14:14:29.8155352Z ==============================================================================
2021-06-11T14:14:29.8155648Z Task : Execute GitVersion Task
2021-06-11T14:14:29.8155964Z Description : Easy Semantic Versioning (http://semver.org) for projects using Git
2021-06-11T14:14:29.8156226Z Version : 0.9.9
2021-06-11T14:14:29.8156436Z Author : GitTools Contributors
2021-06-11T14:14:29.8156736Z Help : See the [documentation](https://gitversion.net/docs/) for help
2021-06-11T14:14:29.8157057Z ==============================================================================
2021-06-11T14:14:30.0790721Z Command: dotnet-gitversion C:/a/1/s /output json /output buildserver /config C:\a\1\s\GitVersion.yml /updateassemblyinfo
2021-06-11T14:14:30.0818723Z [command]C:\a\_tool\GitVersion.Tool\5.6.10\x64\dotnet-gitversion.exe C:/a/1/s /output json /output buildserver /config C:\a\1\s\GitVersion.yml /updateassembl
@jeanfrancoislarente
jeanfrancoislarente / create-vmss.md
Last active April 11, 2023 18:10
Create a Virtual Machine Scaleset for Azure Pipelines

Creating an Azure DevOps Scale Set Agent Pool

Find SKUs

To create a VM, you need an image. This can be found by using az vm image list. Some examples below:

`az vm image list -p MicrosoftWindowsServer -f windowsserver -s datacenter-core-2004 --all

`az vm image list -p MicrosoftWindowsServer -f windowsserver -s datacenter-core-20H2 --all

I hereby agree to the terms of the Contributors License Agreement, version 2.0, with MD5 checksum 143da42902fd29612270cc1e4c7b5296.

I furthermore declare that I am authorized and able to make this agreement and sign this declaration.

Signed,

Jean-François Larente

@jeanfrancoislarente
jeanfrancoislarente / copy-repo.ps1
Last active June 15, 2019 04:12
Copy contents of a git repo (branch) to another similar (not connected) repo
<#
.SYNOPSIS
Simple but useful script to copy "exported" git content from one repo (specific branch) to another repo
.DESCRIPTION
Script allows copying from two different repos (different providers, between public and private repos, etc) by creating an
archive (git archive) of a particular branch in one repo and extracting it into a cleaned destination folder
which is linked to another related but disconnected repo.
This is particularly useful when you can't fork a public repo and make it private
(when dealing perhaps with repos that leverage both public and pre-release / unpublished software)