Skip to content

Instantly share code, notes, and snippets.

View jaindinkar's full-sized avatar
📟
Absorbing Fresh Ideas

Dinkar Jain jaindinkar

📟
Absorbing Fresh Ideas
View GitHub Profile
@jaindinkar
jaindinkar / Tguide.md
Last active May 4, 2023 14:30
NodeJS Troubleshooting

NodeJS Troubleshooting Guide

If anything goes wrong:

  • Step 1: Remove node and all the global packages related to it. Follow: this link.
    • Old yarn installation might bug you so delete: ~/.yarnrc and ~/.yarnrc.config
    • Make sure that eveything related to nodejs, npm, yarn, node is removed.
  • Step 2: Install nvm and update source. Follow this link.
  • Step 3: Install latest lts version of nodejs, npm, yarn.
    • Install node. nvm install --lts --latest-npm <your-node-version> (This will install+club latest npm version with your node installation)
  • Install yarn. Follow this link. Used corepack.
@jaindinkar
jaindinkar / esptool troubleshooting.md
Last active April 24, 2022 02:57 — forked from DrSensor/esptool.md
ESP Troubleshooting 101
$ esptool.py chip_id
esptool.py v2.5.1
Found 1 serial ports
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: 84:f3:eb:0b:dd:53
@jaindinkar
jaindinkar / Installing arduino extension for VS Code.md
Last active April 24, 2022 02:55
Installing arduino extension for VS Code

Description

Installing Arduino extension for VS code makes development very easy and organised as VS code has integrated git management and the use of workspaces make it easier to isolate certain extensions/plugins to your arduino projects only. Installing the extension and connecting it to the Arduino IDE especially on Ubuntu is bit cumbersome as arduino IDE is installed as a Snap package which has it's own sandbox envionment and hence a bit difficult to provide PATH variable for it's executable to depending application (which in our case is VScode Arduino extension). An alternate solution is provided below which uses the Arduino-cli which is light-weight and feature rich command line tool from arduino devs. You might not need Arduino IDE after this install.

Steps to follow

@jaindinkar
jaindinkar / 1 -> Kapua Installation Guide.md
Last active October 5, 2021 10:07
Error Free Installation of Eclipse IoT Solutions (Kapua End-to-End IoT Framework on Ubuntu 20.04 machine + Kura Gateway on Raspberry Pi)

Installing Eclipse Kapua on a Ubuntu20.04 desktop/server.

  • Uninstall any previous version of docker and related packages from the system: sudo apt-get remove docker docker-engine docker.io containerd runc plus do this to be completly sure: https://docs.docker.com/engine/install/ubuntu/#uninstall-docker-engine

  • Installation: There are various methods for installing docker, I installed it using the convinence script, it's by far the simplest method. Just download the script and let it do all the work. If you are experienced enough you can do a manual install too.

  • After this add your user to docker usergroup so you don't need to use sudo for every docker command.

  • Note Sometimes convenience script gives error when it executes sudo apt update command. This happens when you have a single or multiple erronious repo addressess.(run apt update separately and in the bottom you will see a summary of those errors). In this case you have to remove those bad repo addresses: Just delete the erro