Skip to content

Instantly share code, notes, and snippets.

View boseji's full-sized avatar
💭
Accelerating dreams into infinity.

Abhijit Bose boseji

💭
Accelerating dreams into infinity.
View GitHub Profile
@boseji
boseji / Arduino.Install.Linux.sh
Created May 2, 2017 16:22
Arduino Linux Installation Script - Corrected
#!/bin/sh
# This script adds a menu item, icons and mime type for Arduino for the current
# user. If possible, it will use the xdg-utils - or fall back to just creating
# and copying a desktop file to the user's dir.
# If called with the "-u" option, it will undo the changes.
# Resource name to use (including vendor prefix)
RESOURCE_NAME=arduino.arduinoide
@boseji
boseji / VM-NATconfig.md
Created April 17, 2017 19:01
NAT Config Work in progress

VM Configuration for NAT Local - DO NOT USE

We would be using a Windows PC with Virtual Box installed.

Also make sure that you have the latest Virtual Box extentions installed!

Adding a Local NAT network

First we need to add a Virtual Box NAT network for the given PC.

@boseji
boseji / MQTT-mosquitto.md
Last active April 17, 2017 19:01
MQTT with mosquitto Broker

MQTT using mosquitto Broker

MQTT is the protocol of choice for M2M and IoT Applications.

Mosquitto is an open source iot.eclipse.org project. It implements the MQTT protocol versions 3.1 and 3.1.1. For more details please refer to http://mosquitto.org/.

We would look at setting up the broker both on Raspberry Pi and an Ubuntu VM on PC.

Though some special configuration is needed to begin with using the VM.

@boseji
boseji / Rapi-Secure.md
Last active April 6, 2024 19:35
Securing the Raspberry Pi
@boseji
boseji / MosquitoInstall.sh
Last active April 16, 2017 12:18
MosquitoInstall
#!/bin/bash
# Raspberry Pi Mosquito Install Script
sudo wget http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key
sudo apt-key add mosquitto-repo.gpg.key
cd /etc/apt/sources.list.d/
sudo wget http://repo.mosquitto.org/debian/mosquitto-jessie.list
cd
sudo apt-get update
rm mosquitto-repo.gpg.key
#!/bin/bash
# Backup the Network Config
cp /etc/network/interfaces /etc/network/interfaces.bak
cp /etc/wpa_supplicant/wpa_supplicant.conf /etc/wpa_supplicant/wpa_supplicant.conf.bak
# GUI-related packages
pkgs="
xserver-xorg-video-fbdev
xserver-xorg xinit
@boseji
boseji / wdt_sleep.ino
Created December 16, 2016 13:37
Arduino Pro Mini Low power Sleep Example
/**
* Arduino Pro Mini Low power Sleep Example
*
* @license BSD Open Source License
* Copyright (c) 2004-2021 Abhijit Bose < salearj [at] hotmail [dot] com >
* If you require a license, see
* http://www.opensource.org/licenses/bsd-license.php
*
* @note
* This example show how to properly enter sleep mode and wake up
@boseji
boseji / LinkIt Smart 7688 Wi-Fi multi-role Configuration Update Readme.md
Last active May 18, 2017 14:40
LinkIt Smart 7688 Wi-Fi multi-role Configuration Update

Steps for Configuring the Multimode WiFi on LinkIt Smart 7688

  1. Log Into the LinkIt Smart 7688 One can connect to the LinkIt Smart via AP interface or via USB to Serial. See the user manual

  2. Copy the file ralink.sh to /lib/netifd/wireless/ralink.sh on the LinkIt Smart 7688 One can copy the file via SCP from the host machine. Or connecting a usb flash drive to the host port.

  3. Give the Command to make this file executiable:

@boseji
boseji / Project_WiFi_Display.ino
Created July 17, 2016 15:57
ESP8266 Based WiFi display Project
/**
* Project WiFi Display
*
* This project is intends to enable WiFi Connectivity for the LED Panel
* In order to do, a WiFi Accesspoint configuration is used.
* The WiFi Access point serves a Dynamic Page where the text to
* be sent can be written and the same would passed on through
* Serial Port on ESP8266.
* This program was tested on a NodeMCU V1 with ESP-12E module.
* There are two serial ports being used the `Serial` which is
@boseji
boseji / esp8266-devkit-build-Info.txt
Created May 14, 2016 07:19
Instructions for compiling the https://github.com/CHERTS/esp8266-devkit ESP8266 Windows Dev Kit
Here are the instructions:
1. Install the MinGW with MSYS and MSyS MinGW Dev system checked
2. Download the Repository from
https://github.com/CHERTS/esp8266-devkit
3. Copy the Downloaded Repository Folder to Root "C:" making it =:
C:\esp8266-devkit
4. Open Administrator command prompt ("Type cmd in search bar, then rightclick on the icon and Run as Administrator")
5. Now cd C:\esp8266-devkit\Espressif
6. Run Command "install-mingw-package.bat" - press enter to begin
7. Once the package installation is complete then close the Command window