Skip to content

Instantly share code, notes, and snippets.

View StackOverflow Reputation Audit Parser.php
<?php
$audit = file_get_contents('audit.txt');
$audit = split("\n", $audit);
$data = Array();
for ($i=0; $i!=count($audit); $i++) {
$line = $audit[$i];
$datatype = substr($line, 0, 1);
switch ($datatype) {
case '-':
$day = substr($line, 3, 10);
View login.php
<?php
if (!isset($_POST['email']) or !isset($_POST['password'])) {
$token = sha1(time()+rand(1,9999999999));
$this->session->set_userdata('students_loginToken', $token);
$this->load->view('students_login', Array('token' => $token));
} else {
$query = $this->db->query("SELECT * FROM users WHERE email = '".$_POST['email']."'");
echo mysql_error();
if ($query->num_rows() == 0) {
$token = sha1(time()+rand(1,9999999999));
View GPG Key.txt
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG/MacGPG2 v2.0.12 (Darwin)
mQGiBEwwA9oRBACZdJGSollKeWswZwCvq+koBkHSgJMLuXeV1dlP3o4smoKiafKH
SdDIGvYYpSRzL5WB7E8lCak5E0p24axpxE5+8hbliCOXKf57D1cADCk79L9XB8UH
N/mCFalGU5QeEW6g5fEiU2a6i6RY23jWdg93o+HcBANh/UGQIPUpDtqmFwCgh1+X
2uPCR0czKCJHBjYk+/XF5QcD/2u89n6H7lpcLRz0kMwpTrWfqWnoDE/PPuRjgOmc
uLig1HyetruRu97AEIhZZ/CIcu94X2s+cN2hWZWRARMMknUUIwyT2H3PEIROw+Z+
HFv3YEijsnYFWjKpqmxhRQBgvFXp4lGZuMSD0zcbkE5576poNBgB4XjvhzpFHRd7
G08cA/sE28PBGqzuJVCgz1Y1WrM0Qw732Ve/VdcplUGo+W5df0ShwI2iDsEBSIn6
View OS X Kernel Panic.log
Thu Jul 22 22:06:33 2010
panic(cpu 0 caller 0x29d59a): "Spinlock acquisition timed out: lock=0x863e60, lock owner thread=0x730e3d4, current_thread: 0x5c45b7c"@/SourceCache/xnu/xnu-1504.7.4/osfmk/i386/locks_i386.c:346
Backtrace (CPU 0), Frame : Return Address (4 potential args on stack)
0x35bfbc28 : 0x21b455 (0x5cf328 0x35bfbc5c 0x2238b1 0x0)
0x35bfbc78 : 0x29d59a (0x590068 0x863e60 0x730e3d4 0x5c45b7c)
0x35bfbc98 : 0x22fcb9 (0x863e60 0x52b8200 0x35bfbce8 0x9f7de7)
0x35bfbcd8 : 0x9ea44f (0x515db60 0x8e94a8f9 0x1952 0x9e7f2c)
0x35bfbd48 : 0x9ea5bf (0x5b89400 0x8068d5a4 0x1952 0x297d)
0x35bfbd88 : 0x9f3285 (0x5b89400 0x35bfbe6c 0x64 0x0)
0x35bfbde8 : 0x9ea1d8 (0x5b89400 0x35bfbe6c 0x35bfbe68 0x2)
View fixfa.user.js
// ==UserScript==
// @name FixFA
// @namespace http://labs.henriwatson.com/greasemonkey/fixfa/
// @description Change the amount of screen space FA uses.
// @include http://*.furaffinity.net/*
// @include https://*.furaffinity.net/*
// ==/UserScript==
(function() {
// Detect Firebug
View gist:490722
Athena:~ henriwatson$ brew install wget
==> Downloading http://ftp.gnu.org/gnu/wget/wget-1.12.tar.bz2
######################################################################## 100.0%
==> ./configure --disable-debug --prefix=/usr/local/Cellar/wget/1.12 --disable-i
==> make install
/usr/local/Cellar/wget/1.12: 7 files, 576K, built in 4.5 minutes
View Cisco IPTV Port Scan.txt
Starting Nmap 4.90RC1 ( http://nmap.org ) at 2010-08-09 22:35 AST
NSE: Loaded 30 scripts for scanning.
Initiating ARP Ping Scan at 22:35
Scanning 10.0.0.2 [1 port]
Completed ARP Ping Scan at 22:35, 0.01s elapsed (1 total hosts)
Initiating Parallel DNS resolution of 1 host. at 22:35
Completed Parallel DNS resolution of 1 host. at 22:35, 0.13s elapsed
Initiating SYN Stealth Scan at 22:35
Scanning 10.0.0.2 [65535 ports]
View gist:609025
<?php
// ACME API
// bbPress database model
$this->load->library('acmebbuser');
class ACME_bbPress extends Model {
function ACME_bbPress() {
parent::Model();
}
View gist:747613
12/19/10 15:22
Hardware:
Hardware Overview:
Model Name: MacBook Pro
Model Identifier: MacBookPro2,2
@unlobito
unlobito / gist:857606
Created Mar 6, 2011
Running nslookup on 207.46.232.182
View gist:857606
Athena:~ henriwatson$ nslookup microsoft.com
Server: 196.3.81.5
Address: 196.3.81.5#53
Non-authoritative answer:
Name: microsoft.com
Address: 207.46.232.182
Name: microsoft.com
Address: 207.46.197.32
You can’t perform that action at this time.