Skip to content

Instantly share code, notes, and snippets.

View giacomos's full-sized avatar

Giacomo Spettoli giacomos

  • Bonfiglioli Riduttori S.p.A
  • Bologna, Italy
View GitHub Profile
@giacomos
giacomos / build-gimp-git.sh
Created April 26, 2012 10:04 — forked from strycore/build-gimp-git.sh
Gimp git installer script for Ubuntu
#!/bin/bash
# Resources
# http://www.gimpusers.com/tutorials/compiling-gimp-for-ubuntu
# http://ubuntuforums.org/showthread.php?p=11818979
#
sudo apt-get build-dep gimp
sudo apt-get install libjpeg62-dev libopenexr-dev librsvg2-dev libtiff4-dev xsltproc gtk-doc-tools
mkdir gimp_build && cd gimp_build
@giacomos
giacomos / gist:3199122
Created July 29, 2012 14:11
ANN: pythonpackages.com beta
Ciao Pythonisti Italiani,
sto contattando varie comunità di programmatori Python per offrire aiuto nel packaging del vostro software.
Se avete mai lottato con il packaging e il rilascio di software Python (ad es. su PyPI), date un'occhiata a questo servizio:
- http://pythonpackages.com
L'idea di base è quella di automatizzare il packaging facendo il check-out del codice,facendo i test e l'upload (ad es. su PyPI) tutto via web, come spiegato in questa introduzione:
- http://docs.pythonpackages.com/en/latest/introduction.html
@giacomos
giacomos / gist:5655599
Last active December 17, 2015 18:49
zope.com css fix
.navbar-inverse .nav a:hover, .navbar-inverse .nav a:focus {
border-top-width: 0;
}
@giacomos
giacomos / 0_reuse_code.js
Created January 20, 2014 09:50
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
2015-03-25 15:42:52 INFO collective.documentviewer Running command /usr/local/bin/docsplit pdf /tmp/admin-20150325144236683988-sitibt/dump.dat --output /tmp/admin-20150325144236683988-sitibt
2015-03-25 15:42:54 INFO collective.documentviewer Finished Running Command /usr/local/bin/docsplit pdf /tmp/admin-20150325144236683988-sitibt/dump.dat --output /tmp/admin-20150325144236683988-sitibt
2015-03-25 15:42:54 WARNING ploneintranet.attachments.browser.upload Could not get previews for attachment: admin-20150325144236683988-sitibt.zip, Exception: Error converting to pdf
2015-03-25 15:42:54 ERROR root could not scale "<plone.namedfile.file.NamedBlobFile object at 0x7f36fbde15f0>" of 'http://localhost:8080/Plone/test-yasaaaa/++attachments++default/admin-20150325144236683988-sitibt.zip'
Traceback (most recent call last):
File "/home/jack/dev/buildout-cache/python2.7/eggs/plone.namedfile-3.0.1-py2.7.egg/plone/namedfile/scaling.py", line 258, in create
**parameters)
File "/home/jack/dev/buildout-cache/python2.
1. Temporarely add to <src/ploneintranet/network/interfaces.py> these lines:
class ILikesContainer(Interface):
"""Stores likes.
"""
class ILikesTool(ILikesContainer):
"""Provide ILikesContainer as a site utility."""
2. run plone in debug mode: