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
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() |
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
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("/") |
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
sudo apt-get install ascii2uni | |
file=$(cat log | ascii2uni -a U -q) | |
echo -e $file |
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
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/ | |
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
tar -xvf archive.tar.gz | |
#Subir o banco no docker com bacup do Atlas: | |
docker run --rm -it -v $PWD:/data/db -p 27017:27017 mongo:3.6 | |
docker run --rm -it -v $PWD:/data/db --memory="5g" --memory-swap="2g" --cpus="2.0" -p 27017:27017 mongo:3.6 |
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
#!/bin/bash | |
#_______________________________________________________________________________ | |
#__ | |
#__ collect.sh | |
#__ | |
#__ Faz a coleta de network provindo do sar | |
#__ | |
#__ autor : Afonso Rodrigues | |
#__ data : 27/08/2019 | |
#__ |
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
#!/bin/bash | |
docker container rm -f $(docker container ls -qa) | |
docker image rm -f $(docker image ls -q) | |
docker volume rm -f $(docker volume ls -q) |
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
docker run --rm \ | |
-p "8300:8300" \ | |
-p "8400:8400" \ | |
-p "8500:8500" \ | |
-p "8600:53/udp" \ | |
consul \ | |
agent -dev -client 0.0.0.0 |
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
10 3 * * * root /usr/bin/docker rm $(docker ps -aq) | |
20 3 * * * root /usr/bin/docker rmi -f $(docker images -qa) | |
1 1 * * * cat /dev/null > /var/log/awslogs.log >/dev/null 2>&1 | |
1 1 * * * cat /dev/null > /var/log/awslogs.log.1 >/dev/null 2>&1 |
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 pyspark.sql import SparkSession | |
from operator import add | |
import re | |
print("Okay Google.") | |
spark = SparkSession\ | |
.builder\ | |
.appName("CountUniqueWords")\ | |
.getOrCreate() |