Skip to content

Instantly share code, notes, and snippets.

View simoncaron's full-sized avatar
Tea, Earl Grey, Hot

Simon Caron simoncaron

Tea, Earl Grey, Hot
View GitHub Profile
@simoncaron
simoncaron / delete-stale-branches.ps1
Last active February 8, 2023 14:30
A script that loops on Az DevOps repositories in a project to delete stale branches.
#
# delete-stale-branches.ps1
#
# This script deletes stale branches older than a specific number of days in Azure DevOps repos for a specific project.
#
# This script uses az devops CLI extension. Organization must be set prior using the command:
#
# az devops configure -d organization=https://dev.azure.com/<org-name>
#
# This script is based on Aamer Sadiq delete-stale-branches.ps1
@simoncaron
simoncaron / check-path-expiration.ps1
Last active February 8, 2023 04:24
Check and Warn Users about pending PAT Expiration on Azure DevOps Service Accounts
Param
(
[string]$PAT,
[string]$Organization,
[string]$WarningEmailAddress,
[string]$ServiceAccountList,
[int]$DelayBeforeWarning,
[string]$SmtpServer = "smtp.server.com",
[string]$SmtpMailFrom = "[email protected]",
[string]$SmtpPort = "25"
# /boot/config/go
# add the following...
# Tailscale
bash /boot/config/tailscale/install.sh
bash /boot/config/tailscale/start.sh
@simoncaron
simoncaron / Contributing.md
Created August 13, 2017 03:49 — forked from MarcDiethelm/Contributing.md
How to contribute to a project on Github

This text now lives at https://github.com/MarcDiethelm/contributing/blob/master/README.md. I turned it into a Github repo so you can, you know, contribute to it by making pull requests.


Contributing

If you want to contribute to a project and make it better, your help is very welcome. Contributing is also a great way to learn more about social coding on Github, new technologies and and their ecosystems and how to make constructive, helpful bug reports, feature requests and the noblest of all contributions: a good, clean pull request.