Skip to content

Instantly share code, notes, and snippets.

View JonasBernard's full-sized avatar
✌️

Jonas Bernard JonasBernard

✌️
View GitHub Profile
@JonasBernard
JonasBernard / OPEN-VPN-AND-PIHOLE.MD
Last active March 16, 2024 07:27
Docker compose setup for openVPN server with own pihole dns server.

OpenVPN and PiHole in one standalone docker-compose setup

Set up a VPN server that pomotes a pihole DNS server that is only acessible throught the vpn network.

Steps to setup the server

Edit the docker-compose.yml file

You have to replace 'insert-random-string' with a real password. Also read throught the docker-compose.yml and see if you need to make any changes to the ip adresses and ports.

@JonasBernard
JonasBernard / tasks.json
Last active May 2, 2022 17:35
VS Code task to generate PDF files from Markdown using Pandoc and LaTeX.
{
"version": "2.0.0",
"tasks": [
{
"label": "Create PDF from current Markdown file (Pandoc)",
"type": "shell",
"command": "pandoc",
"args": [
"--from=markdown",
"--to=latex",
@JonasBernard
JonasBernard / mediaBackup.py
Last active September 25, 2022 14:11
Gtk-application to recursively move all files that are older than a given date to another location.
from enum import Enum
import shutil
import datetime
import threading
import time
import errno
import uuid
import gi
import os
@JonasBernard
JonasBernard / tutorial.tex
Last active February 6, 2021 12:50
LaTeX template for screenshot-populated PDF tutorials
\documentclass[a4paper,12pt]{article}
\usepackage{graphicx}
\usepackage{adjustbox}
\usepackage[top=30mm,textwidth=160mm]{geometry}
\usepackage[most]{tcolorbox}
\usepackage{changepage}
\title{Tutorial}
\author{Author}