Skip to content

Instantly share code, notes, and snippets.

@agrazh
agrazh / az_cli_jwt.py
Last active September 30, 2025 08:30
Azure passwordless authentication method
from msal import PublicClientApplication
# Azure CLI's well-known public client ID
client_id = "04b07795-8ddb-461a-bbee-02f9e1bf7b46"
tenant_id = "your-tenant-id" # Replace with your actual tenant ID
app = PublicClientApplication(
client_id=client_id,
authority=f"https://login.microsoftonline.com/{tenant_id}"
)
@agrazh
agrazh / excel-compare-two.html
Created May 22, 2025 21:25
Excel Compare Two
<!DOCTYPE html>
<html>
<head>
<title>Excel Compare 2 Tool</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js"></script>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
line-height: 1.6;
@agrazh
agrazh / excel-comparison-three.html
Last active May 22, 2025 21:28
Excel compare 2 files using mapping
<!DOCTYPE html>
<html>
<head>
<title>Excel Advanced Comparison Tool</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js"></script>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
line-height: 1.6;
----------------------------
-- BPM matching --
----------------------------
-- Get BPM Id
-----------------------
declare @bassur_id VARCHAR2(38);
set @bassur_id = 'B7D8AF73-3A74-4A9F-9CA4-BAACB4C186AE'; -- BPM product category
@agrazh
agrazh / GlbConstants.js
Last active April 7, 2023 18:38
[Pre-defined page, with filters on lookup fields, for Creatio CRM]
define("GlbConstants", [], function() {
var accountType = {
OurDepartment: "01d5bbff-8d27-49a5-a338-a3875dd536e3",
OurBranch: "a2f28c3e-0af9-4e66-8550-8b0436d8276a"
};
var account = {
HQ: "e308b781-3c5b-4ecb-89ef-5c1ed4da488e"
};