Skip to content

Instantly share code, notes, and snippets.

View ZEROF's full-sized avatar

ZEROF

View GitHub Profile
@ZEROF
ZEROF / PC Engine apufix1a = heat spreader placement fixture for apu-2,3,4 boards 3D printing module.md
Last active December 28, 2019 22:44
PC Engine apufix1a = heat spreader placement fixture for apu-2,3,4 boards 3D printing module

From @BalCC0n orga team for hackers communities

People from our team have PC Engine small single board computers for networking in their office or home office. To protect board we are using this case:

image

The heat spreader kit is included with apu boards but because of his size it's not really easy to place it where we want. People from PC Engine are selling heat spreader placement fixture (apufix1a https://pcengines.ch/apufix1a.htm)), but in some countries is not even possible to order it.

@ZEROF
ZEROF / extract-cert-ovpn.sh
Created October 15, 2020 08:21
Extract the certificate and key from an .ovpn file
#!/bin/bash
# This script will extract the certificate and key from an .ovpn file
# into their own files, which makes it possible to use them to configure
# the VPN using Ubuntu's network manager
# Usage example:
# >> ovpnconvert username.dev.ovpn
sed '1,/<ca>/d;/<\/ca>/,$d' $1 > $1.ca.crt

Monitoring unbound installation with Munin

sudo apt install munin munin-node munin-plugins-extra

Activate unbound plugins:

ln -s /usr/share/munin/plugins/unbound_munin_ /etc/munin/plugins/unbound_munin_by_class
ln -s /usr/share/munin/plugins/unbound_munin_ /etc/munin/plugins/unbound_munin_by_flags
ln -s /usr/share/munin/plugins/unbound_munin_ /etc/munin/plugins/unbound_munin_by_opcode
@ZEROF
ZEROF / Update MyAddr.tools DNS Entries.md
Created June 23, 2024 21:53
myaddr.tools DNS update script and setting with systemd

myaddr.tools

A minimalist dynamic DNS service

Features

  1. No ads, no tracking, no nonsense
  2. Get a name in seconds, no account required
  3. Easy, forgiving HTTP-based API
  4. Multiple domains (all resolve the same): - your-name.myaddr.tools - your-name.myaddr.dev (on the HSTS preload list)
@ZEROF
ZEROF / Fixing the broken SSL security in the gl-mt3000 routers.md
Last active August 11, 2024 12:04
Fixing the broken SSL security in the GL-MT3000 routers
                                 Fixing the broken SSL security in the GL-MT3000 routers
                                     (and probably others GL-Inet routers from 2022)

I don't like this, do you?

image

This routers has two web interfaces, GL-Inet interface and Luci (standard OpenWrt interface). So let's start.

@ZEROF
ZEROF / How to run Pretalx (Call for papers) in 2025 with docker.md
Created April 5, 2025 15:43
How to run Pretalx (Call for papers) in 2025 with docker

Simple deploymenet of Pretalx in 2025

  1. OS Debian 12
  2. Install Docker
  3. Create folder for your project and all files (run this only once):

mkdir -p pretalx pretalx/conf && cd pretalx && touch docker-compose.yml && touch conf/pretalx.cfg

  1. Copy this docker-compose.yml file