Skip to content

Instantly share code, notes, and snippets.

@dazinator
dazinator / #emulate-managed-identity.md
Created April 8, 2024 17:49 — forked from maskati/#emulate-managed-identity.md
Emulate Azure managed identity locally
@dazinator
dazinator / docker-compose.yaml
Created July 18, 2023 12:18 — forked from lucj/docker-compose.yaml
fluent-bit / loki / grafana on Docker Swarm
version: '3.8'
configs:
loki-conf:
file: ./loki.conf
fluent-bit-conf:
file: ./fluent-bit.conf
networks:
monitoring:
@dazinator
dazinator / GLUSTER_SETUP.sh
Created December 1, 2022 17:28 — forked from smola/GLUSTER_SETUP.sh
Quick and dirty single-node GlusterFS setup
#
# Instructions for quick gluster server (1 node) setup with a volume on LVM.
# No replication, just using localhost.
#
# See https://docs.gluster.org/en/latest/Administrator%20Guide/Brick%20Naming%20Conventions/
#
# Install GlusterFS
add-apt-repository ppa:gluster/glusterfs-4.0
apt-get install glusterfs-server
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
pool:
vmImage: 'windows-latest'
@dazinator
dazinator / unlist-packages.ps1
Last active June 10, 2020 13:37 — forked from dstockhammer/unlist-packages.ps1
Unlist all versions of a NuGet package
choco install nuget.commandline
$PackageId = "xxx"
$ApiKey = "yyy"
$json = Invoke-WebRequest -Uri "https://api.nuget.org/v3-flatcontainer/$PackageId/index.json" | ConvertFrom-Json
foreach($version in $json.versions)
{
Write-Host "Unlisting $PackageId, Ver $version"