Skip to content

Instantly share code, notes, and snippets.

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

Zoilo Mora zoilomora

🏠
Working from home
View GitHub Profile
@zoilomora
zoilomora / README.md
Last active April 17, 2024 07:34
How to disable cloud-init in Ubuntu

How to disable cloud-init in Ubuntu

Prevent start

  • Create an empty file to prevent the service from starting

      sudo touch /etc/cloud/cloud-init.disabled
    

Uninstall

@zoilomora
zoilomora / README.md
Last active March 23, 2024 17:30
How to disable systemd-resolved in Ubuntu

How to disable systemd-resolved in Ubuntu

Stages

  • Disable and stop the systemd-resolved service:

      sudo systemctl disable systemd-resolved.service
      sudo systemctl stop systemd-resolved
    
  • Then put the following line in the [main] section of your /etc/NetworkManager/NetworkManager.conf:

@zoilomora
zoilomora / Flash TREEYE WiFi Smart Plug with Tasmota.md
Last active October 24, 2023 20:00
Flash TREEYE WiFi Smart Plug with Tasmota

Flash TREEYE WiFi Smart Plug with Tasmota

How did I get here?

I saw a very good offer for a Wi-Fi Smart Plugs with an Energy Monitoring and I couldn't resist.

The plug was of the [TREEYE] brand (I had not heard it in my life) but I saw that they were [TUYA] and I said to myself... they sure are compatible with [tuya-convert]. ERROR!

I was surprised that [tuya-convert] didn't work and decided to open it for manual flashing. Oh My God! They didn't have an [ESP8266] but a [WB2S module]!

@zoilomora
zoilomora / README.md
Last active May 28, 2023 17:22
Configure Forwarded DNS in MikroTik

Configure Forwarded DNS in MikroTik

Stages

My house MikroTik runs a permanent tunnel to the offices of my job. DHCP configures the devices to send DNS requests to MikroTik, which then sends the requests to Google or forwards them to the DNS server of my job.

Job intranet = intranet.job.local
Job DNS Server = 192.168.90.1
@zoilomora
zoilomora / lm-sensors it8688E.md
Created February 11, 2023 09:15 — forked from natanaeljr/lm-sensors it8688E.md
lm-sensors support for it8688E chip (ArchLinux)

lm-sensors support for it8688E chip (ArchLinux)

  1. Make sure you have installed lm_sensors
  • sudo pacman -S lm_sensors --needed
  1. Download and Install the it87 kernel module for the driver support:
  1. To temporary enable the it87 module
@zoilomora
zoilomora / Temperature and Voltage from MikroTik Router by Telegraf.md
Last active March 30, 2022 08:02
Temperature and Voltage from MikroTik Router by Telegraf

Temperature and Voltage from MikroTik Router by Telegraf

Telegraf is a highly modular software provided by InfluxData that allows us to configure numerous Inputs and Outputs to collect any information.

In this case I have done the tests with my MikroTik hEX S router.

Mikrotik provides you with a MIB file with the OID addresses of its Routers.

Configure Telegraf

Create a file in /etc/telegraf/telegraf.d/ with extension .conf with the following content:

@zoilomora
zoilomora / Excedentes.md
Last active November 27, 2021 00:28
Instalación Fotovoltaica
@zoilomora
zoilomora / AnalysIR.md
Last active September 20, 2021 22:11
AnalysIR

Appendix B – Configuration File, ANALYSIR.ini

This file, which is located in your ‘APPDATA’ directory and named AnalysIR.ini, contains all of the important configuration details for your installation. You can find a list of parameters via:

Menu -> File -> Properties
@zoilomora
zoilomora / Materiales.md
Last active September 14, 2021 15:01
Batería de Jmm