Skip to content

Instantly share code, notes, and snippets.

View daboross's full-sized avatar

Dabo daboross

View GitHub Profile
[19:37:21][ERROR] Error loading op.py:
Traceback (most recent call last):
File "/home/bot/bot/core/pluginmanager.py", line 134, in load_module
importlib.reload(python_module)
File "/usr/lib/python3.4/importlib/__init__.py", line 149, in reload
methods.exec(module)
File "<frozen importlib._bootstrap>", line 1153, in exec
File "<frozen importlib._bootstrap>", line 1129, in _exec
File "<frozen importlib._bootstrap>", line 1444, in exec_module
File "<frozen importlib._bootstrap>", line 1549, in get_code
types | # objects | total size
====================================== | =========== | ============
<class '_io.BufferedWriter | 528 | 2.15 MB
<class 'str | 21269 | 1.77 MB
<class 'dict | 2446 | 712.25 KB
<class 'list | 6397 | 705.35 KB
<class 'code | 945 | 132.90 KB
<class 'type | 121 | 124.95 KB
<class 'bytes | 7 | 64.27 KB
<class 'tuple | 885 | 57.09 KB
#!/bin/bash
pip install --user virtualenv
mkdir -p "$HOME/.local/bin"
PATH="$HOME/.local/bin:$PATH"
virtualenv -p /usr/bin/python3 "$HOME/py3env"
source "$HOME/py3env/bin/activate"
wget "https://gist.githubusercontent.com/daboross/56df84531683c76ca1db/raw/requirements.txt" -O "$HOME/requirements.txt"
pip install -r "$HOME/requirements.txt"
@daboross
daboross / requirements.txt
Last active August 29, 2015 14:01
Requirements
sqlalchemy
watchdog
lxml
beautifulsoup4
pygeoip
git+https://github.com/rfk/pyenchant.git
py3dns
pycrypto
pbkdf2
@daboross
daboross / command_toggle_qc.py
Created May 3, 2014 02:38
command_toggle_queercraft
from util import hook
disabled = False
allowed_nicks = ["Person"]
@hook.sieve()
def command_switch_sieve(bot, input, plugin):
if plugin.type == "command" and disabled and input.chan.lower() == "#queercraft":
@daboross
daboross / command_toggle.py
Last active August 29, 2015 14:00
Global command toggling command for CloudBot refresh
from util import hook
disabled = False
allowed_nicks = ["Person"]
@hook.sieve()
def command_switch_sieve(bot, input, plugin):
if plugin.type == "command" and disabled:
@daboross
daboross / minecraftbridge.py
Last active August 29, 2015 14:00
Minecraft bridge for CloudBot Refresh
import re
from core import main
from util import hook
from .utility import strip
@hook.event("PRIVMSG")
def run_extra_prefix(input, bot, conn, lastparam):
"""
@daboross
daboross / example-qpt.log
Last active August 29, 2015 14:00
This is an example of the 'qpt' quick plugin testing that I've added into Eliralin
/usr/bin/python3 /home/daboross/Projects/Python/Eliralin/EliralinRefresh/cloudbot.py --qpt
CloudBot3 <http://git.io/cloudbotirc>
[14:23:36][INFO] [znc-esper] Created permission manager for zncesper.
[14:23:36][INFO] [znc-esper] Reloading permissions for zncesper.
/home/daboross/Projects/Python/Eliralin/EliralinRefresh/modules
[14:23:36][INFO] Loaded command osrc from osrc.py
[14:23:36][INFO] Loaded command time from time_plugin.py
[14:23:36][INFO] Loaded command beats from time_plugin.py
[14:23:36][INFO] Loaded regex ctcp_version from core_ctcp.py
[14:23:36][INFO] Loaded regex ctcp_time from core_ctcp.py
@daboross
daboross / gac.sh
Last active August 29, 2015 14:00
gac push = git add -A; git diff --cached; git commit; git push
#!/bin/bash
gac_diff() {
git add -A
git diff --cached "$@"
}
gac_commit() {
if [[ -a ".git/do-not-commit" ]]; then
return
[2014-04-07][21:39:34][INFO] Config loaded from file.
[2014-04-07][21:39:34][INFO] Loaded plugin: rss.py:rb:37 (command)
[2014-04-07][21:39:34][INFO] Loaded plugin: rss.py:rss:4 (command)
[2014-04-07][21:39:34][INFO] Loaded plugin: rss.py:rss:4 (command)
[2014-04-07][21:39:34][INFO] Loaded plugin: wikipedia.py:wiki:15 (command)
[2014-04-07][21:39:34][INFO] Loaded plugin: wikipedia.py:wiki:15 (command)
[2014-04-07][21:39:34][ERROR] Error compiling encrypt.py:
Traceback (most recent call last):
File "/home/daboross/Projects/Python/Eliralin/EliralinRefresh/core/loader.py", line 81, in load_file
eval(code, namespace)