Skip to content

Instantly share code, notes, and snippets.

View franckbret's full-sized avatar

franck bret franckbret

View GitHub Profile
# For binding 'y' to copy and exiting selection mode
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -sel clip -i'
# For binding 'Enter' to copy and not leave selection mode
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe 'xclip -sel clip -i' '\;' send -X clear-selection
" global
syntax enable
set autoindent
set expandtab
set smartindent
set sw=2
set ts=2
set sts=2
set clipboard=unnamedplus
@franckbret
franckbret / buildout.cfg
Created June 10, 2014 08:22
A buildout.cfg to build a versatile and reproductible odoo development environment
# This is unstable for now, need testing and feedback.
# Be sure to follow https://pypi.python.org/pypi/anybox.recipe.odoo evolution for next stable release in an early future.
# For now you can build odoo master branch (trunk) from github with this buildout
# If you miss some system dependencies, see http://anybox.fr/blog/debian-package-helpers-for-openerp-buildouts
# For odoo recipe common scenario usage see http://docs.anybox.fr/anybox.recipe.openerp/trunk/
# and https://github.com/gracinet/opendays-2014
# Once you're done run
@franckbret
franckbret / microformats.unicode-coercition-error-on-filefield.patch
Created November 23, 2010 23:32
django microformats unicode-coercition-error-on-filefield.patch
We couldn’t find that file to show.
@franckbret
franckbret / zinnia_cms_placeholder_settings.diff
Created October 27, 2010 17:01
Trying to find a way for using placeholder in place of content entry, add ZINNIA_WYSIWYG = 'placeholder' to your settings to see it in action
diff --git a/zinnia/admin/entry.py b/zinnia/admin/entry.py
index 858ac76..435d713 100644
--- a/zinnia/admin/entry.py
+++ b/zinnia/admin/entry.py
@@ -12,6 +12,7 @@ from django.utils.translation import ugettext_lazy as _
from django.core.urlresolvers import reverse, NoReverseMatch
from tagging.models import Tag
+from cms.admin.placeholderadmin import PlaceholderAdmin
@franckbret
franckbret / faq.patch
Created October 20, 2010 15:32
Add example on templates skinning
diff --git a/docs/FAQ.rst b/docs/FAQ.rst
index 93b74df..9331491 100644
--- a/docs/FAQ.rst
+++ b/docs/FAQ.rst
@@ -7,6 +7,12 @@ Frequently Asked Questions
as generic as possible. But you can easily change them by
`specifying a template directory
<http://docs.djangoproject.com/en/dev/ref/templates/api/#loading-templates>`_.
+
+ You can also create your own app with zinnia templates inheritance. You can