Skip to content

Instantly share code, notes, and snippets.

View maxiimilian's full-sized avatar

Maximilian maxiimilian

  • TU Delft
View GitHub Profile
@maxiimilian
maxiimilian / make-mega-adblock-hostsfile.sh
Created January 27, 2018 12:32
Create Mega Adblock Hostsfile for use with Dnsmasq (Modified from Pi-hole)
#!/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
# Address to send ads to. This could possibily be removed, but may be useful for debugging purposes?
destinationIP="0.0.0.0"
outlist='./final_blocklist.txt'
tempoutlist="$outlist.tmp"
@maxiimilian
maxiimilian / disable.sh
Created October 9, 2017 08:12
Disable bunch of #$!@ in Sierra (Version 2.1)
#!/bin/bash
# IMPORTANT: You will need to disable SIP aka Rootless in order to fully execute this script, you can reenable it after.
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.
# Disable SIP (System Integrity Protection) like this:
# 1. Reboot into recovery mode (Cmd + R)
# 2. Open Terminal
# 3. Type `csrutil disable`
# 4. Reboot