Skip to content

Instantly share code, notes, and snippets.

View mrtarkhan's full-sized avatar

Mohammadreza Tarkhan mrtarkhan

View GitHub Profile
@mrtarkhan
mrtarkhan / pkcs-prefixes.csv
Created April 1, 2024 07:08
PKCS prefixes
Prefix Description
C_ Function
CK_ Data type or general constant
CKA_ Attribute
CKC_ Certificate type
CKD_ Key derivation function
CKF_ Bit flag
CKG_ Mask generation function
CKH_ Hardware feature type
CKK_ Key type
@mrtarkhan
mrtarkhan / azure-functions-runtime.csv
Last active October 1, 2023 10:58
As of December 13, 2022, function apps running on versions 2.x and 3.x of the Azure Functions runtime have reached the end of life (EOL) of extended support
Runtime Version Support Level Recommended Usage
1.x GA (support ends September 14, 2026) Supported only for C# apps that must use .NET Framework. This version is in maintenance mode, with enhancements provided only in later versions. Support will end for version 1.x on September 14, 2026. We highly recommend you migrate your apps to version 4.x, which supports .NET Framework 4.8, .NET 6, .NET 7, and a preview of .NET 8.
4.x GA Recommended runtime version for functions in all languages. Check out Supported language versions.
@mrtarkhan
mrtarkhan / azure-functinos-scenarios.csv
Last active September 20, 2023 09:02
These scenarios allow you to build event-driven systems using modern architectural patterns via azure functions.
If you want to... then...
Process file uploads Run code when a file is uploaded or changed in blob storage.
Process data in real time Capture and transform data from event and IoT source streams on the way to storage.
Infer on data models Pull text from a queue and present it to various AI services for analysis and classification.
Run scheduled task Execute data clean-up code on pre-defined timed intervals.
Build a scalable web API Implement a set of REST endpoints for your web applications using HTTP triggers.
Build a serverless workflow Create an event-driven workflow from a series of functions using Durable Functions.
Respond to database changes Run custom logic when a document is created or updated in Azure Cosmos DB.
Create reliable message systems Process message queues using Queue Storage, Service Bus, or Event Hubs.
@mrtarkhan
mrtarkhan / rest-api-response-format.md
Created April 13, 2023 08:55 — forked from igorjs/rest-api-response-format.md
REST API response format based on some of the best practices
@mrtarkhan
mrtarkhan / Azure's commands to see what there is
Created February 16, 2023 21:36
All list command that is helpful when you are using azur cli
-- List supported regions for the current subscription
z account list-locations -o table
az account list-locations --query [].name -o tsv
-- Gets all resource providers for a subscription
az provider list -o table
az provider list --query [].namespace -o tsv
-- List the VM image publishers available in the Azure Marketplace.
@mrtarkhan
mrtarkhan / ArabicCharsToPersianTsql.sql
Last active March 6, 2022 07:32
changes Arabic characters to Persian characters in SQL-Server
-- This is a simple code to change ی , ک charachters from arabic to persian,
-- you can develop it to iterate over your column in a specific table or all
-- columns in a specific databases using many ways like cursors
UPDATE
dbo.ExampleTable
Set
FirstName = REPLACE(REPLACE(CAST(FirstName AS nvarchar(max)), NCHAR(1610), NCHAR(1740)), NCHAR(1603), NCHAR(1705))

Keybase proof

I hereby claim:

  • I am mrtarkhan on github.
  • I am mrtarkhan (https://keybase.io/mrtarkhan) on keybase.
  • I have a public key whose fingerprint is D393 AAEB 56FC 0601 E4A0 4721 70FB C647 9897 CF89

To claim this, I am signing this object: