Skip to content

Instantly share code, notes, and snippets.

sequenceDiagram
    participant User
    participant Browser
    participant AzureAD_B2C as Azure AD B2C
    participant IDP as Identity Provider
    participant App as Relying Party Application

    Note over User, Browser: Step 1: Access Sign Up or Sign In page
    User->>Browser: Access Sign Up/Sign In Page
@dariuszparys
dariuszparys / ngrok.md
Created July 29, 2024 15:00
Ngrok Cheat Sheet
URL Protocol Command
Ephemeral http ngrok http 5162
Ephemeral https ngrok http https://localhost:7049
Custom Domain http ngrok http --domain=your-custom-subdomain.ngrok-free.app 80
Custom Domain https ngrok http --domain=your-custom-subdomain.ngrok-free.app https://localhost:7049
<#
.SYNOPSIS
This script compiles Bicep files to ARM templates and generates corresponding documentation.
.DESCRIPTION
The script takes in a directory of Bicep files, compiles them into ARM templates and then generates markdown documentation for each ARM template.
The markdown files are then merged into a single file and copied to the destination path provided.
.PARAMETER BicepDirectory
Specifies the directory containing Bicep files. This parameter is mandatory.
@dariuszparys
dariuszparys / rate-limit.yaml
Created May 7, 2024 18:54
Docker Rate Limit Azure Pipeline
trigger: none
pool:
vmImage: ubuntu-latest
steps:
- script: |
docker images
displayName: "List available images in agent"
@dariuszparys
dariuszparys / le-toucan.txt
Created December 5, 2023 12:46
Le toucan has arrived
░░░░░░░░▄▄▄▀▀▀▄▄███▄░░░░░░░░░░░░░░░░░░
░░░░░▄▀▀░░░░░░░▐░▀██▌░░░░░░░░░░░░░░░░░
░░░▄▀░░░░▄▄███░▌▀▀░▀█░░░░░░░░░░░░░░░░░
░░▄█░░▄▀▀▒▒▒▒▒▄▐░░░░█▌░░░░░░░░░░░░░░░░
░▐█▀▄▀▄▄▄▄▀▀▀▀▌░░░░░▐█▄░░░░░░░░░░░░░░░
░▌▄▄▀▀░░░░░░░░▌░░░░▄███████▄░░░░░░░░░░
░░░░░░░░░░░░░▐░░░░▐███████████▄░░░░░░░
░░░░░le░░░░░░░▐░░░░▐█████████████▄░░░░
░░░░toucan░░░░░░▀▄░░░▐██████████████▄░
░░░░░░has░░░░░░░░▀▄▄████████████████▄░
@dariuszparys
dariuszparys / 1-setup.md
Created April 28, 2023 22:40 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS

Methods of Signing with a GPG Key on MacOS

Last updated September 21, 2022

This Gist explains how to do this using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.

There has been a number of comments on this gist regarding some issues around the pinentry-program and M1 Macs. I've finally gotten a chance to try things out on an M1 and I've updated the documentation in 2-using-gpg.md to reflect my findings.

@dariuszparys
dariuszparys / config
Created March 21, 2023 17:00 — forked from pksunkara/config
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
[user]
name = Pavan Kumar Sunkara
email = [email protected]
username = pksunkara
[init]
defaultBranch = master
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
@dariuszparys
dariuszparys / arm64-on-Win10.md
Created December 9, 2021 15:12 — forked from billti/arm64-on-Win10.md
ARM64 Linux on Win10

Below are the steps to get an ARM64 version of Ubuntu running in the QEMU emulator on Windows 10.

Install QEMU

Install for Windows from https://qemu.weilnetz.de/w64/ (I used qemu-w64-setup-20181211.exe)

Put C:\Program Files\qemu on your PATH, and run the below to check it's working (which will list out the CPUs the AArch64 emulator can emulate):

qemu-system-aarch64 -M virt -cpu help
@dariuszparys
dariuszparys / Instructions.md
Created September 2, 2021 20:41
Running VSCode DevContainers with Podman

Running Visual Studio Code DevContainers with Podman

Modify the corresponding .devcontainer.json to include this settings. If the container already has runArgs merge this setting with the existent.

"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,Z",
"workspaceFolder": "/workspace",

"runArgs": ["--userns=keep-id"],
choco install Microsoft-Windows-Subsystem-Linux --source windowsfeatures
Invoke-WebRequest -Uri https://aka.ms/wsl-debian-gnulinux -OutFile ~/Debian.appx -UseBasicParsing
Add-AppxPackage -Path ~/Debian.appx
RefreshEnv
Debian install --root
Debian run apt update
Debian run apt upgrade -y