Skip to content

Instantly share code, notes, and snippets.

View cw-andrews's full-sized avatar

CW Andrews cw-andrews

View GitHub Profile
@cw-andrews
cw-andrews / copy-local-dir-to-blob-container.PS1
Created April 24, 2024 15:06
Copying a local directory to an Azure Blob Storage container
azcopy login
azcopy copy 'C:\temp\2024' 'https://stimageprocessingdev.blob.core.windows.net/stock-images/2024' --recursive
@cw-andrews
cw-andrews / Push-Bicep-Module.ps1
Created October 30, 2023 16:01
[Push Bicep Module]
$name = ""
$version = "1.0.0"
$templatePath = ""
$force = false
az bicep publish --file $templatePath --target "br:acrop6lmdw4nirdw.azurecr.io/bicep/modules/$(name):$(version)"
def a_test_function(string: str):
return type(string) == str
@cw-andrews
cw-andrews / example_job.py
Created November 11, 2017 18:26
CSV Sanitizer Bonobo ETL Job with Atomic Writes
import argparse
from time import sleep
import os
import re
import bonobo
from atomicwrites import atomic_write
from fs.osfs import OSFS
from texools.files import new_file_check