Skip to content

Instantly share code, notes, and snippets.

View pferreir's full-sized avatar
💭
Hacking

Pedro Ferreira pferreir

💭
Hacking
View GitHub Profile
2014-02-07 02:13:23,541 indico.wsgi - ERROR app.py:142 -- 'NiceIdentity' object has no attribute 'getAuthenticatorTag'
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/Flask-0.10-py2.6.egg/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python2.6/site-packages/Flask-0.10-py2.6.egg/flask/app.py", line 1461, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/lib/python2.6/site-packages/indico-1.2_dev-py2.6.egg/indico/web/http_api/handlers.py", line 237, in handler
res = hook(aw)
File "/usr/lib/python2.6/site-packages/indico-1.2_dev-py2.6.egg/indico/web/http_api/hooks/base.py", line 190, in __call__
resultList, complete = self._performCall(func, aw)
[alias]
rh = "!f(){ BRANCH=\"$(git-rev-parse --symbolic-full-name --abbrev-ref HEAD)\" && git checkout $1 && git rebase $BRANCH && git checkout $BRANCH && git merge $1; }; f"
#include <avr/io.h>
#include <util/delay.h>
#include "lcd.h"
void _set_pin(uint8_t port, uint8_t val) {
if (val) {
PORTA |= _BV(port);
} else {
PORTA &= ~_BV(port);
#ifndef LCD_H
#define LCD_H
/*************************************************************************
Title : C include file for the HD44780U LCD library (lcd.c)
Author: Peter Fleury <pfleury@gmx.ch> http://jump.to/fleury
File: $Id: lcd.h,v 1.13.2.2 2006/01/30 19:51:33 peter Exp $
Software: AVR-GCC 3.3
Hardware: any AVR device, memory mapped mode only for AT90S4414/8515/Mega
***************************************************************************/
/*************************************************************************
Title: testing output to a HD44780 based LCD display.
Author: Peter Fleury <pfleury@gmx.ch> http://jump.to/fleury
File: $Id: test_lcd.c,v 1.6 2004/12/10 13:53:59 peter Exp $
Software: AVR-GCC 3.3
Hardware: HD44780 compatible LCD text display
ATS90S8515/ATmega if memory-mapped LCD interface is used
any AVR with 7 free I/O pins if 4-bit IO port mode is used
**************************************************************************/
#include <stdlib.h>
diff --git a/indico/core/logger.py b/indico/core/logger.py
index 982c976..c290c28 100644
--- a/indico/core/logger.py
+++ b/indico/core/logger.py
@@ -61,15 +61,20 @@ class IndicoMailFormatter(logging.Formatter):
try:
info.append('Request: %s' % request.id)
info.append('URL: %s' % request.url)
- info.append('Endpoint: %s' % request.url_rule.endpoint)
+
commit 3f05e2b58496183cd8915efe38c6ea367469708d
Author: Pedro Ferreira <pedro.ferreira@cern.ch>
Date: Fri Jul 25 10:38:48 2014 +0200
Fixed behavior of booking list sorting
Also cleaned up legacy code
diff --git a/indico/htdocs/js/indico/RoomBooking/RoomBookingCalendar.js b/indico/htdocs/js/indico/RoomBooking/RoomBookingCalendar.js
index 4e5b5b4..958ab0b 100644
@pferreir
pferreir / gist:ebfad73817372aaee0c7
Created August 9, 2014 16:29
weechat-emoji.rb
require 'rumoji'
def render(data, modifier, modifier_data, message)
Rumoji.decode(message)
end
def weechat_init
Weechat.register 'rumoji', 'Pedro Ferreira', '0.0.1', 'MIT',
'Render emoki using Rumoji', '', ''
diff --git a/indico/web/flask/app.py b/indico/web/flask/app.py
index a3fbb0e..0f3e3a9 100644
--- a/indico/web/flask/app.py
+++ b/indico/web/flask/app.py
@@ -21,6 +21,7 @@ from __future__ import absolute_import
import os
import re
+import traceback
commit f7db3494498071b2407fab388b2a058ac4835234
Author: Pedro Ferreira <pedro.ferreira@cern.ch>
Date: Wed Aug 20 17:39:20 2014 +0200
Avoid resetting loggers
Which creates problems with the scheduler's own logger
diff --git a/indico/core/logger.py b/indico/core/logger.py
index ef3a06f..c620264 100644