Skip to content

Instantly share code, notes, and snippets.

View Mixie-12's full-sized avatar

Mixie-12

View GitHub Profile
@Mixie-12
Mixie-12 / etet
Last active December 2, 2020 16:12 — forked from natesubra/rem_proxmox_popup.sh
Remove PROXMOX 5.2 subscription message popup
etet
@Mixie-12
Mixie-12 / apache_ssl.md
Created May 3, 2019 13:26 — forked from GAS85/apache_ssl.md
Apache 2.4.18 + Letsencrypt + Ubuntu 16.04/18.04 - SSL config for A+ on SSLLabs.com

Prerequsits

  • Ubuntu 16.04 or higher (18.04 works the same)
  • Apache 2.4.18 or higher
  • OpenSSL 1.0.2g-1ubuntu4.10 or higher
  • e.g. LetsEncrypt certificate
OS: Ubuntu 16.04 Apache/2.4.18 1.0.2g-1ubuntu4.10
@Mixie-12
Mixie-12 / remove all.sh
Last active December 2, 2020 16:10
insad
echo meow
#!/bin/bash
# Dynamically retrieves and add IPs from a list of domain names
# Creates a cache folder with IP as filenames to know if they have been added previously
# Manages both IPv4 and IPv6 rules.
MAIN_INTERFACE=$(ip -4 route ls | grep default | grep -Po '(?<=dev )(\S+)' | head -1)
THIS_DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)"
CACHE_DIR="$THIS_DIR/.ips"
function is_ipv4()