This file contains 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 | |
/* | |
GPL | |
2010 | |
rdrd@mostlynothing.info | |
*/ | |
include("colors.php"); | |
$excludes = array( | |
"alright sparky", |
This file contains 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
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) |
This file contains 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
#!/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 |
This file contains 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
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 |
This file contains 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 | |
error_reporting(0); | |
include("colors.php"); | |
$excludes = array( | |
"alright sparky", | |
"spam" | |
); | |
$actual_lines = 1; |
This file contains 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
#!/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" |
This file contains 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 | |
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/"); |
This file contains 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
#!/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> |
This file contains 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 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' |
This file contains 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 pandorabot { | |
public $botid; |