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 / Docker-useful.md
Last active June 20, 2017 16:59
Snippets about running things with docker

Docker Tips & Tricks

How to Check if Docker is Working ?

docker run hello-world

This would print out

@boseji
boseji / Rpi-InfluxDB-Install.md
Last active February 5, 2022 17:34
Raspberry Pi InfluxDB installation

Raspberry Pi InfluxDB: The solution for IoT Data storage

Raspberry Pi is costeffect linux computer very commonly used for IoT home automation projects.

Here are the 3 problems with conventional databases for IoT data store applications:

  • Too much or complex configuration
  • Unable to expire data / set retentional policies
  • Not tailor made of Time Series Data
@boseji
boseji / pipUpdateall.sh
Created June 3, 2017 04:59
PIP Python Package Update all
#!/bin/bash
# Checks all the Packages
#pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U
# Checks only outdated packages
pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U
@boseji
boseji / c9goconf.sh
Last active May 10, 2017 10:51
Cloud9 Golang configuration
#!/bin/sh
###################
### Cloud9 Golang Configuration
### by boseji
###
### Version 0.0 - Initial Release
###
###################
###################
@boseji
boseji / .gitconfig
Last active May 8, 2019 02:56
Gitconfig with Color and Aliases - Use only for quick config Note: MODIFY USERNAME and EMAIL
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = auto
[color "branch"]
current = green bold
local = green
remote = red bold
@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 February 2, 2025 14:43
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