Skip to content

Instantly share code, notes, and snippets.

@ask-compu
ask-compu / spoti.py
Last active February 26, 2019 20:36
from __future__ import print_function
import hexchat
import dbus
import re
__module_name__ = 'Spoti.py'
__module_version__ = '0.0.3'
__module_description__ = 'Spotify controller'
__module_author__ = 'Scout @ irc.geekshed.net/codecrew'
12:31:20 T:139855212861440 NOTICE: special://profile/ is mapped to: special://masterprofile/
12:31:20 T:139855212861440 NOTICE: -----------------------------------------------------------------------
12:31:20 T:139855212861440 NOTICE: Starting Kodi (16.0 Git:a5f3a99). Platform: Linux x86 64-bit
12:31:20 T:139855212861440 NOTICE: Using Release Kodi x64 build
12:31:20 T:139855212861440 NOTICE: Kodi compiled Feb 20 2016 by GCC 4.8.4 for Linux x86 64-bit version 3.13.11 (199947)
12:31:20 T:139855212861440 NOTICE: Running on Ubuntu 14.04.4 LTS, kernel: Linux x86 64-bit version 3.19.0-51-generic
12:31:20 T:139855212861440 NOTICE: FFmpeg statically linked, version: 2.8.6-kodi-2.8.6-Jarvis-16.0
12:31:20 T:139855212861440 NOTICE: Host CPU: Intel(R) Pentium(R) D CPU 3.00GHz, 2 cores available
12:31:20 T:139855212861440 NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
12:31:20 T:139855212861440 NOTICE: special://xbmcbin/ is mapped to: /usr/lib/kodi
#!/usr/bin/python
#
# Copyright 2014 Mikael Magnusson
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#!/usr/bin/python
#
# Copyright 2014 Mikael Magnusson
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
__module_name__ = 'flashlight.py'
__module_version__ = '0.0.0'
__module_description__ = 'Flash lights on notify'
__module_author__ = 'Compu'
print '\0034',__module_name__, __module_version__,'has been loaded\003'
import sys
sys.path.append("/home/compu/.config/hexchat/addons")
import lightify
############## 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 ##############
############## 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 ##############
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']
@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
<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))