This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from azure.storage.blob import BlobServiceClient, BlobClient, ContainerClient | |
from datetime import datetime | |
from urllib.parse import urlparse | |
# Required package: azure-storage-blob | |
# API Docs: https://docs.microsoft.com/en-us/rest/api/storageservices/copy-blob-from-url | |
now = datetime.now() | |
connection_string = os.getenv('AZURE_CONNECTION_STRING') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Required Package: @azure/storage-blob and dotenv | |
// API Docs: https://docs.microsoft.com/en-us/rest/api/storageservices/copy-blob-from-url | |
require('dotenv').config(); | |
const { BlobServiceClient } = require('@azure/storage-blob'); | |
const path = require('path'); | |
let now = new Date(); | |
const AZURE_STORAGE_CONNECTION_STRING = process.env.AZURE_STORAGE_CONNECTION_STRING; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
search: | |
\[FunctionName\("(\w+)"\)\] | |
replace: | |
[FunctionName(nameof($1))] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Synchronously | |
git ls-tree -r --name-only HEAD | foreach { (Get-Item $_).LastWriteTime = [DateTime]::Parse("$(git log -1 --format="%ad" --date=iso8601 -- $_)") } | |
# Asynchronously | |
git ls-tree -r --name-only HEAD | ForEach-Object -Parallel { (Get-Item $_).LastWriteTime = [DateTime]::Parse("$(git log -1 --format="%ad" --date=iso8601 -- $_)") } |
OlderNewer