Skip to content

Instantly share code, notes, and snippets.

View jeanfbrito's full-sized avatar
🌱
Seeding the future!

Jean Brito jeanfbrito

🌱
Seeding the future!
View GitHub Profile
@jeanfbrito
jeanfbrito / watertank.yaml
Created April 30, 2020 13:53
My watertank ESPHome configuration
esphome:
name: watertank
platform: ESP8266
board: nodemcuv2
wifi:
ssid: "greenhouse"
password: "senhasupersecreta"
# Enable fallback hotspot (captive portal) in case wifi connection fails
@jeanfbrito
jeanfbrito / garden.yaml
Last active February 20, 2022 00:26
My garden ESPHome configuration
esphome:
name: garden
platform: ESP32
board: esp-wrover-kit
wifi:
ssid: "greenhouse"
password: "senhasupersecreta"
# Enable fallback hotspot (captive portal) in case wifi connection fails
@jeanfbrito
jeanfbrito / conky.conf
Created April 29, 2020 19:35
My configuration for conky
-- vim: ts=4 sw=4 noet ai cindent syntax=lua
--[[
Conky, a system monitor, based on torsmo
Any original torsmo code is licensed under the BSD license
All code written since the fork of torsmo is licensed under the GPL
Please see COPYING for details
@jeanfbrito
jeanfbrito / profiles.json
Created April 23, 2020 06:06
My Windows Terminal Configuration
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}",
"profiles":
@jeanfbrito
jeanfbrito / ha.sh
Created August 22, 2019 15:01
Make wkhtmltopdf work in Ubuntu 18.04
wget https://downloads.wkhtmltopdf.org/0.12/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb
sudo apt-get install fontconfig libxrender1 xfonts-75dpi xfonts-base
sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb
sudo cp /usr/local/bin/wkhtmltopdf /usr/bin/
@jeanfbrito
jeanfbrito / Capistrano 3.md
Created April 21, 2019 01:08 — forked from stevenyap/Capistrano 3.md
Capistrano 3 Setup

This guide explains the way to setup a production server using Capistrano.

Setup Capistrano on LOCAL

  • Capistrano is a development gem which assist the developer to run commands on the production server (something like a Heroku toolbelt)
  • Hence, it is installed and configured on developer's computer
# Gemfile

# Use Capistrano for deployment
@jeanfbrito
jeanfbrito / postgres-outage.md
Created October 2, 2018 13:33 — forked from andywer/postgres-outage.md
Post Mortem: Postgres outage on 2018-08-20

2018-08-20: Postgres failure

What happened

The PostgreSQL container stopped unexpectedly, was automatically restarted, but suddenly didn't accept any connections anymore. Neither from the API service containers nor from the Macbook over the internet.

Error in logs:

FATAL:  pg_hba.conf rejects connection for host "10.0.1.2", user "postgres", database "******", SSL off
@jeanfbrito
jeanfbrito / reverse.md
Last active August 28, 2018 19:23
Add SSH Reverse Tunnel

Configuring a SSH Reverse Tunnel sevice

First, let`s assume that:

The server IP is 1.1.1.1.

The user on the server is relayserver_user.

The user on the client is homeserver_user.

@jeanfbrito
jeanfbrito / gist:692b34a2b41850d94147a5a606109c47
Created July 6, 2018 20:23 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@jeanfbrito
jeanfbrito / cidades-brasil.json
Created April 8, 2018 06:04 — forked from fernandosavio/cidades-brasil.json
JSON com as cidades brasileira segundo o IBGE.
{
"Acre": ["Acrel\u00e2ndia","Assis Brasil","Brasil\u00e9ia","Bujari","Capixaba","Cruzeiro do Sul","Epitaciol\u00e2ndia","Feij\u00f3","Jord\u00e3o","M\u00e2ncio Lima","Manoel Urbano","Marechal Thaumaturgo","Pl\u00e1cido de Castro","Porto Acre","Porto Walter","Rio Branco","Rodrigues Alves","Santa Rosa do Purus","Sena Madureira","Senador Guiomard","Tarauac\u00e1","Xapuri"],
"Alagoas": ["\u00c1gua Branca","Anadia","Arapiraca","Atalaia","Barra de Santo Ant\u00f4nio","Barra de S\u00e3o Miguel","Batalha","Bel\u00e9m","Belo Monte","Boca da Mata","Branquinha","Cacimbinhas","Cajueiro","Campestre","Campo Alegre","Campo Grande","Canapi","Capela","Carneiros","Ch\u00e3 Preta","Coit\u00e9 do N\u00f3ia","Col\u00f4nia Leopoldina","Coqueiro Seco","Coruripe","Cra\u00edbas","Delmiro Gouveia","Dois Riachos","Estrela de Alagoas","Feira Grande","Feliz Deserto","Flexeiras","Girau do Ponciano","Ibateguara","Igaci","Igreja Nova","Inhapi","Jacar\u00e9 dos Homens","Jacu\u00edpe","Japaratinga","Jaramataia","Jequi\u00e1 da Praia","Jo