Skip to content

Instantly share code, notes, and snippets.

View cuducos's full-sized avatar
💜

Eduardo Cuducos cuducos

💜
View GitHub Profile
@cuducos
cuducos / piepda_template.md
Created July 28, 2022 21:05
PIPEDA email

Dear,

I just received an email from {COMPANY_NAME} with the subject “{EMAIL_SUBJECT}.” As far as I am aware, I have not created an account, subscribed, shared my PII data, or consented to this commercial message, thus I consider it spam. Since it looks like you are definitely handling my PII data and actively processing it, as a resident of Canada, under my rights according to PIPEDA, I request:

  1. What is the Privacy Office within {COMPANY_NAME} in charge of ensuring compliance with Canada's data protection law?
  2. How my PII was collected?
  3. I see you have already collected my email address, but I don't see where I have consented to the collection of such personal information; can you clarify how you got my consent for processing my personal data?
  4. What are the measures {COMPANY_NAME} takes to ensure security safeguards against loss or theft, as well as unauthorized access, disclosure, copying, or use of my personal information?
  5. Can I have a copy of all personally identifiable information {COMPANY_
@cuducos
cuducos / bootstrap.sh
Created February 7, 2022 23:40
Pulumi draft (Minha Receita)
#!/bin/bash
set -eux
# install postgres
sudo apt update -y
sudo apt install -y sudo postgresql-13
sudo service postgresql start
# create postgres user and database
@cuducos
cuducos / data.csv
Last active February 23, 2022 15:43
Porcentagem de votos em Bolsonaro no 2º turno de 2018, por município (apenas os com mais de 100.000 habitantes)
Porcentagem de votos em Bolsonaro (2º turno - 2018) Município UF
15.4083557181231 CRATO CE
17.4993648911847 PARINTINS AM
18.2141640486014 IGUATU CE
18.9022837888431 ITAPIPOCA CE
20.8163619031112 PAULO AFONSO BA
22.6305304061384 CODÓ MA
23.8899617526168 JUAZEIRO DO NORTE CE
24.0801281633823 CAXIAS MA
24.2147907626013 CAMETÁ PA
@cuducos
cuducos / create_open_vpn.sh
Created May 18, 2018 22:11
create_open_vpn.sh
export OVPN_DATA="ovpn-data-misha"
docker volume create --name $OVPN_DATA
docker run -v $OVPN_DATA:/etc/openvpn --rm kylemanna/openvpn ovpn_genconfig -u udp://IP_ADDRESS
docker run -v $OVPN_DATA:/etc/openvpn --rm -it kylemanna/openvpn ovpn_initpki
docker run -v $OVPN_DATA:/etc/openvpn -d -p 1194:1194/udp --cap-add=NET_ADMIN kylemanna/openvpn
docker run -v $OVPN_DATA:/etc/openvpn --rm -it kylemanna/openvpn easyrsa build-client-full misha nopass
docker run -v $OVPN_DATA:/etc/openvpn --rm kylemanna/openvpn ovpn_getclient misha > misha.ovpn
@cuducos
cuducos / install_docker_in_debian.sh
Last active May 19, 2018 10:42
install_docker_in_debian.sh
sudo apt-get update && \
sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common && \
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - && \
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" && \
sudo apt-get update && \
sudo apt-get install docker-ce
@cuducos
cuducos / gastos-municipais.md
Last active March 29, 2018 15:23
Gastos municipaos

Despesas dos municípios

Com base em: http://www.pcc.usp.br/files/text/publications/TT_00020.pdf

Destino

Destino Descrição Exemplos
Custeio Despesas contínuas e permanentes Material de consumo, serviços de terceiros, pessoal ativo etc.
Investimento Despesas que aumentam a capacidade ou aperfeiçoam a ação. Novas escolas, creches, postos de saúde, reformas em geral, melhorias no sistema viário etc.
@cuducos
cuducos / .tmux.conf
Last active March 31, 2020 20:05
.tmux.conf
set -g default-terminal "screen-256color"
set -g default-shell /usr/bin/fish
set -g default-command /usr/bin/fish
set -s escape-time 0
set-window-option -g mode-keys vi
bind r source-file ~/.tmux.conf \; display "tmux config reloaded"
@cuducos
cuducos / keybase.md
Last active March 7, 2017 17:13
keybase.md

Keybase proof

I hereby claim:

  • I am cuducos on github.
  • I am cuducos (https://keybase.io/cuducos) on keybase.
  • I have a public key whose fingerprint is 59FA 096C 6B95 F9F3 7A7B 7C8E 7D37 AD60 748C 1675

To claim this, I am signing this object:

@cuducos
cuducos / bootstrap.sh
Last active August 9, 2019 02:07
Computer Bootstraps
#!/bin/bash
##############################################################################
# Install system packages #
##############################################################################
xcode-select --install
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
# install homebrew
@cuducos
cuducos / init.vim
Last active January 10, 2022 02:07
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Set leader key & Python bin "
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let g:python3_host_prog = '~/.virtualenvs/neovim/bin/python'
let g:python_host_prog = '~/.virtualenvs/neovim.old/bin/python'
let mapleader="\<Space>"
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" vim-plug "