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
PATH="/usr/local/python/bin/:$PATH" PYTHONPATH="/usr/local/python/" LD_LIBRARY_PATH="/usr/local/python/lib:/usr/local/python/:$LD_LIBRARY_PATH" PKG_CONFIG_PATH=/usr/local/cairo/lib/pkgconfig:$PKG_CONFIG_PATH /usr/local/python/bin/python waf configure --prefix=/usr/local/python/ |
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 | |
include 'wikibot.classes.php'; | |
$wpapi = new wikipediaapi; | |
$wpapi->login( 'ClueBot_NG', 'passwordhere' ); | |
function mysql_reconnect() { | |
if( !@mysql_ping() ) { | |
mysql_connect( 'bots-sql2', 'cb', 'passwordhere' ); | |
mysql_select_db( 'cluebotbig' ); |
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/perl | |
use warnings; | |
use strict; | |
use DBI; | |
use POSIX qw(strftime); | |
use Text::ASCIITable; | |
my $db_file = $ENV{'HOME'} . "/.log.db"; | |
my $dbh = DBI->connect( "dbi:SQLite:" . $db_file ); | |
my $table = Text::ASCIITable->new(); |
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 | |
if(isset( $_POST ) && array_key_exists( 'username', $_POST ) && array_key_exists( 'password', $_POST )) { | |
$ftph = @ftp_connect( 'localhost' ) or die( 'Could not connect to server, try again later' ); | |
@ftp_login( $ftph, $_POST['username'], $_POST['password']) or die( 'Not enough sweeties' ); | |
@ftp_close( $ftph ); | |
$hdir = '/home/' . get_current_user(); | |
$dir = $hdir . '/.ftp_enfocer/'; | |
if( !is_dir( $hdir ) ) |
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
[submodule "/path/to/project/vendor/symfony"] | |
path = /path/to/project/vendor/symfony | |
url = git://github.com/symfony/symfony.git | |
[submodule "/path/to/project/vendor/twig"] | |
path = /path/to/project/vendor/twig | |
url = git://github.com/fabpot/Twig.git | |
[submodule "/path/to/project/vendor/monolog"] | |
path = /path/to/project/vendor/monolog | |
url = git://github.com/Seldaek/monolog.git | |
[submodule "/path/to/project/vendor/doctrine-common"] |
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
mkdir -p vendor/bundles/Sensio/Bundle/ vendor/bundles/JMS/ vendor/bundles/Symfony/Bundle/ | |
git submodule add http://github.com/symfony/symfony.git vendor/symfony | |
git submodule add http://github.com/fabpot/Twig.git vendor/twig | |
git submodule add http://github.com/Seldaek/monolog.git vendor/monolog | |
git submodule add http://github.com/doctrine/common.git vendor/doctrine-common | |
git submodule add http://github.com/doctrine/dbal.git vendor/doctrine-dbal | |
git submodule add http://github.com/doctrine/doctrine2.git vendor/doctrine | |
git submodule add http://github.com/swiftmailer/swiftmailer.git vendor/swiftmailer | |
git submodule add http://github.com/kriswallsmith/assetic.git vendor/assetic | |
git submodule add http://github.com/fabpot/Twig-extensions.git vendor/twig-extensions |
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 node | |
var irc = require('irc'); | |
var dgram = require("dgram"); | |
var relay1 = dgram.createSocket("udp4"); | |
var relay2 = dgram.createSocket("udp4"); | |
var relay3 = dgram.createSocket("udp4"); | |
var client = new irc.Client( 'irc.cluenet.org', 'CBNGRelay', { | |
userName: 'CBNGRelay', | |
realName: 'CBNGRelay', |
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
""" | |
I was thinking the usage of this to be something more like | |
ah = actionHandler() | |
try: | |
action = ah.getAction("test.something.bob") | |
except InvalidController: | |
pass | |
except InvalidClass: | |
pass | |
except InvalidAction: |
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 perl | |
# We want to know if stuff is going to explode in our face | |
use warnings; | |
use strict; | |
# Wikipedia client | |
use MediaWiki::API; | |
# Mediawiki is too awesome to use unix time | |
use Date::Parse; |
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
#!/bin/sh | |
# Config stuff | |
UPLOAD_HOST="upload.ns.bytemark.co.uk"; | |
UPLOAD_USERNAME=""; | |
UPLOAD_PASSWORD=""; | |
# This stuff is required | |
cd `dirname $0`; | |
export RSYNC_PASSWORD=$UPLOAD_PASSWORD; |