CCCPaste

CIDR checking

list ($startIP, $rPrefix) = split('/', $row['ban_ip']);
$rPrefix = (~0) << (32 - $rPrefix);
$startIP = ip2long($startIP) & $rPrefix;
$userIP = ip2long($ip) & $rPrefix;
if ($userIP == $startIP)

Walking through Directories - Python

#!/usr/bin/env python

import os
for root, dirs, files in os.walk('/home/user'):
print root, dirs, files

belledonna in petals

/*----------------------------------------------


layout name: belledonna petals
layout base: tabula rasa

belledonna in leaves

/*----------------------------------------------


layout name: belledonna leaves
layout base: tabula rasa

Keystoke Logger with Backspace Warning

#!/bin/bash

kb="/dev/input/by-path/platform-i8042-serio-0-event-kbd" #keyboard device
logfile="/tmp/bs.log"

Auth table

user_id smallint(3) auto increment NOT NULL
username varchar(32) NOT NULL
password char(64) NOT NULL
session_id varchar(32) NOT NULL
failed_logins tinyint(1) NOT NULL

by the beech in tree bark

/* Cleaned CSS: */
/*----------------------------------------------


layout name: by the beech

by the beech in foliage

/* Cleaned CSS: */
/*----------------------------------------------


layout name: by the beech

by the beech

/* Cleaned CSS: */
/*----------------------------------------------


layout name: by the beech

by the beech in neutral

/* Cleaned CSS: */
/*----------------------------------------------


layout name: by the beech