Skip to content

Instantly share code, notes, and snippets.

View dcorrea777's full-sized avatar
🐘

Danilo Correa dcorrea777

🐘
View GitHub Profile
@dcorrea777
dcorrea777 / readme.md
Created May 14, 2022 01:39
example-terraform-cloudfront-lambda
default_cache_behavior {
    lambda_function_association {
        event_type   = "origin-response"
        lambda_arn   = "${aws_lambda_function.sso_cloudfront_trigger.arn}:${aws_lambda_function.sso_cloudfront_trigger.version}"
        include_body = false
    }
}   

resource "aws_lambda_function" "sso_cloudfront_trigger" {
@dcorrea777
dcorrea777 / git.md
Last active April 25, 2022 12:17
Filtrar e remover arquivos de commits anteriores.

Remover arquivos de commits anteriores

Nesse exemplo estou filtrando pelo arquivo composer.lock e removendo do meu git

git filter-branch \
    --force \
    --index-filter 'git rm --cached --ignore-unmatch ./composer.lock' \
 --prune-empty \
@dcorrea777
dcorrea777 / dynamodb-stream-example.php
Created March 16, 2022 18:25
Dynamodb Stream example php
<?php
declare(strict_types=1);
use Aws\DynamoDb\Exception\DynamoDbException;
use Aws\DynamoDbStreams\DynamoDbStreamsClient;
$container = require_once __DIR__ . '/bootstrap.php';
$config = $container->get('dynamodb');
$d = new DynamoDbStreamsClient($config);
@dcorrea777
dcorrea777 / ssh-keygen.md
Last active October 2, 2021 20:24
ssh-keygen

Como gerar sua chave ssh

ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "my@mail.com"
@dcorrea777
dcorrea777 / my-helpers.md
Last active April 30, 2021 15:09
--my-helpers

--my-helpers

Esse gist é uma cola rápida de alguns dos aplicativos que mais utilizo no meu terminal.

<?php
declare(strict_types = 1);
namespace App\Kafka;
use RdKafka;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
@dcorrea777
dcorrea777 / tmux-atalhos.md
Created April 22, 2020 12:01 — forked from aalvesjr/tmux-atalhos.md
[TMUX] Atalhos

quando ler <Prefix> será o padrão Ctrl + b

Window

  • <Prefix> c => para criar uma nova 'window'
  • <Prefix> % => para dividir uma 'window' verticalmente
  • <Prefix> " => para dividir uma 'window' horizontalmente
  • <Prefix> & => para fechar uma 'window'
  • <Prefix> . => move a window para algum indice ainda não utilizado
  • <Prefix> 0 a 9 => abre a 'window' com o numero digitado
  • \ w => abre a 'window' a partir de uma lista
@dcorrea777
dcorrea777 / sublime.settings.md
Last active February 26, 2020 00:17
Configuração do meu sublime

Configurações do sublime

Alguns dos pacotes que uso no sublime

  • Material Theme
  • Material Theme-Appbar
  • A File Icon
  • Fira Code
  • Emmet
  • EditorConfig
http://www.oreilly.com/data/free/files/2014-data-science-salary-survey.pdf
http://www.oreilly.com/data/free/files/2015-data-science-salary-survey.pdf
http://www.oreilly.com/data/free/files/Data_Analytics_in_Sports.pdf
http://www.oreilly.com/data/free/files/advancing-procurement-analytics.pdf
http://www.oreilly.com/data/free/files/ai-and-medicine.pdf
http://www.oreilly.com/data/free/files/analyzing-data-in-the-internet-of-things.pdf
http://www.oreilly.com/data/free/files/analyzing-the-analyzers.pdf
http://www.oreilly.com/data/free/files/architecting-data-lakes.pdf
http://www.oreilly.com/data/free/files/being-a-data-skeptic.pdf
http://www.oreilly.com/data/free/files/big-data-analytics-emerging-architecture.pdf