Skip to content

Instantly share code, notes, and snippets.

@sguinetti
sguinetti / easykarma-blocker-rules.ini
Last active October 13, 2016 20:23
Rules in INI file for Karma Blocker, based of EasyList (Adblock)
# Easykarma is a KarmaBlocker's rules file to perform easily their Adblock activities.
# No additional components required, just add it from the URL in the options and all set.
# It is based on EasyList proyect made by the community of Adblock Plus.
# EasyKarma es un archivo INI para KarmaBlocker que realiza actividades de anti-publicidad con normalidad.
# No necesita componentes adicionales, sólo añádelo desde la barra URL en las opciones y todo listo.
# Está basado en el proyecto EasyList hecho por la comunidad de Adblock Plus.
# See/Visita: https://github.com/arantius/karma-blocker/wiki/Configuration
# Credits/Créditos: https://easylist.adblockplus.org (CC-BY-SA 3.0)
@dennyhalim
dennyhalim / group-policies.reg
Last active October 15, 2016 17:40
group-policies.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\W32time\Parameters]
"NtpServer"="id.pool.ntp.org,0x02"
"Type"="AllSync"
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Main]
"Enable Browser Extensions"="no"
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome]
@h4rm0n1c
h4rm0n1c / wheezy_bridge_ipblock.md
Last active October 15, 2016 17:43
This is a script for setting up a small, debian based device that applies IP Blocklists to your internet connection.

This is a script for setting up a small, debian based device that applies IP Blocklists to your internet connection.

This device is intended to operate transparently and quietly, entirely on your local network. it is NOT designed to be exposed to the internet. it works best plugged straight into your FIREWALLED, NATTED modem.

Plug eth0 into your router/modem/cablebox/pidgeon, eth1-3 can go to your clients. This device should require little to no config once set up. P2P style blocklists that are gzipped are downloaded, merged with any cached or local blocklists, and then swapped out with the existing lists once a day. I used Debian Wheezy (7.1) for this, it works EXTREMELY WELL.

=========== ./BANANAGLEE/BANANAUSURPER/BG2200_UPGRADE/UPGRADE/BUSURPER-2211-611.exe ===========
00000000 l df *ABS* 00000000 upgrade_pix.c
00000000 l df *ABS* 00000000 change_page_permission.c
00000000 l df *ABS* 00000000 osVersionChecking.c
=========== ./BANANAGLEE/BANANAUSURPER/BG2200_UPGRADE/UPGRADE/BUSURPER-2211-614.exe ===========
00000000 l df *ABS* 00000000 upgrade_pix.c
00000000 l df *ABS* 00000000 change_page_permission.c
00000000 l df *ABS* 00000000 osVersionChecking.c
=========== ./BANANAGLEE/BANANAUSURPER/BG2200_UPGRADE/UPGRADE/BUSURPER-2211-622.exe ===========
00000000 l df *ABS* 00000000 upgrade_pix.c
# http://techblog.willshouse.com/2012/01/03/most-common-user-agents/
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:41.0) Gecko/20100101 Firefox/41.0
Mozilla/5.0 (Windows NT 6.1; rv:41.0) Gecko/20100101 Firefox/41.0
Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0
Mozilla/5.0 (Windows NT 5.1; rv:41.0) Gecko/20100101 Firefox/41.0
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:41.0) Gecko/20100101 Firefox/41.0
# http://techblog.willshouse.com/2012/01/03/most-common-user-agents/
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36
Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36
Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKi
@myleshorton
myleshorton / tor-authors
Created June 17, 2016 15:35
Authors of tor by lines of code committed
[tor (master)]$ git ls-tree -r -z --name-only HEAD -- $1 | xargs -0 -n1 git blame --line-porcelain HEAD |grep "^author "|sort|uniq -c|sort -nr
179842 author Nick Mathewson
112849 author Karsten Loesing
70589 author Roger Dingledine
19877 author Yawning Angel
19734 author Andrea Shepard
11220 author teor (Tim Wilson-Brown)
9076 author Ola Bini
7443 author George Kadianakis
6066 author nils
@eon01
eon01 / referral blacklist
Created September 30, 2015 20:46
referral blacklist
# PERISHABLE PRESS ULTIMATE REFERRER BLACKLIST
# https://perishablepress.com/4g-ultimate-referrer-blacklist/
# This is the referrer blacklist from http://brassblogs.com/blog/htaccess-and-spam
# This blacklist is ready to use in your site's root htaccess file
# Edit the first two lines with your specific domain information
# Check http://brassblogs.com/blog/htaccess-and-spam for updates
@4x3LDev
4x3LDev / RegexpMeta
Last active June 22, 2017 21:35
RegExp Metacharacters.
+-----------------+----------------------------------------------------------------------------------------------------------+
| Metacharacter | Description |
+-----------------+----------------------------------------------------------------------------------------------------------+
| \ | Specifies the next character as either a special character, literal, back reference, or an octal escape. |
| ^ | Matches the position at the beginning of the input string. |
| $ | Matches the position at the end of the input string. |
| * | Matches the preceding subexpression zero or more times. |
| + | Matches the preceding subexpression one or more times. |
|
@neuthral
neuthral / hosts_google
Created September 21, 2017 15:53
block google servers in hosts file
# ALWAYS make sure "127.0.0.1 localhost" is the first line in your /hosts file
# or your system or browser may malfunction!
# See https://en.wikipedia.org/wiki/Hosts_file to find the standard locations
# of the HOSTS file for your particular OS. In Linux (and probably BSD), it's
# usually under /etc/hosts
# Yes, I know there are some redundant entries in this block--you can grep it
# and remove them yourself if it really matters. I'm too lazy to do it myself.