Skip to content

Instantly share code, notes, and snippets.

@Irio
Irio / readme.md
Created November 12, 2020 17:24
Launching a new AWS instance with internet access and public IP in a non-default VPC
  1. Create VPC[1]
  • Name tag: acloudguruVPC
  • IPv4 CIDR block: 10.0.0.0/16
  1. Create subnet[2]
  • VPC ID: (acloudguruVPC)
  • Subnet name: 10.0.1.0 - us-east-1a
  • IPv4 CIDR block: 10.0.1.0/24
  1. Create internet gateway[3]
  2. Attach internet gateway to VPC[4]
  • Available VPCs: (acloudguruVPC)
@Irio
Irio / municipalities.fql
Created January 5, 2020 12:01
Brazilian municipalities and their Wikipedia links
// Run with:
// $ go get github.com/MontFerret/ferret
// $ ferret municipalities.fql > municipalities.json
LET baseURL = "https://pt.wikipedia.org"
LET startURL = CONCAT(baseURL, "/wiki/Lista_de_munic%C3%ADpios_do_Brasil_por_popula%C3%A7%C3%A3o")
LET municipalitySelector = ".wikitable tbody tr:not(:nth-child(1))"
LET doc = DOCUMENT(startURL)
@Irio
Irio / index.js
Created December 16, 2019 10:22
dataframe-js #99 - Code accompanying "[FEATURE] Pivot dataframe"
// # How to run:
// 1. Save this file into a new folder as `index.js`.
// 2. Run the following:
// ```
// $ npm install dataframe-js
// $ node index.js
// ```
const { DataFrame } = require("dataframe-js");
@Irio
Irio / gender_submission.csv
Created December 13, 2019 13:56
Titanic: Machine Learning from Disaster - Datasets
PassengerId Survived
892 0
893 1
894 0
895 0
896 1
897 0
898 1
899 0
900 1
@Irio
Irio / Dockerfile
Last active July 31, 2023 20:20
GCP Serverless scrapers
FROM golang:1.12 as build
WORKDIR $GOPATH/src/github.com/Irio/wohnung
COPY scraper scraper
COPY main.go .
RUN go get -d -v ./...
RUN go install
FROM gcr.io/distroless/base
@Irio
Irio / Untitled.ipynb
Created July 7, 2019 08:27
Elman network
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Irio
Irio / bidding_exemptions.json
Last active May 27, 2018 17:35
[Serenata] Dispensas de licitação - Goiânia e Porto Alegre
[
{
"id": 8841,
"data": {
"OBJETO": "Trata o presente de Ato de Dispensa de Licitação prevista no artigo 24 inciso II da Lei nº 8.666 de 1993, tendo por objeto a aquisição de serviços de manutenção dos instrumentos musicais da Banda de Música da Agência da Guarda Civil Metropolitana de Goiânia.",
"PROCESSO": "nº 883/2018",
"VALOR TOTAL": "R$ 3.980,00 (Três mil, novecentos e oitenta reais).",
"LOCAL E DATA": "Goiânia, 16 de abril de 2018.",
"ÓRGÃO CONTRATANTE": "Agência da Guarda Civil Metropolitana de Goiânia – AGCMG, CNPJ nº 10.498.531/0001-00.",
"EMPRESAS CONTRATADAS": "Clauciney Pereira da Costa - ME, CNPJ nº 10.521.310/0001- 05."
@Irio
Irio / notes.md
Created April 27, 2018 22:11
[Serenata] Notas da criação do parser do Diário Oficial de Goiânia

Goiânia (GO)

Premissas

  • Toda dispensa tem apenas uma página
  • A dispensa não compartilha a página com outros conteúdos

Termos que podem identificar uma dispensa de licitação

"TERMO DE DISPENSA DE LICITAÇÃO Nº 01/2018" "EXTRATO DE ATO DE DISPENSA DE LICITAÇÃO"

@Irio
Irio / states.py
Created January 23, 2018 17:20
Estados do Brasil e suas capitais
import pandas as pd
csv = """
AC,Acre,Rio Branco
AL,Alagoas,Maceió
AP,Amapá,Macapá
AM,Amazonas,Manaus
BA,Bahia,Salvador
CE,Ceara,Fortaleza
DF,Distrito Federal,Brasília
@Irio
Irio / 2017-12-23_a_assiduidade_dos_deputados_federais_em_2017.csv
Created December 27, 2017 12:31
[594] A assiduidade dos deputados federais em 2017
Nome UF Sessões possíveis Sessões presente Sessões ausente Dias ausente Maior período ausente (dias) Presença Pontuação
CARLOS MANATO ES 217 217 0 0 0 100,00% 100,00%
MARCIO ALVINO SP 217 216 1 1 1 99,54% 99,54%
TENENTE LÚCIO MG 217 216 1 1 1 99,54% 99,54%
WELITON PRADO MG 217 215 2 2 0 99,08% 99,08%
VICTOR MENDES MA 217 215 2 2 1 99,08% 99,08%
LINCOLN PORTELA MG 217 214 3 3 1 98,62% 98,62%
CONCEIÇÃO SAMPAIO AM 217 214 3 3 1 98,62% 98,62%
TIRIRICA SP 217 214 3 3 5 98,62% 98,62%
PEDRO FERNANDES MA 217 213 4 4 20 98,16% 98,16%