Skip to content

Instantly share code, notes, and snippets.

View danieljurek's full-sized avatar

Daniel Jurek danieljurek

View GitHub Profile
@danieljurek
danieljurek / Get-Blobs.ps1
Created November 19, 2023 05:27
PowerShell: Use az CLI to list all blobs in a container
param(
$AccountName,
$ContainerName
)
$allBlobs = @()
$marker = ''
while($true) {
$blobResult = az storage blob list `
@danieljurek
danieljurek / install-az.sh
Created December 6, 2022 20:46
Install az CLI on Linux ARM64
#!/usr/bin/env bash
# Stop script on non-zero exit code
set -e
# Stop script if unbound variable found (use ${var:-} if intentional)
set -u
set pipefail
temp_dir=$(mktemp -d /tmp/tool-preinstall-XXXXXXXX)
sudo apt update
@danieljurek
danieljurek / Find-DuplicateGitFiles.ps1
Created April 22, 2021 04:25
Windows detect duplicate filenames in git repo
# Windows files are case-insensitive by default. It is possible
# to have two files with different casing in a git repository
# (e.g. foo.txt and FOO.txt). In these situations only one file
# will appear in the folder. Changes to this file will confuse
# git. Use this script to check for the existence of these
# duplicated files.
$gitFileHash = @{};
$gitFiles = git ls-files
const { spawn, spawnSync } = require('child_process');
const { promisify } = require('util');
const { Semaphore } = require('await-semaphore');
const spawnAsync = promisify(spawn);
async function go() {
console.log("===SYNC===");
for (let i = 0; i < 10; i++) {
@danieljurek
danieljurek / keybase.md
Created September 30, 2015 17:14
Proving who I am on keybase

Keybase proof

I hereby claim:

  • I am danieljurek on github.
  • I am danieljurek (https://keybase.io/danieljurek) on keybase.
  • I have a public key whose fingerprint is 64F0 767F 630B 494A 8029 02E9 5A5B ABC8 FE4B 9395

To claim this, I am signing this object: