Skip to content

Instantly share code, notes, and snippets.

View gdude2002's full-sized avatar

Gareth Coles gdude2002

View GitHub Profile
import sys
import os
import datetime
import struct
import urllib
import urllib2
import re
import socket
import cookielib
import threading
import sys
import os
import datetime
import struct
import urllib
import urllib2
import re
import socket
import cookielib
import threading
import sys
import os
import datetime
import struct
import urllib
import urllib2
import re
import socket
import cookielib
import threading
<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);
@gdude2002
gdude2002 / -
Created October 17, 2015 21:16
Oct 08 2015 - 22:03:27 | URL-tools | ERROR | Could not get title for "https://www.youtube.com/watch?v=Lm9J8Glk0bE"
Traceback (most recent call last):
File "/home/ultros/Ultros/plugins/urltools/__init__.py", line 898, in site_youtube
"json" % params["v"][0]).read())
File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 437, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 550, in http_response
'http', request, response, code, msg, hdrs)
Oct 08 2015 - 22:03:27 | URL-tools | ERROR | Could not get title for "https://www.youtube.com/watch?v=Lm9J8Glk0bE"
Traceback (most recent call last):
File "/home/ultros/Ultros/plugins/urltools/__init__.py", line 898, in site_youtube
"json" % params["v"][0]).read())
File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 437, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 550, in http_response
'http', request, response, code, msg, hdrs)
Oct 09 2015 - 17:38:37 | Commands | INFO | irc-esper | <Kasen:#Ultros> ...i listened to that song for the first time in years last night, and then you link it in here O_o
Oct 09 2015 - 17:49:37 | Commands | INFO | irc-esper | <Kasen:#Ultros> ...they're seriously suggesting a binary search style ton of requests?
Oct 09 2015 - 17:56:16 | Oct 09 2015 - 19:26:26 | irc-stormbit | INFO | _2k10Oct 09 2015 - 20:12:21 | Commands | INFO | irc-esper | <g:#Ultros> ..chrome?
Oct 0Oct 09 2015 - 20:57:55 | irc-stormbit | INFO | MinishLink!FinnishLink@StormBit-v2ju4m.g72d.5ora.098a.2601.IP has left IRC: Quit: Leaving
Oct 09 2015 - 22:07:58 | irc-stormbit | INFO | _2k10!2k10@StormBit-mcp3nl.cable.virginm.net has left IRC: Quit: Moo
s> ...and the default is hideous
Oct 09 2015 - 20:49:39 | Commands | INFO | irc-esper | <Kasen:#Ultros> .dict functional
Oct 09 2015 - 21:18:26 |
main:
protocol-type: irc
can-flood: no
network: # Network connection settings
address: irc.gitter.im # Address of the server
port: 6697 # Port to connect to
ssl: yes # Use SSL?
password: "6a7c2d16c1723ab6753b96bbc44b361c8b37c50c"
# You may set this if you need the bot to bind to a certain IP address (for example, for a VHOST).
09 Sep 2016 | 18:07:57 (UTC) | <gdude2002#5318> ding
09 Sep 2016 | 18:07:59 (UTC) | <gdude2002#5318> give me a minute
09 Sep 2016 | 18:08:06 (UTC) | <gdude2002#5318> Team Mystic: Question Squad
09 Sep 2016 | 18:08:15 (UTC) | <DrBanner#6204> Timer for one minute, started.
09 Sep 2016 | 18:08:39 (UTC) | <gdude2002#5318>
09 Sep 2016 | 18:08:56 (UTC) | <func_door#9765> its okay they just shot themselves in the foot by not letting me be a questioner
09 Sep 2016 | 18:08:57 (UTC) | <func_door#9765> we got dis
09 Sep 2016 | 18:09:08 (UTC) | <ArgentVulpine#2736> Haha
09 Sep 2016 | 18:09:11 (UTC) | <gdude2002#5318> some people have realllly different usernames to their nicks on the server
09 Sep 2016 | 18:09:15 (UTC) | <gdude2002#5318> this is going to take me a few minutes