This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Lazer Bot | |
// @author jmhobbs | |
// @version 2.2 | |
// @namespace http://www.lazercatzthegame.com/ | |
// @description a bot for Lazer Catz | |
// @include http://www.lazercatzthegame.com/* | |
// ==/UserScript== | |
var current_target = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# This script is used to combine PHP source files together into one big glob. | |
# I wrote this so I could distribute a single file web application, but develop | |
# it in a sane fashion. | |
# Copyright (c) 2010, John M. Hobbs | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without modification, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Copyright (C) 2010 John Hobbs | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ob_start(); | |
header('HTTP/1.1 503 Service Temporarily Unavailable'); | |
header('Status: 503 Service Temporarily Unavailable'); | |
header('Retry-After: 3600'); | |
header('X-Powered-By:'); | |
?><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> | |
<html><head> | |
<title>503 Service Temporarily Unavailable</title> | |
</head><body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
error_reporting( E_ERROR | E_PARSE ); | |
class ToDo { | |
protected $argv = array(); | |
public function __construct ( $argv ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import time | |
from datetime import datetime | |
from pymongo.connection import Connection | |
import pymongo | |
class ToDoApplication: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Check { | |
protected static $errors = 0; | |
protected static $include_found = true; | |
public static function no_errors () { | |
return true;//( 0 == self::$errors ); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header( 'Content-type: text/plain' ); | |
ini_set( 'output_buffering', 'Off' ); | |
error_reporting( E_ALL & ~E_NOTICE & ~E_WARNING ); | |
ini_set( 'display_errors', 0 ); | |
$argc = 2; | |
$argv = array( 'update.php', 'admin' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Data Vizualization in PHP | |
// This file will render a 1024x1024 PNG using the raw binary data from a file. | |
// 1's will be black, 0's will be white. | |
/* | |
Copyright (c) 2010 John Hobbs | |
Permission is hereby granted, free of charge, to any person obtaining a copy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*/15 * * * * cd /home/jmhobbs/lifestream.velvetcache.org && /usr/local/php5/bin/php ./protected/tools/update.php |