Skip to content

Instantly share code, notes, and snippets.

@ask-compu
ask-compu / timer.py
Last active August 28, 2015 03:20
timer
class EpReminder
def __init__(self, phenny):
self.phenny = phenny
_thread.start_new_thread(cycle_to_next_ep())
def cycle_to_next_ep(self):
prev_j = {}
while True:
j = get_ep_info
if j is prev_j:
#!/usr/bin/python3
'''
party.py - Pinkie's new nick greeting module
(C) 2012 Jordan Kinsley <[email protected]>
(C) 2013 Kazune <[email protected]>
GPLv2 or later
This module checks for when a new nick joins the channel, and if the nick
hasn't been seen before, she will throw them a party.
'''
import sqlite3 as lite
import os
conn = lite.connect(os.path.join(os.path.expanduser('~/.phenny'), 'seen.db'))
c = conn.cursor()
c.execute('''create table if not exists seen(
nick varchar(31) NOT NULL PRIMARY KEY,
channel varchar(31) NOT NULL,
message text,
event varchar(10) NOT NULL,
#!/usr/bin/env python
"""
seen.py - Phenny seen module
"""
import sqlite3 as lite
import os
def db_connect(db):
return lite.connect(db, check_same_thread = False)
#!/usr/bin/python3
'''
ping.py - Phenny Ping Module
Author: Sean B. Palmer, inamidst.com
About: http://inamidst.com/phenny/
Modified from ping.py by Amos
Modified by Jordan Kinsley <[email protected]>
'''
<Link> If I told her that, she would get on my case! She would go on and on about how she hates you! And I'd get in an even BIGGER fight than we had, then she'd x out of the chat just to spite me! And then I wouldn't want to do the rp anymore because of that, because her matters ended up causing everything to go haywire!
<Compu> ((it sounds to me like she doesnt deserve either of us then))
<Compu> ((Braixen so u hate me?))
<Braixen> (??????????????? wait what? i always love father
<Link> I guess I kinda overexaggerated a bit...she just hated that you "butt in" to her rp.
<Link> Sorry...
<Compu> ((SHES THE ONE WHOS FUCKING BUTTING IN!!))
<Link> *sigh* See, this is EXACTLY what I tried to prevent,.
<Link> In Braixen's defense, we started before you came on to ask me to rp. But you didn't know that at the time. I tried telling her that...
<Compu> ((u didnt tell ME))
@ask-compu
ask-compu / desktop.txt
Created December 20, 2015 20:41
desktop hardware info
========================================================cpu0=================================================================
INTEL
(R) Pentium(R) D CPU 3.00GH
3000.000 MHz
Label103
Temperature
Family: 15
Model: 6
Stepping: 4
def geoip_search(query):
query = query.replace('!', '')
query = web.quote(query)
uri = 'https://freegeoip.net/json/' + query
#try:
rec_bytes = web.get(uri)
#except:
# return
jsonstring = json.loads(rec_bytes)
ip = jsonstring['ip']
############## Kodi CRASH LOG ###############
################ SYSTEM INFO ################
Date: Mon Jan 11 09:35:57 EST 2016
Kodi Options:
Arch: x86_64
Kernel: Linux 3.19.0-43-generic #49~14.04.1-Ubuntu SMP Thu Dec 31 15:44:49 UTC 2015
Release: Ubuntu 14.04.3 LTS, Trusty Tahr
############## END SYSTEM INFO ##############
############## Kodi CRASH LOG ###############
################ SYSTEM INFO ################
Date: Mon Jan 11 14:38:43 EST 2016
Kodi Options:
Arch: x86_64
Kernel: Linux 3.19.0-43-generic #49~14.04.1-Ubuntu SMP Thu Dec 31 15:44:49 UTC 2015
Release: Ubuntu 14.04.3 LTS, Trusty Tahr
############## END SYSTEM INFO ##############