Skip to content

Instantly share code, notes, and snippets.

View luiz158's full-sized avatar

Luiz Augusto luiz158

  • Curitba/PR - Brasil
View GitHub Profile
import os
org = "com.example"
name = "app_name"
cmd = "flutter create --org " + org + " --project-name " + name + " .";
packages = [
"cached_network_image",
"collection",
"copy_with_extension",
"equatable",
@luiz158
luiz158 / bovespa_intraday.py
Created September 11, 2021 19:48 — forked from maurobaraldi/bovespa_intraday.py
Cotações da Bovespa Intraday
#!/usr/bin/env python
from datetime import datetime
from json import loads
from time import gmtime, mktime, strptime
# LevelDict é um wrapper usando dicionário para LevelDB
# https://github.com/maurobaraldi/leveldict
from leveldict import LevelJsonDict
from requests import get
@luiz158
luiz158 / .gitattributes
Created November 19, 2017 21:58 — forked from cedricwalter/.gitattributes
GIT recommended settings
# Set default behaviour, in case users don't have core.autocrlf set.
* text=auto
# Explicitly declare text files we want to always be normalized and converted
# to native line endings on checkout.
*.java text
*.xml text
*.xsl text
*.csv text
*.conf text
@luiz158
luiz158 / sublime-install.sh
Created May 30, 2017 19:46 — forked from welshstew/sublime-install.sh
sublime text 3 install
#!/bin/sh
SHORTCUT="[Desktop Entry]
Name=Sublime Text 3
Comment=Edit text files
Exec=/usr/local/sublime-text-3/sublime_text
Icon=/usr/local/sublime-text-3/Icon/128x128/sublime_text.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Utility;TextEditor;"
@luiz158
luiz158 / sublime.setup.sh
Created May 30, 2017 19:42 — forked from smutek/sublime.setup.sh
Setup Sublime Text 3 on Fedora 25 - Assumes Sublime has been downloaded and moved to /opt/
SHORTCUT="[Desktop Entry]
Name=Sublime Text 3
Comment=Edit text files
Exec=/opt/sublime-text-3/sublime_text
Icon=/opt/sublime-text-3/Icon/128x128/sublime-text.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Utility;TextEditor;"
@luiz158
luiz158 / install_sublime_text.sh
Created May 30, 2017 01:50 — forked from welshstew/install_sublime_text.sh
sublime text 3 - fedora 25 install
#!/bin/sh
SHORTCUT="[Desktop Entry]
Name=Sublime Text 3
Comment=Edit text files
Exec=/usr/local/sublime-text-3/sublime_text
Icon=/usr/local/sublime-text-3/Icon/128x128/sublime_text.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Utility;TextEditor;"
@luiz158
luiz158 / eclipse.ini
Created March 24, 2017 14:33 — forked from geowarin/eclipse.ini
My eclipse.ini JVM settings.
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Declipse.p2.unsignedPolicy=allow
-Xss4m
-XX:PermSize=128m
-XX:MaxPermSize=384m
# Number of method invocations/branches before compiling
#-XX:CompileThreshold=5
-XX:CompileThreshold=1500
-XX:MaxGCPauseMillis=10
@luiz158
luiz158 / vraptor-linkto-fix-LINUX.sh
Created December 18, 2015 18:58 — forked from rponte/vraptor-linkto-fix-LINUX.sh
VRaptor LinkTo Fix on Linux and MacOSX
find -name "*.jsp" | xargs sed -i "s:\\]\[:,:g" && find -name "*.jsp" | xargs sed -i "s:\(linkTo\[[a-zA-Z0-9]*\]\.[a-zA-Z0-9]*\)\[\(.*\)\]:\1(\2):"
max_connections = 1500 # (change requires restart)
shared_buffers = 12000MB # min 128kB, based on 80GB RAM DB
temp_buffers = 8MB # min 800kB
work_mem = 64MB # min 64kB
maintenance_work_mem = 512MB # min 1MB
wal_level = hot_standby # minimal, archive, or hot_standby
checkpoint_segments = 64 # in logfile segments, min 1, 16MB each
checkpoint_completion_target = 0.9 # checkpoint target duration, 0.0 - 1.0
max_wal_senders = 6 # max number of walsender processes
@luiz158
luiz158 / gist:4107516
Created November 18, 2012 21:11 — forked from jeffbicca/gist:2361046
Migração Demoiselle 1 para Demoiselle 2
Eis aqui as experiências que tive até o momento, ao migrar algumas funcionalidades de um sistema, desenvolvido usando
Demoiselle 1 com JSF 1.2, RichFaces 3.3, JPA para Demoiselle 2, JSF 2, RichFaces 4 e J2EE 6.
*** XHTML:
- Mudar xmlns do a4j para xmlns:a4j="http://richfaces.org/a4j"
- Mudar tag "<body>" para "<h:body>".
- Mudar tag "<head> para "<h:head>".
- Retirar o prefixo "on" dos eventos atribuidos na propriedade "event" das tags ajax.
Ex.: JSF1: "<a4j:support event="onchange">", JSF2: "<a4j:ajax event="change">"