Skip to content

Instantly share code, notes, and snippets.

View lucasmodrich's full-sized avatar
:octocat:
Focusing

LM lucasmodrich

:octocat:
Focusing
  • Australia
  • 06:02 (UTC +10:00)
View GitHub Profile
@bryanbraun
bryanbraun / git-branching-diagram.md
Last active April 27, 2025 17:30
Example Git Branching Diagram

Example Git Branching Diagram

You can use this diagram as a template to create your own git branching diagrams. Here's how:

  1. Create a new diagram with diagrams.net (formerly draw.io)
  2. Go to File > Open From > URL
  3. Insert this url (it points to the xml data below): https://gist.githubusercontent.com/bryanbraun/8c93e154a93a08794291df1fcdce6918/raw/bf563eb36c3623bb9e7e1faae349c5da802f9fed/template-data.xml
  4. Customize as needed for your team.

@stefanstranger
stefanstranger / Create-WIKIDocumentation.ps1
Created April 12, 2020 10:02
Create Azure DevOps WIKI Documentation
<#
PowerShell script to create Azure DevOps WIKI Markdown Documentation
https://docs.microsoft.com/en-US/rest/api/azure/devops/wiki/pages/create%20or%20update?view=azure-devops-rest-5.0#examples
https://medium.com/digikare/create-automatic-release-notes-on-azuredevops-f235376ec533
Requirements:
- PSDocs PowerShell Module (Install-Module -Name PSDocs)
#>
@i-b1
i-b1 / BackupFunction.cs
Created March 9, 2020 16:29
Azure DevOps API - Repositories Backup
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using Microsoft.Extensions.Logging;
using Microsoft.WindowsAzure.Storage;
using Newtonsoft.Json;
@nh43de
nh43de / CloneAllRepos.ps1
Last active July 9, 2024 13:26
Clone all repos from Azure DevOps using Powershell
<#
--credits to https://blog.rsuter.com/script-to-clone-all-git-repositories-from-your-vsts-collection/
Create a file called "CloneAllRepos.config" in the same directory with
[General]
Url=??
Username=??
Password=??
@JaimeStill
JaimeStill / README.md
Last active December 12, 2021 10:42
Active Directory Authorization Workflow
@JaimeStill
JaimeStill / README.md
Last active November 22, 2024 09:09
ASP.NET Core Active Directory Integration

Active Directory Authentication

This will provide an example of integrating Active Directory authentication in an ASP.NET Core app.

Note, you'll need to be running on a Windows domain with Visual Studio debugging in IIS Express for this to work.

Setup

In launchSettings.json, you'll want to modify iisSettings by turning on windowsAuthentication:

@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active May 12, 2025 16:39
Conventional Commits Cheatsheet

Conventional Commit Messages starline

See how a minor change to your commit message style can make a difference.

Tip

Take a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs

Commit Message Formats

Default

@deadlyfingers
deadlyfingers / wordpress-html-to-md.rb
Last active February 13, 2022 12:56
Converts Wordpress .html to Markdown .md file
# Converts Wordpress .html to Markdown .md file
# usage:
# ruby ./wordpress-html-to-md.rb "_posts/post.html"
# ruby ./wordpress-html-to-md.rb "_posts"
# requires:
# gem install reverse_markdown
require 'fileutils'
@BoGnY
BoGnY / README.md
Last active April 22, 2025 17:56
[WINDOWS] How to enable auto-signing Git commits with GnuPG for programs that don't support it natively

[WINDOWS] How to enable auto-signing Git commits with GnuPG for programs that don't support it natively

This is a step-by-step guide on how to enable auto-signing Git commits with GPG for every applications that don't support it natively (eg. GitHub Desktop, Eclipse, Git Tower, ...)

Requirements

  • Install GPG4Win: this software is a bundle with latest version of GnuPG v2, Kleopatra v3 certificate manager, GNU Privacy Assistant (GPA) v0.9 which is a GUI that uses GTK+, GpgOL and GpgEX that are respectively an extension for MS Outlook and an extension for Windows Explorer shell
  • Install Git for Windows: so you can have a *nix based shell, this software is a bundle with latest version of Git which use MINGW environment, a Git bash shell, a Git GUI and an extension for Windows Explorer shell (Make sure your local version of Git is at least 2.0, otherwise Git don't have support for automatically sign your commits)
  • Verify
@JamesNK
JamesNK / validate-schema.ps1
Last active July 1, 2021 15:38
Validate Schema from PowerShell
$ErrorActionPreference = "Stop"
$NewtonsoftJsonPath = Resolve-Path -Path "bin\Newtonsoft.Json.dll"
$NewtonsoftJsonSchemaPath = Resolve-Path -Path "bin\Newtonsoft.Json.Schema.dll"
Add-Type -Path $NewtonsoftJsonPath
Add-Type -Path $NewtonsoftJsonSchemaPath
$source = @'
public class Validator