Skip to content

Instantly share code, notes, and snippets.

View martijnvanschie's full-sized avatar
🏠
Working from home

Martijn van Schie martijnvanschie

🏠
Working from home
View GitHub Profile
@martijnvanschie
martijnvanschie / disable-cloud-unit.md
Last active March 24, 2022 12:43
Disable cloud-init on Ubuntu 20.04.3

Disable cloud-init on Ubuntu 20.04.3

Disable cloud-init

sudo touch /etc/cloud/cloud-init.disabled

Set statis IP address

Add a file called 99_config.yaml to the netplan (/etc/netplan) folder with the following content. IP Address should fit your CIDR block configured in your router.

@martijnvanschie
martijnvanschie / oh-my-posh-quick-guide.md
Last active June 8, 2023 08:23
Oh My Posh Quick Guide

Oh My Posh - Quick Guide

Installing on windows 11

You can install oh-my-posh per terminal but you can also use winget for the easiest installation. It will apply to all available terminals on your system.

Open a PowerShell prompt and run the following command:

winget install oh-my-posh
@martijnvanschie
martijnvanschie / vnet-with-prefix.kql
Last active November 17, 2023 09:53
KQL query to select all Virtual Networks with a specific address prefix
resources
| where tolower(type) == "microsoft.network/virtualnetworks"
| where properties.addressSpace.addressPrefixes has "10.192"
| project name, location, properties.addressSpace.addressPrefixes[0], properties.subnets
| order by name asc