Skip to content

Instantly share code, notes, and snippets.

@Eliastik
Eliastik / update-hosts.sh
Last active November 10, 2024 06:16 — forked from glesica/update-hosts.sh
A quick shell script that will automatically update a Linux HOSTS file to block domains (ads, malwares, ...). Support multiple hosts sources, initial host file and incorrect/malicious entries checking.
#!/bin/bash
# Filename: update-hosts.sh
#
# Author: George Lesica <[email protected]>
# Enhanced by Eliastik ( eliastiksofts.com/contact )
# Version 1.3 (22 april 2021) - Eliastik
#
# Description: Replaces the HOSTS file with hosts lists from Internet,
# creating a backup of the old file. Can be used as an update script.
@mcxiaoke
mcxiaoke / pokemongo-hook.md
Last active December 5, 2023 10:54
Pokemon Go scripts.
  1. preparing location hook project.
    clone this project: PokemonHook, unzip pokemon_unsigned.zip to Payload/pokemongo.app

  2. preparing your iPhone Distribution Certificates.
    using security find-identity -p codesigning -v find cert

  3. preparing your wildcard AdHoc Provision file, open XCode/Preferences/Accounts/View Details, select a profile, right click show in finder, copy to current dir, rename to embedded.mobileprovision, you can verify provision file using security cms -Di embedded.mobileprovision

@irazasyed
irazasyed / manage-etc-hosts.sh
Created March 7, 2015 09:16
Bash Script to Manage /etc/hosts file for adding/removing hostnames.
#!/bin/sh
# PATH TO YOUR HOSTS FILE
ETC_HOSTS=/etc/hosts
# DEFAULT IP FOR HOSTNAME
IP="127.0.0.1"
# Hostname to add/remove.
HOSTNAME=$1