Skip to content

Instantly share code, notes, and snippets.

@jult
jult / certbot_cloudflare_dns.sh
Last active August 23, 2021 08:49
script to install latest certbot with cloudflare dns-01 challenge plugin (for debian 9/stretch)
#!/bin/sh
# Check if user has root privileges
if [[ $EUID -ne 0 ]]; then
echo "You must run the script as root or using sudo"
exit 1
fi
## Reconfigure Dash
echo "dash dash/sh boolean false" | debconf-set-selections
@mrothNET
mrothNET / LetsEncrypt+certbot+UFW+postfix+dovecot.md
Last active March 31, 2025 09:54
Let's Encrypt / Dovecot / Postfix / UFW firewall / Certbot

Let's Encrypt / Dovecot / Postfix / UFW firewall / Certbot

This tutorial describes how to install TLS to a mail server consisting of Postfix and/or Dovecot by using Let's Encrypt certificates with automatic renewing and firewall management.

The system used for this tutorial was:

$ lsb_release -idrc
Distributor ID: Ubuntu
@DonSYS91
DonSYS91 / ipv6_proxmox_online.net.md
Last active February 9, 2025 20:38
Configuring IPv6 block from Online.net On Proxmox Host and Guests

Configuring IPv6 block from Online.net On Proxmox Host and Guests

Following the documentation on online.net would get IPv6 to work only in a simple system installation but won't get IPv6 to work with virtualization environment (Exp. Proxmox) as It's missing some IPv6 forwards and proxies on sysctl.conf.

On Proxmox Host (Or Debian if single Debian Installation)

Enable IPv6 on the System:

  • Change Module Options to Enable IPv6:
@plieningerweb
plieningerweb / gist:3dc29ed212e2a50841d6fbd614e6f01f
Last active April 4, 2022 07:06
Install zerotier on GL.iNet GL-MT300N-V2 Mini Travel Router
@nosmall
nosmall / Pure-FTPD-TLS-Encryption-letsencrypt.md
Last active October 27, 2022 01:34
Pure-FTPD, TLS Encryption - letsencrypt on Ubuntu 16.04

Pure-FTPD on Ubuntu 16.04 (lazy guide)

sudo su
apt update

Install Pure-FTPD

apt install -y pure-ftpd
@styblope
styblope / docker-api-port.md
Last active July 8, 2025 20:00
Enable TCP port 2375 for external connection to Docker

Enable TCP port 2375 for external connection to Docker

See this issue.
Docker best practise to Control and configure Docker with systemd.

  1. Create daemon.json file in /etc/docker:

     {"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
    
@umidjons
umidjons / youtube-dl-download-audio-only-on-best-quality.md
Last active November 14, 2024 21:20
Download Audio from YouTube with youtube-dl

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

@imasaru
imasaru / idchanger.c
Created September 12, 2017 23:10
Program derived from AR5k posted some time ago to overwrite regional domain code set in Atheros adapters, and repurposed to modify EEPROM addresses. Found at dagarlas.org. Thanks, Mr. Davide!
/*
* This program is derived from code bearing the following Copyright(s)
/* -*- linux-c -*-
* _ _ ____ __ _ ___ ____ ____ __ _ _ _ _ |
* . \/ |--| | \| | |--< [__] | \| | _X_ | s e c u r e s y s t e m s
*
* .vt|ar5k - PCI/CardBus 802.11a WirelessLAN driver for Atheros AR5k chipsets
*
* Copyright (c) 2002, .vantronix | secure systems
@krwu
krwu / online.html
Created July 25, 2017 09:23
Online servers.
<!DOCTYPE html>
<html lang="zh-Hans-CN">
<head>
<meta charset="UTF-8">
<title>Online Monitor</title>
<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<style>
td {
vertical-align: middle !important;
}
@gkeramidas
gkeramidas / session.sh
Created July 25, 2017 05:42
mosh/tmux wrapper for named tmux sessions
#!/bin/sh
progname=$(basename $0)
now() {
date '+%m%d %H:%M:%S'
}
err() {
errcode=$1