Skip to content

Instantly share code, notes, and snippets.

View medeirosthiago's full-sized avatar
🍫
Só quero chocolate

Thiago Medeiros medeirosthiago

🍫
Só quero chocolate
View GitHub Profile
@medeirosthiago
medeirosthiago / colors-matplotlib.py
Created April 20, 2016 17:57
Colors for matplotlib
import matplotlib
for name, hex in matplotlib.colors.cnames.iteritems():
print(name, hex)
@medeirosthiago
medeirosthiago / pentaho-logfiles.md
Last active April 9, 2016 17:45
Config for enable log files for Mondrian and Reporting Log

Allowing reporting log

tomcat/webapps/pentaho/WEB-INF/classes/log4.xml -> add to the end

<!-- ========================================================= -->
<!-- Special Log File specifically for Reporting log           -->
<!-- ========================================================= -->
@medeirosthiago
medeirosthiago / pentaho-config.md
Created April 9, 2016 16:53
Some configs for Pentaho

Changing ports

tomcat/conf/server.xml

<Conncetor URIEncoding="UTF-8" port="8080" protocol="HTTP/1.1"
           connectionTimeout="20000"
           redirectPort="8443">
@medeirosthiago
medeirosthiago / secret_gen.py
Created February 3, 2016 10:56 — forked from henriquebastos/secret_gen.py
SECRET_KEY generator.
#!/usr/bin/env python
"""
Django SECRET_KEY generator.
"""
from django.utils.crypto import get_random_string
chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
print(get_random_string(50, chars))
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.