Skip to content

Instantly share code, notes, and snippets.

Danilo Delponte danilodelponte

Block or report user

Report or block danilodelponte

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@danilodelponte
danilodelponte / values_11477.txt
Created Jun 21, 2016
Valores do campo crescimento: funcionarios
View values_11477.txt
["10"
"0"
"100%"
"300"
"15%`"
"1"
"20"
"22%"
"5%"
"50%"
@danilodelponte
danilodelponte / values_11494.txt
Created Jun 21, 2016
Valores do campo Qual o tamanho da empresa em que você trabalha?
View values_11494.txt
["5"
"5000"
"15"
"03"
"50"
"DESEMPREGADA"
"0"
"40"
"100"
"500"
@danilodelponte
danilodelponte / receita_bruta_values.txt
Created Jun 21, 2016
Valores do campo receita bruta
View receita_bruta_values.txt
["10800"
"2,5mi"
"800mil"
"180000,00"
"37.000,00"
"10 "
"135"
"Não aplicável"
"1080000,00"
"8 milhões "
@danilodelponte
danilodelponte / genero_values.txt
Created Jun 21, 2016
Respostas não mapeáveis do campo gênero
View genero_values.txt
"d"
"emprendedor"
"comercio"
"PEÇAS"
"Varejo"
"l"
"Consultoria"
"serviços"
"Têxtil"
"alimenticio"
@danilodelponte
danilodelponte / delete_scenario.rb
Created Jun 16, 2016
Delete scenario Segmentation SQL
View delete_scenario.rb
# Criar um esquema que é utilizado para gerar as tabelas e as relações e mantido no serviço para referência
# Ao receber uma função delete entidade Lead, apaga quem belongs to lead
# Ex:
{
entities:
{
lead: {},
campaign: {}
lifecycle_event: { belongs_to: 'lead' },
View rubinius sidekiq error
bundle exec sidekiq -r ./runner.rb --config=config/sidekiq.yml -v [s11-mc-statistics]
Error trying to compile /opt/boxen/rbenv/versions/rbx-2.2.1/gems/gems/sidekiq-3.0.0/lib/sidekiq/manager.rb
/opt/boxen/rbenv/versions/rbx-2.2.1/runtime/gems/rubinius-compiler-2.0.4/lib/rubinius/compiler/compiler.rbc:13:in `compiler_error'
/opt/boxen/rbenv/versions/rbx-2.2.1/runtime/gems/rubinius-compiler-2.0.4/lib/rubinius/compiler/compiler.rbc:95:in `compile'
kernel/delta/code_loader.rb:263:in `compile_file'
kernel/delta/code_loader.rb:236:in `load_file'
kernel/common/code_loader.rb:128:in `require'
kernel/common/code_loader.rb:237:in `require'
kernel/common/kernel.rb:685:in `require'
/opt/boxen/rbenv/versions/rbx-2.2.1/gems/gems/sidekiq-3.0.0/lib/sidekiq/cli.rb:146:in `load_celluloid'
@danilodelponte
danilodelponte / gist:9794271
Last active Aug 29, 2015
notify error test
View gist:9794271
body = '{"email":"danilo+tag1@resultadosdigitais.com.br","envelope_id":"53333e96248a0ab429000001","timestamp":1395868631,"ip":"66.249.82.135","useragent":"Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7 (via ggpht.com GoogleImageProxy)","event":"open","target_id":"8492"}' + "\r\n"
if body.include?('envelope_id')
hashes = []
body.split("\n").each do |json|
#json = StringCleaner.clean_content(json)
hashes.push JSON.parse(json) if json.include?('envelope_id')
end
end
View log notify error
2014-03-26T20:56:38.324015+00:00 app[web.1]: 75.126.113.53 - - [26/Mar/2014 20:56:38] "POST /sendgrid HTTP/1.1" 500 30 0.0033
2014-03-26T20:56:38.492412+00:00 app[web.1]: ">> POST {}"
2014-03-26T20:56:38.492522+00:00 app[web.1]: ">> Body {\"email\":\"danilo+tag1@resultadosdigitais.com.br\",\"smtp-id\":\"<145002d978e.4054.13938e8@localhost.localdomain>\",\"timestamp\":1395867359,\"envelope_id\":\"53333e96248a0ab429000001\",\"sg_message_id\":\"145002d978e.4054.13938e8.mf166.9861.53333EDF1.0\",\"event\":\"processed\",\"target_id\":\"8492\"}\r\n"
2014-03-26T20:56:38.492983+00:00 app[web.1]: NoMethodError - undefined method `match' for nil:NilClass:
2014-03-26T20:56:38.492983+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/bundler/gems/mongoid-5fcb8ddd0ac7/lib/mongoid/sessions/mongo_uri.rb:49:in `initialize'
2014-03-26T20:56:38.492983+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/bundler/gems/mongoid-5fcb8ddd0ac7/lib/mongoid/sessions/factory.rb:106:in `new'
2014-03-26T20:56:38.492983+00:00 app[web.1]: /app/ve
You can’t perform that action at this time.