Skip to content

Instantly share code, notes, and snippets.

<?php
/*
GPL
2010
rdrd@mostlynothing.info
*/
include("colors.php");
$excludes = array(
"alright sparky",
int max_light=255;
int constant_light_number=120; /* This seems to work pretty well for our needs */
int light_detection_process = 0;
int bumper_detection_process = 0;
int ir_detector_process = 0;
int max_sense = 140;
/* clip(int val, int min, int max)
#!/bin/bash
echo "Beginning Supybot Update!"
monit stop supybot
git clone git://supybot.git.sourceforge.net/gitroot/supybot/supybot
cd supybot
git clone git://gribble.git.sourceforge.net/gitroot/gribble/gribble
cp -R gribble/plugins/MessageParser plugins/
cp -R gribble/plugins/Conditional plugins/
python setup.py build
python setup.py install
acpitz-virtual-0
Adapter: Virtual device
temp1: +28.0°C (crit = +70.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +46.0°C (high = +86.0°C, crit = +100.0°C)
coretemp-isa-0001
Adapter: ISA adapter
<?php
error_reporting(0);
include("colors.php");
$excludes = array(
"alright sparky",
"spam"
);
$actual_lines = 1;
#!/bin/bash
FILE="/srv/samba/data/irc/botters-users.txt"
DATE_START=`/bin/cat $FILE | /usr/bin/head -n1`
DATE_END=`/bin/cat ${FILE} | /usr/bin/tail -n1 | /bin/sed -e 's/01 .*/01/g'`
cat <<'EOF'
reset
set terminal png size 1024,600
#set output "users.png"
set xdata time
set timefmt "%m/%d/%Y %H:%M:%S"
<?php
error_Reporting(E_ALL);
//header('Content-Type: image/png');
/* The graph-it and make it nice php script
Not suitable for children under the age of 25
Just because of how terribly designed it was..
But don't blame me... It was the code monkeys
*/
define("SITE_PATH","/srv/http/transcendence/");
define("COLLECTION_PATH","/srv/collection/usergraph/data/");
#!/bin/bash
git clone git://supybot.git.sourceforge.net/gitroot/supybot/supybot
cd ./supybot
sudo python setup.py install
cd ~
supybot-wizard
echo Wizard done
echo locate your configuration file by doing ls *.conf and find the botname you setup
echo then run it using supybot <config.conf>
<?php
class DB {
private static $database;
public static $configuration_path = "";
public static $database_file = "";
// Usually you don't think you need to redo this or change them.
private static $pdo_attributes = array(
'PDO::ATTR_ERRMODE' => 'PDO::ERRMODE_WARNING'
<?php
class pandorabot {
public $botid;