Skip to content

Instantly share code, notes, and snippets.

View fernandojunior's full-sized avatar

Fernando Felix fernandojunior

  • Brazil
View GitHub Profile
#install pip
sudo apt-get install python-pip
#
pip install SQLAlchemy
@fernandojunior
fernandojunior / gist:cf5a5dc8a4dbc161416d
Last active December 30, 2015 06:41
python mondrian
https://github.com/may-day/olap
http://bkanuka.com/articles/python-connect-to-olap/
http://mondrian.pentaho.com/documentation/installation.php
https://github.com/olap4j/olap4j
http://stackoverflow.com/questions/3793215/query-olap-mondrian-mdx-xmla-with-a-python-interface
https://research.cip.cgiar.org/docs/mondrian/Tutorial_Mondrian.pdf
http://lists.pentaho.org/pipermail/mondrian/2014-October/004999.html
http://maxrohde.com/2011/04/27/large-war-file-cannot-be-deployed-in-tomcat-7/
http://pentaho.dlpage.phi-integration.com/mondrian/mysql-foodmart-database
https://github.com/ThoughtWorksInc/mondrian-xmla-spike
https://stormpath.com/blog/part-one-flask-authentication-problem/
http://flask-stormpath.readthedocs.org/en/latest/
http://blog.miguelgrinberg.com/post/restful-authentication-with-flask
https://github.com/miguelgrinberg/Flask-HTTPAuth
https://flask-login.readthedocs.org/en/latest/
http://pythonhosted.org/Flask-OAuth/
http://stackoverflow.com/questions/17512572/rauth-flask-how-to-login-via-twitter
http://www.shea.io/facebook-authentication-for-flask-apps/
https://github.com/lingthio/Flask-User
https://pythonhosted.org/Flask-CMS/
http://flask.pocoo.org/snippets/114/
http://quokkaproject.org/
http://in.pycon.org/funnel/2014/205-building-a-cms-in-flask
https://github.com/Opentaste/bombolone/
@fernandojunior
fernandojunior / gist:e3e1131cceb0a9888cf6
Created October 14, 2014 05:19
Erro ao tentar criar um novo modelo OLAP no plugin AgileBI do Pentaho Data Integration 5.0.1
org.pentaho.agilebi.modeler.ModelerException: java.lang.NullPointerException
at org.pentaho.agilebi.spoon.XulUI.<init>(XulUI.java:76)
at org.pentaho.agilebi.spoon.perspective.AgileBiModelerPerspective.createTabForModel(AgileBiModelerPerspective.java:122)
at org.pentaho.agilebi.spoon.ModelerHelper.createEmptyModel(ModelerHelper.java:660)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:329)
at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:139)
@fernandojunior
fernandojunior / gist:367360e12233ca82a1ce
Last active August 29, 2015 14:07
Shell script to install mongodb 10gen on ubuntu
#!/bin/bash
# Script based on How to install mongoDB on Ubuntu Tutorial (http://www.mkyong.com/mongodb/how-to-install-mongodb-on-ubuntu/)
# By Fernando Felix do Nascimento Junior
# become superuser
sudo su
# add mongodb 10gen package to /etc/apt/sources.list.d
touch /etc/apt/sources.list.d/mongo.list
@fernandojunior
fernandojunior / gist:17b027e3d5996721abe3
Created October 15, 2014 08:08
Scripts to install Pillow on ubuntu
#!/bin/bash
# Script to install Pillow dependencies on Ubuntu based on
# https://pillow.readthedocs.org/installation.html#linux-installation
# http://askubuntu.com/questions/507459/pil-install-in-ubuntu-14-04-1-lts
# http://stackoverflow.com/questions/2967224/gcc-error-trying-to-install-pil-in-a-python2-6-virtualenv
# By Fernando Felix do Nascimento Junior
# become superuser
sudo su
@fernandojunior
fernandojunior / gist:71d781f2947f45515b5b
Last active August 29, 2015 14:08
Online gist renders
http://gist.io/
http://www.roughdraft.io/
http://htmlpreview.github.io/
https://rawgit.com/
http://bl.ocks.org/
package org.saiku.web;
import java.net.URL;
import java.util.UUID;
import junit.framework.TestCase;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.UsernamePasswordCredentials;
import org.apache.commons.httpclient.methods.GetMethod;
@fernandojunior
fernandojunior / gist:df03b28fce24ac36c3c5
Last active August 8, 2018 01:52
Saiku rest api over Pentaho 5.0.1
// http://demo.analytical-labs.com/saiku/serverdocs/rest.html
[{
"url": "http://localhost:8080/pentaho/plugin/saiku/api/admin/discover",
"type": "get",
"description": "Returns the datasources available."
},
{
"url": "http://localhost:8080/pentaho/plugin/saiku/api/admin/repository?type=saiku&path=/home/admin/001.saiku",
"type": "get",