Skip to content

Instantly share code, notes, and snippets.

View cuducos's full-sized avatar
💜

Eduardo Cuducos cuducos

💜
View GitHub Profile
@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 / 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 / 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 / twitter-followers.py
Created January 17, 2019 11:33
twitter-followers.py
from os import getenv
from re import sub
from tweepy import API, Cursor, OAuthHandler
from tweepy.models import User
def followers():
auth = OAuthHandler(
getenv("TWITTER_CONSUMER_KEY"), getenv("TWITTER_CONSUMER_SECRET")
@cuducos
cuducos / unwatch.js
Last active January 30, 2019 22:33
GitHub: unwatch by organization
Array.prototype.slice.call(
document.querySelectorAll('.js-subscription-row')
).map(function (row) {
if (row.querySelector('div:first-child').innerText.indexOf('ORGANIZARION_NAME/') >= 0) {
row.querySelector('button').click()
}
})
{
"blacklist": [
"inbox.google.com/*",
"mail.google.com/*",
"calendar.google.com/*",
"gmail.com/*",
"linhadireta.capes.gov.br/*"
]
}
@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 / assinaturas.csv
Last active March 20, 2020 00:53
Assinaturas RCP 5/2019 (CPI #VazaJato)
assinatura parlamentar partido uf
1 AFONSO FLORENCE PT BA
2 AFONSO MOTTA PDT RS
3 AGUINALDO RIBEIRO PP PB
4 AIRTON FALEIRO PT PA
5 ALENCAR SANTANA BRAGA PT SP
6 ALESSANDRO MOLON PSB RJ
7 ALEXANDRE FROTA PSDB SP
8 ALEXANDRE PADILHA PT SP
9 ALEXIS FONTEYNE NOVO SP
@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"