Skip to content

Instantly share code, notes, and snippets.

@negeric
negeric / .env
Created November 8, 2023 14:54
Pi-Hole with DNSCrypt
TZ="America/New_York"
WEBPASSWORD="SuperSecretPassword"
DNS1="172.22.2.12#5300"
BIND_IP_PIHOLE="172.22.2.53"
BIND_IP_DNSCRYPT="172.22.2.12"
WEB_HOST="pi.domain.local"
WEB_PORT="80"
DNSMASQ_LISTENING="all"
<#
.SYNOPSIS
This script will enumerate through a Storage Account and delete files that are older than x
.DESCRIPTION
The script requires you to log into your account then automatically pulls your Account Keys.
Using the Storage Account Keys, the script searches for files older than the provided date
.PARAMETER ResourceGroup
Name of the Resource Group that the Storage Account is in - Required
.PARAMETER StorageAccount
Name of the Storage Account that the Container is in - Required
@negeric
negeric / Get-AzureOrphanedInterfaces.ps1
Created March 28, 2018 20:26
Displays and removes Azure Network Interfaces that are not associated with a VM
<#
.SYNOPSIS
Deletes Azure Network Interfaces not associated with a VM
.DESCRIPTION
Iterates through the network interfaces in an Azure subscription
And deletes the interfaces not associated with a VM
Will log to a file if LogFile parameter is passed
.PARAMETER Force
Do not ask permission for each interface
This will delete all interfaces that are not associated with a VM
@negeric
negeric / Remove-AzureBlobStorage.ps1
Created February 7, 2018 18:36
This script will enumerate through a Storage Account and delete files that are older than x
#requires -version 2
<#
.SYNOPSIS
This script will enumerate through a Storage Account and delete files that are older than x
.DESCRIPTION
The script requires you to log into your account then automatically pulls your Account Keys.
Using the Storage Account Keys, the script searches for files older than the provided date
.PARAMETER SubscriptionName
Name of your Azure Subscription - Required
.PARAMETER ResourceGroup