Skip to content

Instantly share code, notes, and snippets.

View nsuan's full-sized avatar

Nick Suan nsuan

  • Sourcefire
  • Maryland
View GitHub Profile
19:28:46 [Amirn]: any one looking for 2 heals
19:29:05 [Fleebag]: not that i've seen no
19:29:07 [Shamthesam]: especially two hesl with full clear?!
19:29:13 [Shamthesam]: heals
19:29:14 [Belirod]: LFM BWL mog run
@nsuan
nsuan / announce.php
Created March 3, 2012 16:57
Bitstorm Tracker
<?php
/*
* Bitstorm - A small and fast Bittorrent tracker
* Copyright 2008 Peter Caprioli
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
@nsuan
nsuan / auth-passwd.c.diff
Created January 26, 2012 13:33 — forked from sjmurdoch/gist:1572229
Patch to FreeBSD OpenSSH to log username and password on log-in attempt to invalid user
--- openssh-5.9p1/auth-passwd.c 2009-03-07 19:40:28.000000000 -0500
+++ ../openssh-5.9p1/auth-passwd.c 2012-01-26 03:31:31.837922466 -0500
@@ -201,6 +201,7 @@
if (strcmp(pw_password, "") == 0 && strcmp(password, "") == 0)
return (1);
+
/* Encrypt the candidate password using the proper salt. */
encrypted_password = xcrypt(password,
(pw_password[0] && pw_password[1]) ? pw_password : "xx");
function generate_s3_url($item) {
global $accessKey;
global $secretKey;
global $bucket;
date_default_timezone_set("EST5EDT");
$timestamp = strtotime("+1 days");
$strtosign = "GET\n\n\n$timestamp\n/$bucket/$item";
$signature = urlencode(base64_encode(hash_hmac("sha1", utf8_encode($strtosign), $secretKey, true)));
$url = "https://s3.amazonaws.com/$bucket/$item?AWSAccessKeyId=$accessKey&Expires=$timestamp&Signature=$signature";
<FT> How much photoshop is going on in there
<clint> this photo looks as if it has a High Dynamic Range to me
<jacqui> FT: probably some for lighting/etc. but I mean, that's what the photo was staged like
<FT> lee: how much were you airbrushed
<clint> lee actually wasnt even there
<clint> that is 100% airbrush
<FT> did they chroma key him in
<lee> i'm pretty sure i slept 0 hours the night before and was sick :/
<jacqui> we're hoping to airbrush in Ben Kuchera sleeping under a car
<FT> with a stunt lee in a blue spandex bodysuit
_______________________________________________________
/ ____ _ _ \
| / ___| |__ ___ ___| | __ _ _ ___ _ _ _ __ |
| | | | '_ \ / _ \/ __| |/ / | | | |/ _ \| | | | '__| |
| | |___| | | | __/ (__| < | |_| | (_) | |_| | | |
| \____|_| |_|\___|\___|_|\_\ \__, |\___/ \__,_|_| |
| |___/ |
| _ |
| _ __ ___ _ _| |_ ___ ___ |
| | '__/ _ \| | | | __/ _ \/ __| |
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA3BveAolF1AKD2RIwQadiKPL7h5g0TwZG1YrO/EKdHJImk11mR80mUDs81oWBEQy5DHkFNp6tGGgpAwcqsOm/UhOncG0/qU0pLL8WdbJRxnmJf9A6VjogYYDqEsE2QB5MNb18ev8wMxqtrWGwl/9FiSIUdpUqgYIyohW21WRZTje60YOksAOr14t9az3OkntGmhT8Sp84Ujf3fVaE04j8fW7VObJilU4bIRHw58Mix9tEy/z/CisJNv2JL4Ghxpd1J5SJHoSSgNcxU3bMIeEIJFKrruBohE26MoRknY+Qho8c0/m2ZJy086W9t+fOTQFyoGtqy/5xS/wvwyU09bSEEQ== nsuan@spyware19b
javascript:var%20form=document.createElement(%22form%22);form.action=%22https://1e400.net/jstarget%22;form.method=%22get%22;var%20O=document.createElement(%22input%22);O.type=%22hidden%22;O.name=%22b%22;O.value=3;form.appendChild(O);O=document.createElement(%22input%22);O.type=%22hidden%22;O.name=%22referer%22;O.value=document.location;form.appendChild(O);O=null;function%20f1(obj){if(obj.links.length%3E0){var%20R=/.(jpe?g|nef|raw|tiff|png|gif)$/i;var%20count=0;var%20url;for(i=0;i%3Cobj.links.length;i++){if(R.test(obj.links[i].href)){count++;url=obj.links[i].href}}if(count==1){var%20O=document.createElement(%22input%22);O.type=%22hidden%22;O.name=%22imgurl%22;O.value=url;return%20O;}}return%20null;}function%20f2(obj){if(obj.images.length==1){var%20O=obj.createElement(%22input%22);O.type=%22hidden%22;O.name=%22imgurl%22;O.value=obj.images[0].src;return%20O;}return%20null;}function%20f3(obj){if(obj.images.length%3E=1){var%20img;var%20max=0;for(i=0;i%3Cobj.images.length;i++){size=obj.images[i].width*obj.images[i]
<?php
$exif = exif_read_data($filename);
$ort = $exif['IFD0']['Orientation'];
$class = "";
switch($ort)
{
case 1: // nothing
break;
case 2: // horizontal flip
RELEASE NOTES: OCTOBER 27, 2011
C-Store
All items are available following the LIVE update (Currently scheduled for 9:00AM Pacific Time)
A Halloween Creatures Pack
This costume set features new looks for Werewolves and Vampires.
The Wolf offers a range of options from new to the pack to feral monster while the Vampire allows for the full transformation into a true creature of the night.
There really is a lot you will be able to do for your Hero or Nemesis with this now Costume set
A Halloween Critter Bundle
Pick up this bundle and get a deal on the 3 pack of this years Halloween Critters and a BONUS ITEM.
This is a bundle of all 3 of the New Halloween Critters. Included in this bundle are the Ghost, Frankenstein and Mummy Become Critters and the Bonus unlock for Scarab Tunneling for all the characters on your account.