Skip to content

Instantly share code, notes, and snippets.

@jedda
jedda / envoy.yaml
Created May 29, 2025 00:29
Envoy Configuration for Apple Network Relay (CONNECT & CONNECT-UDP) - HTTP/2 & HTTP/3
# This Envoy config is intended for user with Apple Network Relay clients:
# https://support.apple.com/en-au/guide/deployment/dep91a6e427d/web
# and can be used to support both HTTP/3 and HTTP/2 with both Extended CONNECT and MASQUE (CONNECT-UDP).
#
# It features:
# - HTTP/2 listener (with client certificate validation)
# - HTTP/3 listener
# - Dynamic forward proxy cluster
#
# In its current form, it can be used for testing and experimenting with relay and MASQUE technologies, but it is
@rbbratta
rbbratta / make-br-ex-ovs-bond-extra-mcs.sh
Created January 11, 2025 07:12
make-br-ex-ovs-bond-extra-mcs.sh
#!/usr/bin/env bash
function make_mc () {
yq << EOF
interfaces:
- name: bond0
type: bond
state: absent
@ahuemmer
ahuemmer / ca_experiments.sh
Last active April 20, 2021 14:30
Experimenting with CAs, revocation and CRLs.
#!/bin/bash
#set -e
#Directories:
ROOT_CA_DIRECTORY=/etc/ssl/testCA
INTERMEDIATE_CA1_DIRECTORY=/etc/ssl/intermediateTestCA1
INTERMEDIATE_CA2_DIRECTORY=/etc/ssl/intermediateTestCA2
INTERMEDIATE_CA3_DIRECTORY=/etc/ssl/intermediateTestCA3
CRL_SERVER_DIRECTORY=/var/www/localhost/pki
DEFAULT_CERTS_DIRECTORY=certs
@nstarke
nstarke / netgear-private-key-disclosure.md
Last active October 8, 2025 20:07
Netgear TLS Private Key Disclosure through Device Firmware Images

Netgear Signed TLS Cert Private Key Disclosure

Overview

There are at least two valid, signed TLS certificates that are bundled with publicly available Netgear device firmware.

These certificates are trusted by browsers on all platforms, but will surely be added to revocation lists shortly.

The firmware images that contained these certificates along with their private keys were publicly available for download through Netgear's support website, without authentication; thus anyone in the world could have retrieved these keys.

@djoreilly
djoreilly / bgpd.conf
Last active October 8, 2024 22:30 — forked from heri16/bgpd.conf
AWS VPC VPN StrongSwan Virtual Tunnel Interface (VTI)
#@ /etc/quagga/bgpd.conf (Centos & Ubuntu)
hostname <Local OS hostname>
password <Any random phrase>
enable password <Any random phrase>
!
log file /var/log/quagga/bgpd
!debug bgp events
!debug bgp zebra
debug bgp updates
@worawit
worawit / eternalblue8_exploit.py
Last active March 16, 2024 18:38
Eternalblue exploit for Windows 8/2012
#!/usr/bin/python
# This file has no update anymore. Please see https://github.com/worawit/MS17-010
from impacket import smb, ntlm
from struct import pack
import sys
import socket
'''
EternalBlue exploit for Windows 8 and 2012 by sleepya
The exploit might FAIL and CRASH a target system (depended on what is overwritten)
@dm0-
dm0- / auto-update-kmods.ignition
Last active September 28, 2023 10:03
Automatically update custom kernel modules on CoreOS
{
"ignition": { "version": "2.0.0" },
"systemd": {
"units": [
{
"name": "auto-update-kmods.service",
"enable": true,
"contents": "[Unit]\nDescription=Install custom kernel modules\nAfter=lib-modules.mount network-online.target\nRequires=lib-modules.mount network-online.target\nConditionPathExists=!/opt/modules/%v\nConditionPathExistsGlob=/lib/modules/auto-update-kmods.d/*.sh\n\n[Service]\nType=oneshot\nExecStart=/bin/bash -ex /lib/modules/auto-update-kmods.sh\n\n[Install]\nWantedBy=multi-user.target\n"
},
{
@carlessanagustin
carlessanagustin / Nginx_Cheat_Sheet.md
Last active December 18, 2025 19:19
Nginx Cheat Sheet
@afolarin
afolarin / resource_alloc_docker.md
Last active December 22, 2025 22:00
Resource Allocation in Docker

#Container Resource Allocation Options in docker-run

now see: https://docs.docker.com/engine/reference/run/#runtime-constraints-on-resources

You have various options for controlling resources (cpu, memory, disk) in docker. These are principally via the docker-run command options.

##Dynamic CPU Allocation -c, --cpu-shares=0
CPU shares (relative weight, specify some numeric value which is used to allocate relative cpu share)