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
HTTP status code symbols for Rails | |
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings. | |
Status Code Symbol | |
1xx Informational | |
100 :continue | |
101 :switching_protocols | |
102 :processing |
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
ROM buildpack-deps:stretch | |
RUN apt-get update \ | |
&& apt-get install -y --no-install-recommends \ | |
bzip2 \ | |
ca-certificates \ | |
libffi-dev \ | |
libgdbm3 \ | |
libssl-dev \ | |
libyaml-dev \ |
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 1 column, instead of 2. in line 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
CÛdigo do Produto Nome do Produto NCM CEST CFOP CSOSN COFINS PIS Origem Unidade PreÁo de Venda | |
900005253 #CART MASC 19081 CAFE 42023200 00.000.00 5102 101 4 4 2 - Importado UND R$ 34,62 | |
900005219 #CART MASC 19081 PRETO 42023200 00.000.00 5102 101 4 4 2 - Importado UND R$ 34,62 | |
900004953 #CART MASC 19089 CAFE 42023200 00.000.00 5102 101 4 4 2 - Importado UND R$ 64,12 | |
900004919 #CART MASC 19089 PRETO 42023200 00.000.00 5102 101 4 4 2 - Importado UND R$ 64,12 | |
901901553 #CARTEIRA PCOURO CAFE 42023200 00.000.00 5102 101 4 4 2 - Importado UND R$ 37,67 | |
901906753 #CARTEIRA PCOURO CAFE 42023200 00.000.00 5102 101 4 4 2 - Importado UND R$ 50,09 | |
901901519 #CARTEIRA PCOURO PRETO 42023200 00.000.00 5102 101 4 4 2 - Importado UND R$ 37,67 | |
901906719 #CARTEIRA PCOURO PRETO 42023200 00.000.00 5102 101 4 4 2 - Importado UND R$ 50,09 | |
226007001 &BOLSA COURO XCBD60-070-01 42022100 00.000.00 5102 101 4 4 2 - Importado UND R$ 151,34 |
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
Dado o projeto principal no gitlab | |
e um projeto qualquer no github | |
1- criar uma chave ssh publica com usuario git aonde o gitlab está instalado. | |
$ su git | |
e depois seguir https://help.github.com/articles/generating-ssh-keys/ | |
PS: Não adicionar passprhase |
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
eu | |
18:21 | |
teste | |
ta escutando ? | |
caiu | |
criar outro opener | |
e instalar | |
opener_cookies | |
criar a jar antes | |
na hora de chamar o http_response passar a jar de cookie também |
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
ag 'publish_notification' -0 -l $1 | xargs -0 sed -i '/publish_notification/d' |
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
resuminho | |
- leitura e escrita diferentes | |
- componentes: | |
- Os comandos chegam por rotas/controllers que chamam as classes que executam algum comando, ex CreateAccountBanck.rb | |
- Passam pelo Agregador que faz algumas validações de negocio, ex: se a operação for saque o saque é disponivel | |
- Guarda o comando na EventStore | |
- Dependendo da consistêmncia é guardado no banco e atualizado nas projections (um cache por ex) | |
- Existem as sagas, que são um caso a parte para integrações externas por exemplo | |
- Podemos mostrar os dados de varias formas (podemos chamar de reports) são entidades que são mapeadas para mostrar | |
o estado atual desejado, ex Customer vai mostrar nome email etc |
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
https://hipsters.tech/elixir-a-linguagem-hipster-hipsters-48/ | |
http://www.akitaonrails.com/2013/12/23/solucoes-para-um-mundo-assincrono-concorrente | |
https://elixir-lang.org/learning.html | |
https://elixirschool.com/pt/ | |
https://imasters.com.br/linguagens/a-maldicao-da-linguagem-e-o-elixir/?trace=1519021197&source=single | |
https://imasters.com.br/desenvolvimento/alem-da-programacao-funcional-com-elixir-e-erlang/?trace=1519021197&source=single | |
https://www.infoq.com/br/presentations/introducao-a-elixir | |
https://github.com/sger/ElixirBooks | |
https://pragprog.com/book/elixir13/programming-elixir-1-3 | |
https://media.pragprog.com/titles/elixir/ElixirCheat.pdf |
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
#!/bin/bash | |
# remove exited containers: | |
docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v | |
# remove unused images: | |
docker images --no-trunc | grep '<none>' | awk '{ print $3 }' | xargs -r docker rmi | |
# remove unused volumes: | |
find '/var/lib/docker/volumes/' -mindepth 1 -maxdepth 1 -type d | grep -vFf <( |
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
require 'openssl' | |
require 'fileutils' | |
require 'acme-client' | |
require 'byebug' | |
ENV['SSL_ADDR'] = '2804.7f3.8481.3cf7.x.4.ip6.name' | |
ENV['APPLICATION_ENV'] = 'development' | |
puts 'Registering client' |