Skip to content

Instantly share code, notes, and snippets.

⚛️
Microservices

Afonso Rodrigues afonsoaugusto

⚛️
Microservices
View GitHub Profile
View 12factor_notes.txt
I. Base de Código
Uma base de código com rastreamento utilizando controle de revisão, muitos deploys
II. Dependências
Declare e isole as dependências
III. Configurações
Armazene as configurações no ambiente
IV. Serviços de Apoio
View Springer Text books.txt
S.No. Book Title Author Edition OpenURL
1
Fundamentals of Power Electronics
Robert W. Erickson, Dragan
Maksimovic
2nd ed.
2001 http://link.springer.com/openurl?genre=book&isbn=978-0-306-48048-5
2
Handbook of the Life Course
Jeylan T. Mortimer, Michael J.
View mssql-privileges.sql
# docker run --rm -it -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=Q3e3nrZQEBx7VmxbqhQFK7ddwg' -p 1433:1433 mcr.microsoft.com/mssql/server
create database permissions CONTAINMENT = PARTIAL;
use permissions;
CREATE USER Barry WITH PASSWORD = 'sdjklalie8rew8337!$d';
select containment,name from sys.databases;
create schema app_barry;
View Intro_to_mapreduce_udacity.md

https://classroom.udacity.com/courses/ud617

Example code

cd /home/training/udacity_training
[training@localhost udacity_training]$ head -50 data/purchases.txt | ./code/mapper.py | sort | ./code/reducer.py 

[training@localhost udacity_training]$ pwd
/home/training/udacity_training
@afonsoaugusto
afonsoaugusto / gitprint.js
Created Mar 28, 2020 — forked from beevelop/gitprint.js
Print GitHub markdown files
View gitprint.js
document.querySelector('#readme').setAttribute('style', 'position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 100; background-color: white')
document.querySelector('body').appendChild(document.querySelector('#readme'))
window.print()
@afonsoaugusto
afonsoaugusto / api.py
Created Mar 24, 2020
Example API Flask Python with APM Elastic
View api.py
import logging
from flask import Flask, make_response
from elasticapm.contrib.flask import ElasticAPM
from elasticapm.handlers.logging import LoggingHandler
app = Flask(__name__)
apm = ElasticAPM(app)
@app.route("/")
View convert_escaped_unicode_utf8.txt
sudo apt-get install ascii2uni
file=$(cat log | ascii2uni -a U -q)
echo -e $file
View clear_docker.sh
#!/bin/bash
docker container rm -f $(docker container ls -q)
docker image rm -f $(docker image ls -q)
docker volume rm -f $(docker volume ls -q)
View ExamReadliness_AWS_SolutionsArchitect-Associate.txt
https://amazon.qwiklabs.com/
Faqs:
https://aws.amazon.com/pt/ec2/faqs/
https://aws.amazon.com/pt/s3/faqs/
https://aws.amazon.com/pt/vpc/faqs/
https://aws.amazon.com/pt/route53/faqs/
https://aws.amazon.com/pt/rds/faqs/
https://aws.amazon.com/pt/sqs/faqs/
You can’t perform that action at this time.