Skip to content

Instantly share code, notes, and snippets.

View robbiet480's full-sized avatar
😩
terminally online

Robbie Trencheny robbiet480

😩
terminally online
View GitHub Profile
<?php
$year = date("Y");
for ($i = 2050; $i > 1959; $i--){
if($year == $i)
echo "<option value='$i' selected>$i</option>";
else
echo "<option value='$i'>$i</option>";
}
?>
@robbiet480
robbiet480 / FLV.php
Created January 24, 2011 07:30
A random flash player for dnn.st
<?php
if(isset($_REQUEST['file'])) {
echo '<html><head><title>'.$_REQUEST['file'].'</title></head><body style="background: #000;"><h1>
<object width="100%" height="100%">
<param name="movie" value="swf/'.$_REQUEST['file'].'">
<embed src="swf/'.$_REQUEST['file'].'" width="100%" height="100%">
</embed>
</object>
</h1></body></html>';
} else {
@robbiet480
robbiet480 / FLV.php
Created January 24, 2011 07:52 — forked from dennistang/FLV.php
<?php
if(isset($_REQUEST['file'])) {
echo '<html>
<!--
-\-
\-- \-
\ - -\
\ \\
\ \
\ \\
@robbiet480
robbiet480 / production.log
Created February 3, 2011 04:24
gitorious w/ private repo patch
Errno::EPIPE (Broken pipe):
vendor/rails/actionmailer/lib/action_mailer/base.rb:692:in `write'
vendor/rails/actionmailer/lib/action_mailer/base.rb:692:in `print'
vendor/rails/actionmailer/lib/action_mailer/base.rb:692:in `perform_delivery_sendmail'
vendor/rails/actionmailer/lib/action_mailer/base.rb:691:in `popen'
vendor/rails/actionmailer/lib/action_mailer/base.rb:691:in `perform_delivery_sendmail'
vendor/rails/actionmailer/lib/action_mailer/base.rb:523:in `__send__'
vendor/rails/actionmailer/lib/action_mailer/base.rb:523:in `deliver!'
vendor/rails/actionmailer/lib/action_mailer/base.rb:395:in `method_missing'
vendor/plugins/exception_notification/lib/exception_notifiable.rb:95:in `rescue_action_in_public'
[Thu Feb 24 04:20:55 2011] [warn] [client 98.210.220.37] [mod_mirrorbrain] MirrorBrainEngine On, mirror_base '/srv/amahi_isos/', referer: http://173.255.225.27/
[Thu Feb 24 04:20:55 2011] [warn] [client 98.210.220.37] [mod_mirrorbrain] URI: '/Amahi-5.4-Express-2.6-Beta-i386.iso', referer: http://173.255.225.27/
[Thu Feb 24 04:20:55 2011] [warn] [client 98.210.220.37] [mod_mirrorbrain] filename: '/srv/amahi_isos/Amahi-5.4-Express-2.6-Beta-i386.iso', referer: http://173.255.225.27/
[Thu Feb 24 04:20:55 2011] [warn] [client 98.210.220.37] [mod_mirrorbrain] clientip: 98.210.220.37, referer: http://173.255.225.27/
[Thu Feb 24 04:20:55 2011] [warn] [client 98.210.220.37] [mod_mirrorbrain] Country 'US', Continent 'NA', referer: http://173.255.225.27/
[Thu Feb 24 04:20:55 2011] [warn] [client 98.210.220.37] [mod_mirrorbrain] AS '--', Prefix '--', lat/lng 37.364899,-121.966003 state id CA, state 'California', referer: http://173.255.225.27/
[Thu Feb 24 04:20:55 2011] [warn] [client 98.210.220.37] [mod_mirrorbrain] Can
Process: JavaApplicationStub [43196]
Path: /Applications/Minecraft.app/Contents/MacOS/JavaApplicationStub
Identifier: com.Mojang Specifications.Minecraft.Minecraft
Version: Minecraft 1.0.0 (1.0.0)
Code Type: X86 (Native)
Parent Process: launchd [185]
Date/Time: 2011-02-24 16:53:57.213 -0800
OS Version: Mac OS X 10.6.6 (10J567)
Report Version: 6
Process: JavaApplicationStub [62184]
Path: /Applications/Minecraft.app/Contents/MacOS/JavaApplicationStub
Identifier: com.Mojang Specifications.Minecraft.Minecraft
Version: Minecraft 1.0.0 (1.0.0)
Code Type: X86 (Native)
Parent Process: launchd [185]
Date/Time: 2011-02-28 18:45:34.150 -0800
OS Version: Mac OS X 10.6.6 (10J567)
Report Version: 6
@robbiet480
robbiet480 / gist:863448
Created March 10, 2011 02:18
VeriFone Square IPA
/*
* Generated by class-dump 3.3.3 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2010 by Steve Nygard.
*/
#pragma mark Named Structures
struct CGPoint {
float _field1;
@robbiet480
robbiet480 / delicious.php
Created May 6, 2011 18:16
delicious.php
<?php
/**
* @link http://gist.github.com/385876
*/
function csv_to_array($filename='', $delimiter=',')
{
if(!file_exists($filename) || !is_readable($filename))
return FALSE;
$header = NULL;
g++ -c -march=native -O2 -fomit-frame-pointer -fno-ident -fvisibility-inlines-hidden -fvisibility=hidden -Wall -std=c++0x -iquote -Wl,O1 -Wl,--as-needed -I/usr/include/mysql -I/usr/include/mysql++ -I/usr/include/boost -o db.o db.cpp
In file included from /usr/include/boost/thread/thread.hpp:22:0,
from ocelot.h:5,
from db.cpp:1:
/usr/include/boost/thread/detail/thread.hpp: In function ‘boost::thread&& boost::move(boost::thread&&)’:
/usr/include/boost/thread/detail/thread.hpp:349:16: error: invalid initialization of reference of type ‘boost::thread&&’ from expression of type ‘boost::thread’
In file included from /usr/include/boost/thread/detail/thread_heap_alloc.hpp:17:0,
from /usr/include/boost/thread/detail/thread.hpp:13,
from /usr/include/boost/thread/thread.hpp:22,
from ocelot.h:5,