Skip to content

Instantly share code, notes, and snippets.

View lukegb's full-sized avatar
🦦
👖

Luke Granger-Brown lukegb

🦦
👖
View GitHub Profile
<?php
$dir = 'news';
$nstuffa = scandir($dir);
$nstuff = array();
foreach ($nstuffa as $nitem) {
if ($nitem == '.' || $nitem == '..') continue;
$nstuff[$nitem] = filectime($dir.'/'.$nitem);
}
arsort($nstuff, SORT_NUMERIC);
$ncount = 0;
$q=mysql_query("SELECT * from sales") or die(mysql_error());
$rows = array();
while($row = mysql_fetch_assoc($q)){
$newrow = array();
foreach($row as $x)
{
if (is_numeric($x))
{
// lightwindow.js v2.0
//
// Copyright (c) 2007 stickmanlabs
// Author: Kevin P Miller | http://www.stickmanlabs.com
//
// LightWindow is freely distributable under the terms of an MIT-style license.
//
// I don't care what you think about the file size...
// Be a pro:
// http://www.thinkvitamin.com/features/webapps/serving-javascript-fast
#lightwindow_overlay {
/* REQUIRED */
display: none;
visibility: hidden;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100px;
z-index: 500;
<?php
require_once 'Zend/Loader.php'; // the Zend dir must be in your include_path
Zend_Loader::loadClass('Zend_Gdata_YouTube');
$yt = new Zend_Gdata_YouTube();
$baseuri = 'http://golden.mtveurope.org/~lukegb/wiimc/youtube.php';
// Tantric: CHANGE ME AND NOTHING ELSE ^_^
//CHECKSUMBEGIN
<?php
require './conf/dbconf.php';
require './conf/opendb.php';
//echo "<pre>".print_r($_REQUEST,true)."</pre>";
session_start();
if (!isset($_SESSION['leo']) || $_SESSION['leo'] != true) {
/* installmii_core -- low-level functions to handle the downloading, patching
and installation of updates on the Wii
Copyright (C) 2008 bushing / hackmii.com
Edited 2010 by Luke Granger-Brown in an attempt to re-legitimize it.
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, version 2.
0000000100000011 0206
000000010000001F 0C14
0000000100000024 0C16
000000010000003C 181E
0001000848414B50 0002
0001000848414C50 0002
0000000100000002 01C2
--- libogc/ios.c 2009-10-05 12:32:06.000000000 +0100
+++ /home/lukegb/libogc_tt_source/libogc/ios.new.c 2010-08-29 02:37:21.265624866 +0100
@@ -31,6 +31,7 @@
#if defined(HW_RVL)
#include <stdio.h>
+#include <malloc.h>
#include "asm.h"
#include "processor.h"
#include "cache.h"
#!/bin/bash
# THIS MUST BE SET TO WHERE YOUR WIILOAD IS
WIILOAD_LOCATION="/usr/bin/wiiload"
# Set this to not make it prompt you every time
WIIIP=""
WIIIP=`zenity --entry --text="Please enter your Wii's IP address"`
WIILOAD="tcp:$WIIIP"
if [ ! -z "$1" ]; then