Skip to content

Instantly share code, notes, and snippets.

@jikuja
jikuja / README.md
Last active August 11, 2024 18:19
Command-line magic

Create table placeholder for JIRA/Confluence

echo '|name|x|' ; echo '|----|----|' ; <data generating command here. e.g. pbpaste>  | awk '{print "|"$0"| |"}'

Convert escaped JSON string

@jikuja
jikuja / management-group-level.md
Created July 31, 2024 10:50
Azure activity logs
@jikuja
jikuja / Externsions.md
Last active July 31, 2024 09:25
Monitoring infrastructure

Virtual macine extensions

List all available extensions:

$location = "eastus"  # Specify the location
$publishers = Get-AzVMImagePublisher -Location $location
@jikuja
jikuja / OS-X-RAMDISK.md
Created June 14, 2024 06:44
OS X RAMDISK usage

OS X RAMDISK Usage

Before creating large disks check from Apple documentation if memory is de-allocated after hdiutil detach[^1]

This guide has only CLI steps: using GUI tools might work but not covered here.

Create a new RAM disk device

hdiutil attach -nomount ram://2097152
@jikuja
jikuja / README.md
Last active March 3, 2024 18:49
Azure Storage acccount types

Storage account types

Configuration on resource property

Kind property

value usage
'BlobStorage' Legacy: Blob Storage
'BlockBlobStorage' Portal: Premium / Block blobs
@jikuja
jikuja / KQL-snippets.md
Last active June 22, 2024 13:56
Log analytics workspace and Azure Resource Graph queries

Collection of KQL queries

@jikuja
jikuja / README.md
Last active February 11, 2024 18:55
Azure icon collections
@jikuja
jikuja / README.md
Last active November 21, 2023 17:36
HTTP debugging tools
@jikuja
jikuja / AzureActivity.md
Last active November 12, 2023 13:34
Azure Logging
@jikuja
jikuja / README.md
Last active August 13, 2023 18:25
VPN/Routing troubleshooting

Troubleshoot

The script

Run attached script.

Script output samples

OS X: Access to key vault not using P2S VPN