Skip to content

Instantly share code, notes, and snippets.

View DariuszPorowski's full-sized avatar
👽
I may be slow to respond.

Dariusz Porowski DariuszPorowski

👽
I may be slow to respond.
View GitHub Profile

GitHub Markdown

Note

Note

Highlights information that users should take into account, even when skimming.

TIP

[!TIP]

Downloading Read-Only Microsoft Teams and Stream Videos and Recordings with FFMPEG

Getting the URL

  • Go to URL which has the video, open dev tools (usually F12) / inspect (Right Click > Inspect) in the browser and go to the Network tab.

  • Then reload the page.

  • In the network tab, search the following command using the search area. videomanifest?provider

gh run list --workflow="CodeQL" --limit 100 --json databaseId --jq ".[].databaseId" | ForEach-Object { gh run delete $_ }
@DariuszPorowski
DariuszPorowski / gh_1es_runner.tf
Last active June 26, 2025 23:15
[Terraform] GitHub 1ES Runner
terraform {
required_version = ">= 1.9.6, < 2.0.0"
required_providers {
azapi = {
source = "Azure/azapi"
version = "2.4.0"
}
}
}
@DariuszPorowski
DariuszPorowski / azdo.artifacts.entrasp.uv.yml
Last active June 26, 2025 14:45
[GitHub Workflow] AzDO Artifacts (ENTRA SP with OIDC, UV)
# Author: Dariusz Porowski
# GitHub: https://github.com/DariuszPorowski
# License: MIT
# 1. Create SP in Entra https://learn.microsoft.com/en-us/azure/devops/integrate/get-started/authentication/service-principal-managed-identity?view=azure-devops#create-an-application-service-principal
# 2. Add Entra SP to AzDO org https://learn.microsoft.com/en-us/azure/devops/integrate/get-started/authentication/service-principal-managed-identity?view=azure-devops#2-add-and-manage-service-principals-in-an-azure-devops-organization
# SP does not need to be assigned to any Azure Subscription if you do not plan to use it to access Azure Resources but requires extra config on the Azure login step ('allow-no-subscriptions: true')
# 3. Assign Feed permissions in the AzDO Artifacts (via AzDO team, direct assignment not possible so far) https://learn.microsoft.com/en-us/azure/devops/artifacts/feeds/feed-permissions?view=azure-devops
# `Reader` is fine for pulling private packages only
# `Collaborator` if access to public packages
@DariuszPorowski
DariuszPorowski / azdo.artifacts.entrasp.pip.yml
Last active June 26, 2025 14:34
[GitHub Workflow] AzDO Artifacts (ENTRA SP with OIDC, PIP)
# Author: Dariusz Porowski
# GitHub: https://github.com/DariuszPorowski
# License: MIT
# 1. Create SP in Entra https://learn.microsoft.com/en-us/azure/devops/integrate/get-started/authentication/service-principal-managed-identity?view=azure-devops#create-an-application-service-principal
# 2. Add Entra SP to AzDO org https://learn.microsoft.com/en-us/azure/devops/integrate/get-started/authentication/service-principal-managed-identity?view=azure-devops#2-add-and-manage-service-principals-in-an-azure-devops-organization
# SP does not need to be assigned to any Azure Subscription if you do not plan to use it to access Azure Resources but requires extra config on the Azure login step ('allow-no-subscriptions: true')
# 3. Assign Feed permissions in the AzDO Artifacts (via AzDO team, direct assignment not possible so far) https://learn.microsoft.com/en-us/azure/devops/artifacts/feeds/feed-permissions?view=azure-devops
# `Reader` is fine for pulling private packages only
# `Collaborator` if access to public packages
@DariuszPorowski
DariuszPorowski / Cleanup-LocalGit.ps1
Created June 18, 2022 00:22
Clean up local Git branches that have been deleted on the remote (PowerShell)
git fetch -p; git branch -vv | ?{ $_ -match ': gone]' } | %{ $_.Trim().Split(' ')[0] } | %{ git branch -D $_ }
@DariuszPorowski
DariuszPorowski / cleanuplocalgit.sh
Last active June 18, 2022 00:24
Clean up local Git branches that have been deleted on the remote (Bash)
#!/bin/bash
git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done