Skip to content

Instantly share code, notes, and snippets.

Avatar

Engine Feeder enginefeeder101

  • The Netherlands
View GitHub Profile
@enginefeeder101
enginefeeder101 / make-mega-adblock-hostsfile.sh
Last active Jun 16, 2018
Create Mega Adblock Hostsfile for use with Dnsmasq (Modified from Pi-hole)
View make-mega-adblock-hostsfile.sh
#!/bin/bash
# Modified Pi-hole script to generate a generic hosts file
# for use with dnsmasq's addn-hosts configuration
# original : https://github.com/jacobsalmela/pi-hole/blob/master/gravity-adv.sh
# forked from: https://gist.github.com/chrisvella/5f3a18f1e442153cd685
### Configuration ###
# Server to send ads to
adblock='0.0.0.0'
@enginefeeder101
enginefeeder101 / PKGBUILD-networkmanager.patch
Created May 4, 2016
No more DNS-leaks for VPN's with NetworkManager and dnsmasq
View PKGBUILD-networkmanager.patch
Author: Engine Feeder <enginefeeder101@users.noreply.github.com>
Date: Wed May 4 21:22:55 2016 +0200
Do not use split DNS for VPN configs and use only the DNS provided by the VPN.
diff --git a/var/abs/extra/networkmanager/PKGBUILD b/PKGBUILD
index 0d6dd20..de8f1ec 100644
--- a/var/abs/extra/networkmanager/PKGBUILD
+++ b/PKGBUILD
@@ -22,10 +22,12 @@ makedepends=(intltool dhclient iptables gobject-introspection gtk-doc
@enginefeeder101
enginefeeder101 / testports.sh
Created Nov 17, 2015
Test outgoing open ports
View testports.sh
#!/bin/bash
task(){
LC_ALL=C nc -vzw5 portquiz.net $1 2>&1 | grep -v 'Connection timed out'
}
N=50 # Specify number of ports to check at once
(
for port in {1..65535}; do # Specify port range to check here
((i=i%N)); ((i++==0)) && wait