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
PagSeguro.configure do |config| | |
configuration = Rails.application.config_for(:pagseguro) | |
config.email = configuration['email'] | |
config.token = configuration['token'] | |
config.environment = configuration['environment'] | |
config.encoding = configuration['encoding'] | |
end |
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 video https://www.youtube.com/watch?v=7F3v0BbIkfc | |
LADO EMOCIONAL (DIREITO) | |
1. Seguimento de clientes | |
1.1. Qual é seu público, seguimentado | |
1.2. Para quem estou criando valor? | |
1.3. Quem são meus principais clientes? | |
1.4. Posso agrupá-los e diferenciá-los entre si? |
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
# From one of the official ruby images | |
FROM ruby:2.4.3 | |
LABEL [email protected] | |
# Using same user name and id is important to keep same permission between container and local machine | |
ARG USER | |
ARG UID | |
ARG RAILS_ENV | |
ARG APP_PATH=/var/www |
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
# include this partial inside your form | |
= f.fields_for :translations do |t| | |
= t.hidden_field :id | |
= t.text_field :locale, readonly: true, label: t('label.locale') | |
= t.text_field :name, required: true, label: t('label.name') | |
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
APP_PATH=/var/www | |
MYSQL_ROOT_PASSWORD=root | |
MYSQL_DATABASE=development | |
MYSQL_USER=user | |
MYSQL_PASSWORD=pass |
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
# Configuration | |
git config user.name "My Name" | |
git config user.email "[email protected]" | |
# Initialize a git repository | |
git init | |
# Add all files to be commited | |
git add . |
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
jdk.certpath.disabledAlgorithms=MD2, RSA keySize < 1024 | |
jdk.tls.disabledAlgorithms=SSLv3, RC4, DH keySize < 768 | |
https://stackoverflow.com/questions/14149545/java-security-cert-certificateexception-certificates-does-not-conform-to-algori# |
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
<?php | |
/** | |
* | |
* Install composer | |
* curl -sS https://getcomposer.org/installer | php | |
* | |
* Download AWS SDK | |
* php composer.phar require aws/aws-sdk-php | |
* | |
* References: |
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
# you may use nginx with real ip module | |
server { | |
# your host or vpc cidr_block or the docker gateway address ip | |
set_real_ip_from 10.0.0.0/24; | |
real_ip_header X-Forwarded-For; | |
location ~ \.php$ { | |
# you should pass the header X-Forwarded-For with the real ip from frontend, the AWS ELB/ALB pass by default | |
fastcgi_param REMOTE_ADDR $http_x_forwarded_for; |
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
@Component | |
public class Beans { | |
@Bean @RequestScope(proxyMode = ScopedProxyMode.TARGET_CLASS) | |
public WebDriver webDriver() { | |
ChromeOptions options = new ChromeOptions() | |
.addArguments("--no-sandbox") | |
.setHeadless(true); | |
ChromeDriver driver = new ChromeDriver(options); |