Skip to content

Instantly share code, notes, and snippets.

View leolemos's full-sized avatar

Leonardo Lemos leolemos

View GitHub Profile
@Serrin
Serrin / DNS Servers.md
Created July 8, 2023 17:39
DNS Servers (IPv4, IPv6, DNS Over HTTPS)
Provider IPv4 IPv6 DNS Over HTTPS DNSSEC
CleanBrowsing
  • 185.228.168.9
  • 185.228.169.9
  • 2a0d:2a00:1::2
  • 2a0d:2a00:2::2
https://doh.cleanbrowsing.org/doh/security-filter/ Yes
Cloudflare
  • 1.1.1.1
  • 1.0.0.1
  • 2606:4700:4700::1111
  • 2606:4700:4700::1001
https://1.1.1.1/dns-query Yes
Google DNS
  • 8.8.8.8
  • 8.8.4.4
  • 2001:4860:4860::8888
  • 2001:4860:4860::8844
https://dns.google.com/resolve Yes
Hurricane Electric
  • 74.82.42.42
  • 2001:470:20::2
Omnispring
  • 208.111.1.1
  • 208.111.1.2
Yes
[Private Internet Access](https://helpdesk.privateinternetaccess.com/hc/en-us/articles/219460397-How-to-change-DNS-settings
@4abhinavjain
4abhinavjain / reinstall_VPS_from_inside.txt
Last active November 13, 2024 23:05 — forked from ClashTheBunny/reinstall_VPS_from_inside.sh
DIY install debian on Oracle Cloud Infrastructure ( Free Tier ) - ARM64
# should works on any cloud-init enabled hypervisor (openstack.. )
# start from a normal ubuntu 20.04 install as minimal was not available for ARM64
# Since ARM64 machines has higher RAM, Shrinking is desired but not necessary. Instead we will increase tmpfs to 1700MB
# Getting root (if sudo -i doesn't work then set a root password beforehand using 'sudo passwd root'
sudo -i
# make sure we are on the highest kernel, so we can delete all the others ...
@zhangyoufu
zhangyoufu / ipv6-address-space.md
Last active August 3, 2024 19:03
IPv6 Address Space

IPv6 Address Space

::/128               Unspecified Address
  ::1/128            Loopback Address
  ::ffff:0:0/96      IPv4-mapped Address
64:ff9b::/96         IPv4-IPv6 Translate
64:ff9b:1::/48       IPv4-IPv6 Translate
100::/64             Discard-Only Address Block
0200::/7             OSI NSAP-mapped prefix set (deprecated)
@jult
jult / %userprofile%\AppData\Roaming\youtube-dl\config.txt
Last active January 21, 2023 05:42
[ youtube-dl ] My most succesful config for all-round best codecs and quality
--no-mtime
--no-call-home
# --ignore-errors
-f "bestvideo[height>=1080]+251/bestvideo[height>=1080]+bestaudio/bestvideo[height>=720]+251/bestvideo[height>=720]+bestaudio/137+bestaudio/136+bestaudio/bestvideo+bestaudio"
# Note that I output to an MKV container, despite the fact that shitty devices will not play some files
# or still don't support Opus, it *is* the highest quality available: http://opus-codec.org/comparison/
--merge-output-format mkv
# If you need Mac compatible MP4 uncomment the following two lines instead of the ones above. It's usually a step under max quality, but this yields true mp4 files:
@mutin-sa
mutin-sa / Top_Public_Recursive_Name_Servers.md
Last active November 14, 2024 20:22
List of Top Public Recursive Name Servers

DNS:

IPv4 Addr IPv6 Addr ASn Political Region Loc Svc Org
8.8.8.8 2001:4860:4860::8888 AS15169 US Worldwide (Anycast) Google Public DNS Google
8.8.4.4 2001:4860:4860::8844 AS15169 US Worldwide (Anycast) Google Public DNS Google
1.1.1.1 2606:4700:4700::1111 AS13335 US Worldwide (Anycast) Cloudflare-DNS Cloudflare/APNIC
1.0.0.1 2606:4700:4700::1001 AS13335 US Worldwide (Anycast) Cloudflare-DNS Cloudflare/APNIC
95.85.95.85 2a03:90c0:999d::1 AS199524 EU *W
@jult
jult / jbt-rules.cf
Last active November 8, 2024 08:17
SpamAssassin rules
# Put this file under /etc/spamassassin/ and run an sa-update or reload amavis etc.
#
#--------------------------------------------------
# The only RBL I trust, UCEPROTECT1 (single IP, not IP-ranges or entire ISPs) http://uceprotect.net
#--------------------------------------------------
header RCVD_IN_UCEPROTECT1 eval:check_rbl_txt('uceprotect1', 'dnsbl-1.uceprotect.net')
describe RCVD_IN_UCEPROTECT1 Listed in dnsbl-1.uceprotect.net
tflags RCVD_IN_UCEPROTECT1 net
score RCVD_IN_UCEPROTECT1 1.8
@jult
jult / sysctl.conf
Last active October 18, 2024 09:24
[Debian 12 update!] sysctl config for linux server with 8 GB DDR4 RAM or more, SSD and 1Gbe (or faster) NIC
kernel.core_uses_pid = 1
kernel.domainname = your_local_domain_name
kernel.msgmax = 65535
kernel.msgmnb = 65535
kernel.pid_max = 65535
kernel.printk = 2 3 1 2
kernel.randomize_va_space = 2
kernel.shmall = 268435456
kernel.shmmax = 268435456
kernel.sysrq = 0
@autoize
autoize / optimizeNextCloud.sh
Created September 18, 2017 04:35
NextCloud Optimization Script
#!/bin/bash
# NextCloud Optimization Script
# with PHP Opcache and Redis Memcache
# Important: Do not run until the setup wizard in your browser is complete (has initialized the config.php file).
# Author: Autoize (autoize.com)
upload_max_filesize=4G # Largest filesize users may upload through the web interface
post_max_size=4G # Same as above
memory_limit=512M # Amount of memory NextCloud may consume