Skip to content

Instantly share code, notes, and snippets.

@jfstenuit
jfstenuit / win11vm.md
Created December 19, 2025 07:31
Windows 11 VM install

Install and prepare Windows 11 Pro (24H2)

Start without a network interface in the configuration - will help to create local account

KMS key : W269N-WFGWX-YVC9B-4J6C9-T83GX

Even if there is no network interface in the system, recent Win11 versions still insist on "Let's connect you to a network".

  • Press shift-F10
  • Type OOBE\BYPASSNRO
@jfstenuit
jfstenuit / androidsandbox.md
Created March 21, 2025 14:20
Android sandboxing in a web browser

🧪 Headless Android Emulator with VNC + Web Access (Ubuntu 24.04+)

This guide sets up a fully headless Android emulator environment on a Linux server using:

  • Google SDK tools
  • TigerVNC for remote GUI access
  • NoVNC to access the emulator via any browser
  • ADB shell access in a side terminal

Tested and confirmed working on Ubuntu 24.04.

@jfstenuit
jfstenuit / express-install-lighttpd-php.md
Created December 30, 2024 09:34
Express install Lighttpd and PHP under Ubuntu 24.04

Lighttpd with PHP-FPM and HTTPS Setup Commands

This gist provides all the commands needed to install and configure Lighttpd with PHP-FPM, enable HTTPS with a self-signed certificate, and redirect HTTP traffic to HTTPS.

Installation Commands

apt install lighttpd php-cgi php-fpm
lighty-enable-mod fastcgi
lighty-enable-mod fastcgi-php
lighty-enable-mod ssl
@jfstenuit
jfstenuit / minimal-mail-debian.md
Created July 10, 2024 07:57
Minimal mail service for debian-based systems

Minimal Mail Configuration for Debian-Based Servers

This guide provides the steps to configure minimal mail capacity on Debian-based servers to enable sending mail notifications to a sysadmin through a smarthost MTA.

Steps

1. Install ssmtp and bsd-mailx

First, update the package lists and install the required packages:

@jfstenuit
jfstenuit / test-ms365-sasl.md
Created March 20, 2024 16:14
Test MS365 SASL authenticated SMTP sending from linux

In order to troubleshoot the low-level communication of sending e-mail through Exchange Online using SASL authenticated SMTP, you can user this script :

#!/usr/bin/perl

use strict;
use warnings;
use Net::SMTP;
use Authen::SASL;
@jfstenuit
jfstenuit / easy-opendkim.md
Created August 2, 2023 07:40
Easily add domains to OpenDKIM

Configure a new domain in OpenDKIM

#!/bin/bash

DOMAIN="$1"
SELECTOR="mail"

if [ -z "${DOMAIN}" ]; then
 echo "Usage: $0 domain.name"
@jfstenuit
jfstenuit / headless-kvm-notes.md
Last active February 3, 2023 08:05
Quick reference for KVM on headless linux
apt install qemu-kvm libvirt-daemon-system libvirt-clients virtinst cpu-checker libguestfs-tools libosinfo-bin
virsh console deb-elastic
virsh destroy <name>
virsh domifaddr <name>
virsh dominfo <name>
virsh dumpxml <name> | grep "mac address" | awk -F\' '{ print $2}'
@jfstenuit
jfstenuit / iisfilebeat.md
Created July 27, 2022 07:09
Configuring Filebeat to ship IIS logs
@jfstenuit
jfstenuit / simple-netfilter-ulogd-mysql.md
Last active March 18, 2022 13:07
Simple Netfilter MySQL logging via ulogd

In the netfilter configuration

    chain forward {
            type filter hook forward priority filter; policy accept;
            log prefix "FORWARD" group 0
    }

The Group ID is important and is used in ulogd2 config below

Ulogd2 configuration

@jfstenuit
jfstenuit / threathunting.md
Last active April 5, 2022 06:22
Threat hunting shortcuts