Skip to content

Instantly share code, notes, and snippets.

@nathwill
nathwill / pf.conf
Last active January 29, 2024 05:37
a dummy's sample pf.conf
# $OpenBSD: pf.conf,v 1.52 2013/02/13 23:11:14 halex Exp $
#
# See pf.conf(5) for syntax and examples.
#
# Remember to set net.inet.ip.forwarding=1 and/or net.inet6.ip6.forwarding=1
# in /etc/sysctl.conf if packets are to be forwarded between interfaces.
### Macros
# system
@amotmot
amotmot / WAHH_Task_Checklist.md
Created April 16, 2014 21:30
The Web Application Hacker's Handbook - Task Checklist - Github-Flavored Markdown
@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)
@artfulhacker
artfulhacker / gist:a6eb800e58f2eb6f9231
Created August 5, 2014 00:50
Military/Government IP Blocks
<?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
@IQAndreas
IQAndreas / caesar-cipher.sh
Last active August 30, 2023 09:39
A really simple Caesar Cipher in Bash (or Shell) using `tr`, can also easily be adjusted to encrypt/decrypt ROT13 instead.
# Caesar cipher encoding
echo "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG" | tr '[A-Z]' '[X-ZA-W]'
# output: QEB NRFZH YOLTK CLU GRJMP LSBO QEB IXWV ALD
# Caesar cipher decoding
echo "QEB NRFZH YOLTK CLU GRJMP LSBO QEB IXWV ALD" | tr '[X-ZA-W]' '[A-Z]'
# output: THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG
# Can also be adjusted to ROT13 instead
@grugq
grugq / gist:03167bed45e774551155
Last active April 6, 2024 10:12
operational pgp - draft

Operational PGP

This is a guide on how to email securely.

There are many guides on how to install and use PGP to encrypt email. This is not one of them. This is a guide on secure communication using email with PGP encryption. If you are not familiar with PGP, please read another guide first. If you are comfortable using PGP to encrypt and decrypt emails, this guide will raise your security to the next level.

@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]
@sguinetti
sguinetti / easykarma-blocker-concept103.ini
Last active February 3, 2019 18:32
Easy karma concept (review 103, Youtube Test Only) (Bug in Flash and HTML5 videos)
# 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)
@denji
denji / Hackback
Last active November 8, 2023 23:35
Nikto, NMap , Skipfish and friends http://www.security-marathon.be/?p=844
_ _ _ ____ _ _
| | | | __ _ ___| | __ | __ ) __ _ ___| | _| |
| |_| |/ _` |/ __| |/ / | _ \ / _` |/ __| |/ / |
| _ | (_| | (__| < | |_) | (_| | (__| <|_|
|_| |_|\__,_|\___|_|\_\ |____/ \__,_|\___|_|\_(_)
A DIY Guide for those without the patience to wait for whistleblowers
--[ 1 ]-- Introduction
@yunga
yunga / Cliref.md
Last active February 1, 2024 00:56
CLIRef.md
_________ _____ _______________       _____
\_   ___ \\    \\___________   \____ / ____\     ~/.bash/cliref.md
/    \  \/|    | |   ||       _/ __ \  __\    copy/paste from whatisdb
\     \___|__  |_|_  ||    |   \  __/|_ |   http://pastebin.com/yGmGiDQX
 \________  /_____ \_||____|_  /____  /_|     yunga.palatino@gmail.com
 20160515 \/ 1527 \/         \/     \/

alias CLIRef.txt='curl -s "http://pastebin.com/raw/yGmGiDQX" | less -i'