Skip to content

Instantly share code, notes, and snippets.

View lennartb-'s full-sized avatar

Lennart Brüggemann lennartb-

  • Scopeland Technology
  • Berlin, Germany
View GitHub Profile
@kaczmar2
kaczmar2 / 1-pihole-v6-self-signed-certs.md
Last active April 13, 2025 04:28
Pi-hole v6: Creating Your Own Self-Signed SSL Certificates

Pi-hole v6: Creating Your Own Self-Signed SSL Certificates

See my other guides for SSL certificates on Pi-hole v6:

Overview

Pi-hole v6 introduces changes to its web server:

  • Embedded Web Server – Pi-hole no longer relies on lighttpd.
@itsho
itsho / HwndHostEx.cs
Last active March 24, 2025 07:59
Hosting an app inside a WPF app (System.Windows.Interop)
using System;
using System.Runtime.InteropServices;
using System.Windows.Interop;
namespace HostingAppTest
{
// based on https://stackoverflow.com/q/30186930/426315
public class HwndHostEx : HwndHost
{
private readonly IntPtr _childHandle;
@trlewis
trlewis / MainWindow.xaml
Created February 20, 2016 07:25
SFML .Net with WPF
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
Title="MainWindow" Height="350" Width="525">
<Grid x:Name="MyGrid">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
@9to5IT
9to5IT / Script_Template.ps1
Last active March 27, 2025 22:52
PowerShell: Script Template
#requires -version 2
<#
.SYNOPSIS
<Overview of script>
.DESCRIPTION
<Brief description of script>
.PARAMETER <Parameter_Name>
<Brief description of parameter input required. Repeat this attribute if required>