Skip to content

Instantly share code, notes, and snippets.

Atavic

Block or report user

Report or block Atavic

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@artfulhacker
artfulhacker / gist:a6eb800e58f2eb6f9231
Created Aug 5, 2014
Military/Government IP Blocks
View gist:a6eb800e58f2eb6f9231
<?php
// Group detection by IP address
//
// [Region Abbreviation, Military/Government]
// Force Varnish to NEVER Cache this page
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
// JSON Headers
@sguinetti
sguinetti / easykarma-blocker-rules.ini
Last active Oct 13, 2016
Rules in INI file for Karma Blocker, based of EasyList (Adblock)
View easykarma-blocker-rules.ini
# 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 Oct 15, 2016
group-policies.reg
View 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 Oct 15, 2016
This is a script for setting up a small, debian based device that applies IP Blocklists to your internet connection.
View wheezy_bridge_ipblock.md

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.

@boTux
boTux / update-blocklists.sh
Last active Oct 15, 2016
Fetch, Merge, and Strip Blocklists from url list
View update-blocklists.sh
#!/bin/bash
# Sync Blocklists.
# by boTux.
# inspired by :
# https://gist.github.com/raidzero/9202581#file-blocklist-update-sh
# https://gist.github.com/jult/e76c628899bd5aa3c33a
# Add cron :
# tout les jours a 05:00
@vinctux
vinctux / ibl2ibt.sh
Created Jun 12, 2016
I-Blocklist blacklists to iptables merger shell script.
View ibl2ibt.sh
#!/bin/bash
# I-Blocklist blacklists to iptables merger shell script
# Original by NiKaro127 (http://pastebin.com/u/NiKaro127), 1.12.2012
# Updated and modified by Jaka Smrekar (vinctux), 2015-16
# This version of the script is licensed under the MIT license.
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root." 2>&1
exit 1
View osi_model
What is OSI model?
The OSI model (Open System Interconnection) model defines a computer networking framework to implement protocols in seven layers. A protocol in the networking terms is a kind of negotiation and rule in between two networking entities.
Layers of OSI model:
Physical layer
The Physical layer is also called as the Layer 1. Here are the basic functionalities of the Physical layer:
Responsible for electrical signals, light signal, radio signals etc.
Hardware layer of the OSI layer
View equation_source_files.txt
=========== ./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
View User-Agents: Firefox 41
# 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
View User-Agents: Chrome 46
# 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
You can’t perform that action at this time.