Skip to content

Instantly share code, notes, and snippets.

View paulopatto's full-sized avatar
🎯
Focusing

Paulo Patto paulopatto

🎯
Focusing
View GitHub Profile
@paulopatto
paulopatto / WinKeys.txt
Created November 8, 2023 00:04 — forked from letsgoawaydev/WinKeys.txt
Windows Product Keys
``````````````````````````````````````````
Windows Product Keys for Getting Past Setup
Windows XP - Windows 11
Home product keys are currently not added.
THESE WILL ONLY HELP YOU GET PAST SETUP AND WILL NOT
ACTIVATE WHEN YOU CONNECT TO THE INTERNET. THESE JUST
LET YOU INSTALL WINDOWS TO YOUR HARDDISK UNACTIVATED
``````````````````````````````````````````
Home/Core TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
Home/Core (Country Specific) PVMJN-6DFY6-9CCP6-7BKTT-D3WVR
Home/Core (Single Language) 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH
Home/Core N 3KHY7-WNT83-DGQKR-F7HPR-844BM
Professional W269N-WFGWX-YVC9B-4J6C9-T83GX
Professional N MH37W-N47XK-V7XM9-C7227-GCQG9
Professional Enterprise
Professional Workstation
Enterprise NPPR9-FWDCX-D2C8J-H872K-2YT43
Enterprise N DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4
@paulopatto
paulopatto / main.tf
Created April 14, 2021 18:09 — forked from danihodovic/main.tf
Terraform - static site using S3, Cloudfront and Route53
variable "aws_region" {
default = "eu-west-1"
}
variable "domain" {
default = "my_domain"
}
provider "aws" {
region = "${var.aws_region}"
@paulopatto
paulopatto / README.txt
Created April 20, 2020 23:13
[Quarentena dados] Dado MovieLens
Summary
=======
This dataset (ml-latest-small) describes 5-star rating and free-text tagging activity from [MovieLens](http://movielens.org), a movie recommendation service. It contains 100836 ratings and 3683 tag applications across 9742 movies. These data were created by 610 users between March 29, 1996 and September 24, 2018. This dataset was generated on September 26, 2018.
Users were selected at random for inclusion. All selected users had rated at least 20 movies. No demographic information is included. Each user is represented by an id, and no other information is provided.
The data are contained in the files `links.csv`, `movies.csv`, `ratings.csv` and `tags.csv`. More details about the contents and use of all these files follows.
This is a *development* dataset. As such, it may change over time and is not an appropriate dataset for shared research results. See available *benchmark* datasets if that is your intent.
@paulopatto
paulopatto / generate-ssh-key.sh
Created April 6, 2020 00:08 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa
@paulopatto
paulopatto / scrap_fii_tickers_from_rico_dashboard.js
Last active February 29, 2020 16:02
Snippet para pegar os tickers de FII do meu dashboard na corretora Rico.com.vc
/**
* Help resources:
*
* - https://medium.com/@chuckdries/traversing-the-dom-with-filter-map-and-arrow-functions-1417d326d2bc [best way]
* - https://css-tricks.com/snippets/javascript/loop-queryselectorall-matches/
* - https://stackoverflow.com/questions/47008384/es6-filter-an-array-with-regex
* - https://rubular.com/
*/
const tickers = []
@paulopatto
paulopatto / proxy.js
Last active November 28, 2023 16:14 — forked from nakedible-p/proxy.js
Script AWS ES proxy
var AWS = require('aws-sdk');
var http = require('http');
var httpProxy = require('http-proxy');
var express = require('express');
var bodyParser = require('body-parser');
var stream = require('stream');
if (process.argv.length != 3) {
console.error('usage: aws-es-proxy <my-cluster-endpoint>');
process.exit(1);
@paulopatto
paulopatto / poison--multas-parcelanahora-.js
Created January 9, 2020 03:03
POISONS - Pequenos scripts usados por ai
/// Script para extraçao de dados de multas do sistema ParcelaNaHora.com.br em 09/01/2020
// https://www.parcelenahora.com.br/Pagamento.aspx?uf=detran-sp&placa=#{placa}&inscricaoImovel=&renavam=#{renavan}&cpf=&telefone=%2811%29+#{mobile_number_without_ddd}&Email=paulopatto%40maildrop.cc
csv = []
$('div.js_debitos_faturas div.boxdebito').each( function(index, element){
valor = $(element).find('div.boxdebito_numero').text().trim();
reason = $(element).find('div.boxdebito_dados span').text().trim();
valid = $(element).find('div.boxdebito_dados table tr td:first div.boxdebito_dados_txtpequeno_data').text().trim()
until = $(element).find('div.boxdebito_dados table tr td:last div.boxdebito_dados_txtpequeno_data').text().trim()
@paulopatto
paulopatto / Setup GCC and CLANG Toolchains.md
Created September 24, 2019 20:19 — forked from bhaskarvk/Setup GCC and CLANG Toolchains.md
Proper GCC (vers. 5/6/7) & LLVM/CLANG (vers. 4/5) Toolchain Setup on Ubuntu/Linux Mint

This approach uses update-alternatives to manage GCC and LLVM/CLANG C/C++ compiler toolchains. Although tested on Linux Mint 18.3, this approach should work on any Debian based distro or for that matter any Linux distro with update-alternatives support, provided the packages are installed correctly.

There are 3 files

  • gcc-alternatives.sh installs GCC versions 5/6/7 and sets up alternatives for gcc/g++/cpp/gfortran.
  • llvm-clang-alternatives.sh installs LLVM and CLANG versions 4/5 and sets up alternatives for various LLVM and CLANG programs including clang and clang++.
  • cc-alternatives.sh sets up alternatives for the cc, cxx, and the ld commands. This script can be used to change systemwide default compiler/linker combination to either GCC or CLANG.

Once these scripts are run you can change the system GCC/CLANG versions by running sudo update-alternatives --config gcc|clang. To change the default compiler/linker combo used by t

@paulopatto
paulopatto / docker-compose.yml
Created June 14, 2018 22:38 — forked from aizatto/docker-compose.yml
docker-compose.yml for MariaDB and Elasticsearch
# https://docs.docker.com/compose/overview/#variables-and-moving-a-composition-between-environments
version: '3'
services:
# https://hub.docker.com/_/mariadb/
database:
image: mariadb:10.3
environment:
- MYSQL_ROOT_PASSWORD=root
volumes: