Skip to content

Instantly share code, notes, and snippets.

View samuelba's full-sized avatar

Samuel Bachmann samuelba

View GitHub Profile
@samuelba
samuelba / default_codepen.css
Last active April 16, 2018 12:22
Default Codepen CSS
@import url('https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i');
html {
font-size: 16px;
font-family: 'Roboto', sans-serif !important;
}
body {
font-family: 'Roboto', sans-serif !important;
}
@samuelba
samuelba / extract_mbox_attachments.py
Created December 14, 2021 15:34 — forked from georgy7/extract_mbox_attachments.py
Extract attachments from mbox file.
# Modified.
# Original script source:
# http://blog.marcbelmont.com/2012/10/script-to-extract-email-attachments.html
# Usage:
# Run the script from a folder with file "all.mbox"
# Attachments will be extracted into subfolder "attachments"
# with prefix "n " where "n" is an order of attachment in mbox file.
# ---------------
@samuelba
samuelba / Namecheap_DDNS_for_Synology_NAS.md
Last active December 28, 2021 06:33
Namecheap DDNS for Synology NAS

Namecheap DDNS for Synology NAS

Copy namecheap_ddns.sh to /usr/local/bin/namecheap_ddns.sh and make it executable sudo a+x namecheap_ddns.sh.

Add the following to the end of /etc.defaults/ddns_provider.conf.

[Namecheap]
        modulepath=/usr/local/bin/namecheap_ddns.sh
 queryurl=https://namecheap.com
@samuelba
samuelba / wireguard.md
Last active December 29, 2022 00:53
Wireguard with local server network access

Wireguard

Server

Install Wireguard

sudo apt install wireguard
@samuelba
samuelba / dns_server_with_wireguard.md
Last active January 8, 2022 15:31
Pi-Hole and AdGuard Home DNS Servers with Wireguard VPN