Skip to content

Instantly share code, notes, and snippets.

View cristiano-linvix's full-sized avatar
💻
Coding!

Cristiano Cruz cristiano-linvix

💻
Coding!
View GitHub Profile
@cristiano-linvix
cristiano-linvix / automatted_deploy_with_git_actions_aws_docker.md
Created March 3, 2024 01:48 — forked from JeanPoffo/automatted_deploy_with_git_actions_aws_docker.md
Criando um deploy automatizado com GitHub Actions, AWS e Docker

Criando um deploy automatizado com GitHub Actions, AWS e Docker

AWS IAM

Introdução

O IAM faz o gerenciamento da parte de identificação e acesso aos serviços da AWS. Para o correto funcionamento de todas as funcionalidades do deploy, vamos criar duas funções do IAM, uma para o CodeDeploy acessar o EC2, e outra para o EC2 utilizar o SSM (que concede acesso ao System Manager) e possibilitar a comunicação com o CodeDeploy. Pot último, vamos criar um usuário do IAM, para o GitHub acessar posteriormente o CodeDeploy.

Função para o CodeDeploy

@cristiano-linvix
cristiano-linvix / arch_cheatsheet.txt
Created November 3, 2022 14:10 — forked from yufengwng/arch_cheatsheet.txt
Arch Linux Commands Cheatsheet
pacman
======
view logs: /var/log/pacman.log
update system
# pacman -Syu
list installed packages
# pacman -Q
@cristiano-linvix
cristiano-linvix / react_native_snippets.json
Created July 29, 2020 12:20
React Native Snippets for VSCode
{
"reactNativeStateFulComponent": {
"prefix": "rnc",
"body": [
"import React, { Component } from 'react';",
"",
"import { View } from 'react-native';",
"",
"// import { Container } from './styles';",
"",
@cristiano-linvix
cristiano-linvix / validation.php
Created June 18, 2020 13:15
Tradução Lumen Framework PT-BR
<?php
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
@cristiano-linvix
cristiano-linvix / firebase_storage_multi_file_upload.js
Created June 4, 2020 19:05 — forked from asciimike/firebase_storage_multi_file_upload.js
Upload multiple files transactionally in Firebase Storage
// set it up
firebase.storage().ref().constructor.prototype.putFiles = function(files) {
var ref = this;
return Promise.all(files.map(function(file) {
return ref.child(file.name).put(file);
}));
}
// use it!
firebase.storage().ref().putFiles(files).then(function(metadatas) {