Skip to content

Instantly share code, notes, and snippets.

# The responder object is the long running process that
# gets the POST requests from Telegram.
#
# The object responds only to POST requests on a predefined route. The
# responder is tied to a bot and takes a configparser object, which we
# assume has already been filled with the proper config earlier.
import logging
import random, string
@mrvdb
mrvdb / gist:98998e7d64c100d05406
Created August 28, 2015 09:23
spectrum 2 irc transport backtrace
(gdb) bt full
#0 0xb7579c90 in std::__find<__gnu_cxx::__normal_iterator<unsigned long*, std::vector<unsigned long, std::allocator<unsigned long> > >, unsigned long> (__first=<error reading variable: Cannot access memory at address 0xb7720000>,
__last=<error reading variable: Cannot access memory at address 0x1>, __val=@0xbfb8a104: 10762)
at /usr/include/c++/4.7/bits/stl_algo.h:162
__trip_count = 76079104
#1 0xb7574046 in std::find<__gnu_cxx::__normal_iterator<unsigned long*, std::vector<unsigned long, std::allocator<unsigned long> > >, unsigned long> (__first=940223, __last=<error reading variable: Cannot access memory at address 0x1>, __val=@0xbfb8a104: 10762)
at /usr/include/c++/4.7/bits/stl_algo.h:4466
No locals.
#2 0xb7568ed1 in Transport::NetworkPluginServer::handlePIDTerminated (this=0xbfb8a2e8, pid=10762)
at /tmp/buildd/spectrum2-2.0.0~beta2-805-g51746c5~wheezy/src/networkpluginserver.cpp:1905
2014-02-12 20:24:35 LOG_ERR: [o.mrblog.nl:queuedaemon.php:12378] StompQueueManager (main): Exception on queue tweetin: [File] DB_DataObject error []: DB Error: already exists
2014-02-12 20:24:35 LOG_WARNING: [o.mrblog.nl:queuedaemon.php:12378] StompQueueManager (main): Failed handling array with 2 elements (keys:[status,for_user]) posted at 2014-02-12 20:24:35 in queue tweetin from curie.hsdev.com:61613
2014-02-12 20:24:35 LOG_ERR: [o.mrblog.nl:queuedaemon.php:12384] StompQueueManager (main): Exception on queue tweetin: [File] DB_DataObject error []: DB Error: already exists
2014-02-12 20:24:35 LOG_WARNING: [o.mrblog.nl:queuedaemon.php:12384] StompQueueManager (main): Failed handling array with 2 elements (keys:[status,for_user]) posted at 2014-02-12 20:24:35 in queue tweetin from curie.hsdev.com:61613
2014-02-12 20:24:35 LOG_ERR: [o.mrblog.nl:queuedaemon.php:12378] StompQueueManager (main): Exception on queue tweetin: [File] DB_DataObject error []: DB Error: already exists
2014-02-12 20:24:35 LOG_WARNING:
Features I would like to have in a social networking package:
- free and open source
- be able to run it myself
- bridge (bidirectionally) at least with twitter, pump.io and facebook
- be able to use it on android with proper notification support
- realtime updates
- atom feed integration
- conversations at private, public and grouped level
% for item in object.message_follower_ids:
%if user.partner_id.id != item.id:
${item.name},&nbsp;
% endif
% endfor
2014-02-21 14:11:25,451 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
2014-02-21 14:11:25,467 DEBUG [mediagoblin.tools.routing] endpoint: mediagoblin.oauth view_func: mediagoblin.oauth.views:authorize
/usr/local/mediagoblin/mediagoblin/local/lib/python2.7/site-packages/SQLAlchemy-0.8.1-py2.7-linux-i686.egg/sqlalchemy/engine/default.py:471: SAWarning: Unicode type received non-unicode bind param value.
processors[key](compiled_params[key])
2014-02-21 14:12:07,766 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
# We use a jinja2 sandboxed environment to render mako templates.
# Note that the rendering does not cover all the mako syntax, in particular
# arbitrary Python statements are not accepted, and not all expressions are
# allowed: only "public" attributes (not starting with '_') of objects may
# be accessed.
# This is done on purpose: it prevents incidental or malicious execution of
# Python code that may break the security of the server.
from jinja2.sandbox import SandboxedEnvironment
mako_template_env = SandboxedEnvironment(
block_start_string="<%",
diff --git a/plugins/Realtime/RealtimePlugin.php b/plugins/Realtime/RealtimePlugin.php
index 25b009f..cff0bcb 100644
--- a/plugins/Realtime/RealtimePlugin.php
+++ b/plugins/Realtime/RealtimePlugin.php
@@ -145,7 +145,7 @@ class RealtimePlugin extends Plugin
public function onEndShowStylesheets(Action $action)
{
- $action->cssLink(self::staticPath(__CLASS__, 'css/realtimeupdate.css'),
+ $action->cssLink(self::staticPath(str_replace('Plugin','',__CLASS__), 'css/realtimeupdate.css'),
[12:34:50] IMAP4> 335 UID FETCH 2009 BODY.PEEK[]
[12:34:50] IMAP4< [FETCH data - 1024 bytes]
[12:34:50] IMAP4< [FETCH data - 916 bytes]
imap-thread.c:2592:imap fetch_content run - end 23
imap-thread.c:404:generic_cb
** (claws-mail:28816): WARNING **: [12:34:50] IMAP error on localhost: FETCH error
imap.c:539:unlocking session 0x1c20e40
folder.c:4621:Folder HSD wants sync
Modified lisp/ox-latex.el
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index cea21be..844f2cd 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -349,7 +349,7 @@ the toc:nil option, not to those generated with #+TOC keyword."
:type 'string)
(defcustom org-latex-hyperref-template
- "\\hypersetup{\n pdfkeywords={%k},\n pdfsubject={%d},\n pdfcreator={%c}}\n"