Skip to content

Instantly share code, notes, and snippets.

View jaindinkar's full-sized avatar
💡
"Pleasure in the job puts perfection in the work" ~Aristotle

Dinkar Jain jaindinkar

💡
"Pleasure in the job puts perfection in the work" ~Aristotle
View GitHub Profile
@jaindinkar
jaindinkar / Change MAC on Ubuntu.md
Created May 15, 2025 10:26
How to change the WiFi Card MAC address on Ubuntu?

Instructions:

  • sudo ip link show
  • sudo ip link set dev wlp3s0 down
  • sudo ip link set dev wlp3s0 address 00:00:00:FF:FF:FF
  • sudo ip link set dev wlp3s0 up

Done!

@jaindinkar
jaindinkar / UbuntuSerialCom.md
Created May 12, 2025 04:16
Initiating Comand Line Based Serial Communication Using Minicom Serial Terminal on Ubuntu Linux

Connecting the device capable of Serial Communication to your Ubuntu System:

  • First requirement is that you should have a device(uC) that can communicate Serial Messages through UART.
  • Seconly you should have a UART to USB interface(CH340) that can enable transmitting UART on USB like this one.
  • Connect your device to interface (generally have 4 wire connection: VCC, GND, RX-TX, TX-RX).
  • Plug the the USB interface to the Ubuntu System.

Detecting the Interface Device Recently Connected:

  • sudo dmesg | grep tty (Gives the recently connected tty device, remove pipe to get all the device) Output
@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