Skip to content

Instantly share code, notes, and snippets.

View vinicius73's full-sized avatar
🤓
"Those who cannot acknowledge themselves, will eventually fail."

Vinicius Reis vinicius73

🤓
"Those who cannot acknowledge themselves, will eventually fail."
View GitHub Profile
@vinicius73
vinicius73 / Cargo.toml
Created October 18, 2023 12:56 — forked from vchernetskyi993/Cargo.toml
Rust - Single testcontainer for multiple test functions
[package]
name = "testcontainers-sample"
version = "0.1.0"
edition = "2021"
[dev-dependencies]
async_once = "0.2.6"
aws-sdk-s3 = "0.28.0"
ctor = "0.2.4"
lazy_static = "1.4.0"
@vinicius73
vinicius73 / generate-ssh.sh
Last active March 30, 2023 04:25
Generate a SSH Key and encrypt it with gpg
#!/bin/bash
set -eu
DIR='./files/ssh'
OUTPUT_FILE='./files/ssh.tar.gz'
while getopts do: flag
do
case "${flag}" in
@vinicius73
vinicius73 / .dockerignore
Last active November 12, 2022 03:11
Node APP - Docker Build
/.vscode
/.git
/devops
/node_modules
/coverage
/devops
/dist
/tests
/assets
.editorconfig
@vinicius73
vinicius73 / nginx.conf
Last active August 26, 2022 23:51
Example of Nginx Front and API
upstream api {
server 127.0.0.1:3000 max_fails=0;
}
server {
listen 80;
listen [::]:80;
server_name dominio-aqui;
server {
listen 80;
listen [::]:80;
server_name api.x.app;
rewrite_log on;
# security
# include shared.d/security.conf;
@vinicius73
vinicius73 / .prettierignore
Last active May 23, 2022 14:51
prettierrc
.vscode/
.yarn/
dist/
coverage/
public/
@vinicius73
vinicius73 / .eslintignore
Created April 20, 2022 14:53
Eslint + Prettier + Vue v2
/.yarn/**
/dist/**
/node_modules/**
@vinicius73
vinicius73 / acm.tf
Created March 5, 2022 13:55
Terraform + Cloudfront Static file CDN
# https://docs.aws.amazon.com/pt_br/acm/latest/userguide/acm-regions.html
resource "aws_acm_certificate" "this" {
provider = aws.virginia # need to be created at virginia (cloudfront bizarre)
domain_name = local.host
subject_alternative_names = local.alias
validation_method = "DNS"
lifecycle {
create_before_destroy = true
@vinicius73
vinicius73 / .dockerignore
Last active February 22, 2022 14:42
Vue Caddy server
node_modules
dist
infra
.tmp
# Yarn
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
@vinicius73
vinicius73 / Caddyfile
Created November 12, 2021 15:06
Caddy SPA Docker Build
{
admin off
log {
format json
}
}
:80 {
try_files {path} /
header /assets/img/* Cache-Control max-age=31536000