Skip to content

Instantly share code, notes, and snippets.

View paolodina's full-sized avatar
🔋
always on

pdina paolodina

🔋
always on
  • 21:31 (UTC +02:00)
View GitHub Profile
@paolodina
paolodina / gist:9cb19dc0d4e862ab3541
Created May 7, 2014 18:00
compass-compile-time
$ time bundle exec compass compile
overwrite stylesheets/style.css
real 0m27.504s
user 0m27.082s
sys 0m0.400s
$ bundle exec compass stats
| ----------------------------- | ----- | ---------- | -------------- | ----------- | ------------- | ------------- | -------------- | -------------- |
@paolodina
paolodina / gist:60c6adafe44aa4fbd819
Last active August 29, 2015 14:01
gemfile-timing-issue
# $ bundle install --path vendor/bundle
source 'https://rubygems.org'
gem 'susy'
gem 'compass'
gem 'breakpoint'
gem 'css_parser'
@paolodina
paolodina / gist:b98c3f3a159024584e13
Last active August 29, 2015 14:01
jython 2.7b2 and flask reload - subprocess issue
# hello.py
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return "Hellox, World!"
if __name__ == '__main__':
app.debug = True # <------ removing this everything works fine
@paolodina
paolodina / gist:2374900b94d841602339
Last active August 29, 2015 14:01
java native runtime - jython exception (trunk @d664624)
import: trying org.python.modules.posix.PosixModule as builtin modules in SysPathJavaLoader
import: 'posix' as org.python.modules.posix.PosixModule in builtin modules
Failed to load native POSIX impl; falling back on Java impl. Stacktrace follows.
java.lang.NoClassDefFoundError: Could not initialize class jnr.posix.POSIXFactory$LinuxLibCProvider$SingletonHolder
at jnr.posix.POSIXFactory$LinuxLibCProvider.getLibC(POSIXFactory.java:123)
at jnr.posix.BaseNativePOSIX.<init>(BaseNativePOSIX.java:34)
at jnr.posix.LinuxPOSIX.<init>(LinuxPOSIX.java:20)
at jnr.posix.POSIXFactory.loadLinuxPOSIX(POSIXFactory.java:81)
at jnr.posix.POSIXFactory.loadPOSIX(POSIXFactory.java:42)
at jnr.posix.LazyPOSIX.loadPOSIX(LazyPOSIX.java:33)
@paolodina
paolodina / gist:83e5528a69606225bf35
Last active August 29, 2015 14:02
jython 2.7b3 error
.....
previous output...
.....
Searching for itsdangerous>=0.21
Reading https://pypi.python.org/simple/itsdangerous/
Best match: itsdangerous 0.24
Downloading https://pypi.python.org/packages/source/i/itsdangerous/itsdangerous-0.24.tar.gz#md5=a3d55aa79369aef5345c036a8a26307f
Traceback (most recent call last):
File "setup.py", line 5, in <module>
@paolodina
paolodina / gist:6ec354784ed3c0e1a250
Created June 2, 2014 03:10
tomcat/fireside exception
HTTP Status 500 - org/python/core/PyProxy : Unsupported major.minor version 51.0 (unable to load class org.python.core.PyProxy) (unable to load class org.python.tools.fireside.servlet.WSGIServlet)
type Exception report
message org/python/core/PyProxy : Unsupported major.minor version 51.0 (unable to load class org.python.core.PyProxy) (unable to load class org.python.tools.fireside.servlet.WSGIServlet)
description The server encountered an internal error that prevented it from fulfilling this request.
exception
@paolodina
paolodina / gist:d2ad9299f8cf0709bcdf
Created June 7, 2014 11:38
xfce4-indicator-plugin No indicators
xubuntu-14.04 - After the os upgrade the indicator plugin shows No indicators.
Solved renaming ~/.config/xfce4/xfconf/xfce-perchannel-xml to xfce4-panel.xml.broken and restarting.
Here follows the diff:
$ diff -u xfce4-panel.xml xfce4-panel.xml.broken
--- xfce4-panel.xml 2014-06-07 13:02:49.141148155 +0200
+++ xfce4-panel.xml.broken 2014-06-07 12:47:38.580857591 +0200
@@ -1,18 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
@paolodina
paolodina / SassMeister-input-HTML.html
Last active August 29, 2015 14:02
Generated by SassMeister.com. Gist shared, don't delete.
<pre>
// Firefox 30.0 Linux
html {
font-size: 93.75%;
-webkit-text-size-adjust: 100%;
}
</pre>
@paolodina
paolodina / SassMeister-input-HTML.html
Last active August 29, 2015 14:02
Sass typography and vertical rhythm example
<!--
http://sassmeister.com/gist/680859146a5a951c19d5
http://browsershots.org/http://paolo.php3.it/paolo/tipo-1/
http://www.browserstack.com/screenshots/9d960023f026c09729729eb067721d845c3829a7
Live example
http://paolo.php3.it/paolo/typo-1/
-->
<main class="va-debug">
@paolodina
paolodina / SassMeister-input-HTML.html
Last active August 29, 2015 14:02
Generated by SassMeister.com. Gist shared, don't delete.
<!--
http://sassmeister.com/gist/680859146a5a951c19d5
-->
<main class="va-debug">
<p class="note">Rhythm OK on Firefox (v. 30 Linux), KO Chrome (v. 35 Linux).</p>
<h1>foobar</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqu