Skip to content

Instantly share code, notes, and snippets.

View m-wild's full-sized avatar
👻
Boo

Michael Wildman m-wild

👻
Boo
View GitHub Profile
@m-wild
m-wild / darkice.Dockerfile
Last active May 8, 2024 17:57
Darkice + Icecast Docker on ARM64 Raspberry Pi
FROM debian:latest as builder
WORKDIR /app
RUN apt-get update \
&& apt-get --no-install-recommends --yes install \
ca-certificates curl wget build-essential tar pkg-config \
alsa-utils lame libmp3lame-dev libpulse-dev libjack-jackd2-dev \
libaudio-dev libasound2-dev libshout3-dev libmp3lame-dev
@m-wild
m-wild / POCO.cs.groovy
Created October 4, 2023 10:16
Jetbrains Rider/DataGrip C# POCO extractor
/*
* Available context bindings:
* COLUMNS List<DataColumn>
* ROWS Iterable<DataRow>
* OUT { append() }
* FORMATTER { format(row, col); formatValue(Object, col); getTypeName(Object, col); isStringLiteral(Object, col); }
* TRANSPOSED Boolean
* plus ALL_COLUMNS, TABLE, DIALECT
*
* where:
@m-wild
m-wild / Program.cs
Created August 12, 2024 22:16
LINQPad 8 Antivirus Performance Test
// Antivirus Performance Test
//
// This query generates a tiny (2KB) DLL and times how long it takes to load.
//
// Normal results on a healthy computer:
// - 1 millisecond or less with antivirus software disabled
// - 30 milliseconds or less with antivirus software enabled
using System.Diagnostics;