Skip to content

Instantly share code, notes, and snippets.

Gareth Coles gdude2002

Block or report user

Report or block gdude2002

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View The Error.sh
Traceback (most recent call last):
File "/usr/local/lib/python2.6/site-packages/twisted/python/log.py", line 84, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/usr/local/lib/python2.6/site-packages/twisted/python/log.py", line 69, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/usr/local/lib/python2.6/site-packages/twisted/python/context.py", line 59, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/local/lib/python2.6/site-packages/twisted/python/context.py", line 37, in callWithContext
return func(*args,**kw)
--- <exception caught here> ---
View bot1.py
import feedparser
import irclib
import threading
import time
import datetime
import os
class IRCBot(irclib.SimpleIRCClient):
def __init__(self, password, channels, SERVER, PORT, NICKNAME):
irclib.SimpleIRCClient.__init__(self)
View bot.py
import sys
import os
import datetime
import struct
import urllib
import urllib2
import re
import socket
import cookielib
import threading
View format.py
import struct
from constants import *
class Format(object):
def __init__(self, format):
self.format = format
def __len__(self):
View gist:309116
import sys
import os
import datetime
import struct
import urllib
import urllib2
import re
import socket
import cookielib
import threading
View bot.py
import sys
import os
import datetime
import struct
import urllib
import urllib2
import re
import socket
import cookielib
import threading
View status.php
<section id="content" class="body center">
<?php
$socketdie = "No information avaliable";
function runcmd($cmd, $data = NULL ){
global $socket;
$jsondata = json_encode(array ('password'=>'bingy','command'=>$cmd, $data[0]=>$data[1]))."\r\n";
socket_send($socket, $jsondata, strlen($jsondata),0);
if (($bytes = socket_recv($socket, $buf, 16384, NULL)) == false) die($socketdie);
//echo "raw data = ".$buf."<br>";
return json_decode($buf);
View keybase.md

Keybase proof

I hereby claim:

  • I am gdude2002 on github.
  • I am gdude2002 (https://keybase.io/gdude2002) on keybase.
  • I have a public key whose fingerprint is FDE9 31DA 44AC ABCD 0770 7325 3AD0 7AC1 CBBA 85D6

To claim this, I am signing this object:

View IAmDoingItWrong.java
(ns IAmDoingItWrong)
(defn main [args]
(println "Hello")
)
View lines.py
__author__ = 'Gareth Coles'
import fnmatch
import os
matches = []
for root, dirnames, filenames in os.walk('src'):
for filename in fnmatch.filter(filenames, '*.java'):
matches.append(os.path.join(root, filename))
You can’t perform that action at this time.