Skip to content

Instantly share code, notes, and snippets.

View nsfilho's full-sized avatar
🏠
Working from home

Nelio Santos nsfilho

🏠
Working from home
View GitHub Profile
@nsfilho
nsfilho / 2024-04-29.md
Created April 29, 2024 20:59
2024-04-29.md

Tarefas para o dia

  • [[Vitruveo]] - [[Nik Kalyani]] - Reunião para fazermos o [[Contrato de Consign na TestNet]]
  • Cotação da [[Datamob]]
  • Revisão do [[uSign Player - Android]]

Preocupações

  • Bugs do [[Studio]]:
    • Upload de arquivos
    • C2PA - Tempo de processamento (queue processing)
  • Questão dos pagamentos do [[Nik Kalyani]] #financeiro
@nsfilho
nsfilho / GPG.md
Created April 28, 2024 13:53
GPG.md

Principais comandos

Conceitos

  • Chave pode ser o e-mail ou o fingerprint da chave

Ligados as Chaves

  • gpg --full-generate-key -> Gera uma chave PGP e salva no seu cofre
  • gpg --list-keys -> Lista as chaves do seu cofre
  • gpg --import <nome_da_chave> -> Importa a chave de alguém para seu cofre
@nsfilho
nsfilho / .eslintrc.js
Last active October 26, 2022 17:00
Template projeto Typescript
module.exports = {
env: {
es2021: true,
node: true,
jest: true,
},
extends: ['airbnb-base', 'prettier'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12,
@nsfilho
nsfilho / mqtt_tls_working.ino
Created June 23, 2021 01:16 — forked from eLement87/mqtt_tls_working.ino
ESP8266 Secure MQTT Connection with Client Certificate Authentication
#include <FS.h>
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#include <PubSubClient.h>
#include <time.h>
// Insert your FQDN of your MQTT Broker
#define MQTT_SERVER "mqtt.srvx1.local"
const char* mqtt_server = MQTT_SERVER;
void i2c_scan() {
byte error, address;
int nDevices;
Serial.println("Scanning...");
nDevices = 0;
for(address = 1; address < 127; address++ )
{
// The i2c_scanner uses the return value of
@nsfilho
nsfilho / otasample.cpp
Created July 23, 2020 18:12
Esp8266 Arduino Framework Simple OTA
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
const char* ssid = "NOME DA SUA REDE WIFI";
const char* password = "SENHA DA SUA REDE WIFI";
void setup() {
Serial.begin(115200);
@nsfilho
nsfilho / README.md
Created July 23, 2020 14:04 — forked from atenni/README.md
How to permalink to a gist's raw file

Problem: When linking to the raw version of a gist, the link changes with each revision.

Solution:

To return the first file from a gist: https://gist.github.com/[gist_user]/[gist_id]/raw/

To get a file from multi–file gist: https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]

/*
TITLE: CODE GRABBER FOR HT6P20B ENCODER
CREATED BY: AFONSO CELSO TURCATO
DATE: 14/JAN/2014
E-MAIL: acturcato (at) gmail.com
LICENSE: GPL
REV.: 00
DESCRIÇÃO:
http://acturcato.wordpress.com/2014/01/14/clonagem-de-controle-remoto-rf-learning-code-ht6p20b-com-arduino/
@nsfilho
nsfilho / README.md
Created July 13, 2020 12:32
Configuração da Placa E01-AIO3 no Home Assistant

Introdução

Arquivo configuration.yaml

Como a configuração é grande, recomendo que vc quebre ela em arquivos. para isto, crie 3 diretórios dentro da pasta de configuração do seu Home Assistant:

  • switchs
  • sensors
  • light
@nsfilho
nsfilho / .eslintrc.js
Last active August 31, 2020 23:34
Post yarn: wget -O - https://bit.ly/32MCyOF | /bin/sh -
/**
* Copyright (C) 2020 E01-AIO Automação Ltda.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of