This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import os | |
import sys | |
from CoreFoundation import (CFPreferencesAppValueIsForced, | |
CFPreferencesCopyAppValue, | |
CFPreferencesCopyValue, | |
kCFPreferencesAnyUser, | |
kCFPreferencesAnyHost, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt -y autoremove && sudo apt update && sudo apt -y install apt-utils neovim vim nano git bash bash-completion zsh zsh-common zsh-doc whois dnsutils autoconf automake make dirmngr libtool p7zip-full git-extras ufw build-essential bison flex zip unzip xz-utils pv px bat openssl curl tmux python3-setuptools python3-pip python3-pkg-resources python3-pkginfo python3-pygments python3-lxml lsof inetutils openssh-server openssh-sftp-server && sudo apt update && sudo apt -y upgrade && sudo apt -y autoremove && sudo apt -y autoclean |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it! | |
# IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS. | |
# This script needs to be run from the volume you wish to use. | |
# E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh | |
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars. | |
# Get active services: launchctl list | grep -v "\-\t0" | |
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ad_list_url=”http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&showintro=0&mimetype=plaintext"#The IP address below should point to the IP of your router or to 0.0.0.0 | |
pixelserv_ip=”0.0.0.0" | |
ad_file=”/etc/dnsmasq.d/dnsmasq.adlist.conf” | |
temp_ad_file=”/etc/dnsmasq.d/dnsmasq.adlist.conf.tmp”curl -s $ad_list_url | sed “s/127\.0\.0\.1/$pixelserv_ip/” > $temp_ad_fileif [ -f “$temp_ad_file” ] | |
then | |
sed -i -e ‘/googleadservices\.com/d’ $temp_ad_file | |
sed -i -e ‘/doubleclick\.net/d’ $temp_ad_file | |
sed -i -e ‘/awin1\.com/d’ $temp_ad_file | |
mv $temp_ad_file $ad_file |