Skip to content

Instantly share code, notes, and snippets.

View albertoalcolea's full-sized avatar

Alberto Alcolea albertoalcolea

View GitHub Profile
# Usage:
# MIDDLEWARE_CLASSES = (
# ...
# 'path.to.this.script.WsgiLogErrors',
#)
import traceback
class WsgiLogErrors(object):
@albertoalcolea
albertoalcolea / passgen.sh
Last active December 20, 2015 19:29
Another stupid password generator in bash
#! /bin/bash
#
# Version: 1.0
# Date: 31-07-2013
# Author: Alberto Alcolea (contact@albertoalcolea.com)
#
function usage() {
echo "USAGE: $0 [OPTIONS] [LENGTH]"
echo " Options:"
@albertoalcolea
albertoalcolea / arp.sh
Created July 29, 2013 20:24
ARP Spoofing Detector
#!/bin/bash
#
# Version: 1.0
# Date: 24-07-2013
# Author: Alberto Alcolea (contact@albertoalcolea.com)
#
PRIORITY="local0.alert"
icon="/home/alberto/.icons/elementary/actions/48/process-stop.svg"