This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# George Ornbo (shapeshed) http://shapeshed.com | |
# License - http://unlicense.org | |
# From: https://github.com/shapeshed/dotfiles/blob/master/bin/zsh_history_fix | |
# | |
# Fixes a corrupt .zsh_history file | |
mv ~/.zsh_history ~/.zsh_history_bad | |
strings .zsh_history_bad > .zsh_history | |
fc -R ~/.zsh_history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on http://flask.pocoo.org/snippets/117/ | |
@manager.command | |
def list_routes(): | |
import urllib | |
from flask import url_for | |
output = [] | |
for rule in manager.app.url_map.iter_rules(): | |
print(rule.endpoint) | |
# print(url_for(rule.endpoint)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Resumo do Singularity University Global Summit 2017 em São Francisco, Califórna. | |
O evento trata sobre o futuro dos negócios, da tecnologia e da humanidade. | |
Para profundas reflexões. | |
Singularity University Global Summit 2017 - resumo do primeito dia em 10 itens: | |
1. São 1.600 participantes do mundo inteiro. 70% são estrangeiros. A maior delegação é do Brasil. | |
2. Em 2030, mil dólares vão comprar poder computacional equivalente ao cérebro humano. Em 2050, mil dólares vão comprar poder computacional equivalente a todos os cérebros humanos juntos. | |
3. Em 2010 1.8 Bilhões de pessoas estavam conectadas à internet. Em 2017 são 3 Bi. Entre 2022 e 2025 será o mundo inteiro. Com mais conexões, mais oportunidades, mais gênios. | |
4. As próximas duas décadas serão diferentes de qualquer coisa que vivemos nos últimos cem anos. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> Gerar uma aplicação básica com Symfony Framework, um model/tabela e um módulo de CRUD para essa tabela (SEM NENHUMA LINHA DE CÓDIGO! - EM 10 PASSOS!!) | |
-------------------------------------------------------------------------------- | |
# 01 - Instala o Symfony Installer na máquina - From: http://symfony.com/doc/current/book/installation.html | |
sudo curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony | |
sudo chmod a+x /usr/local/bin/symfony | |
-------------------------------------------------------------------------------- | |
# 02 - Cria o projeto base com Symfony (última versão disponível no instalador) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Xdebug settings - from http://akrabat.com/my-xdebug-configuration/ | |
; var_dump() displays everything, including filename and line number | |
xdebug.overload_var_dump = 2 | |
xdebug.var_display_max_children = -1 | |
xdebug.var_display_max_data = -1 | |
xdebug.var_display_max_depth = -1 | |
; don't supress errors | |
xdebug.scream = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Listas (a maioria não tem vagas interessantes para TI, mas seguem pra quem interessar) | |
http://br.groups.yahoo.com/group/emprego-ce/ | |
http://br.groups.yahoo.com/group/emprego-ce/ | |
http://br.groups.yahoo.com/group/empregos_ce/ | |
http://br.groups.yahoo.com/group/mobilerhvagas/ | |
http://br.groups.yahoo.com/group/php-empregos/ | |
http://br.groups.yahoo.com/group/recrutvagasce/ | |
http://br.groups.yahoo.com/group/sotijobs/ | |
http://br.groups.yahoo.com/group/vagas_fortaleza/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--CONVERTE uma data passada pra formato ANSI/string | |
select convert(varchar(8), getdate(), 108) | |
ex.: | |
--seleciona os registros onde a hora de dataout = '00:00:00' | |
select * from mot_0000_estadia | |
where convert(varchar(8), dataout, 108) = '00:00:00' | |