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 / Rpi3-LAMP-Server.md
Last active May 1, 2019 20:14
Raspberry Pi 3 Steps for LAMP Server

LAMP Server Setup on Raspberry Pi 3

Install the Raspbian

First we need to load the latest Image of Raspbian

Next in case you have a display :

@boseji
boseji / update-remote-github.md
Created July 10, 2017 02:24
Update your Fork from remote - Other people's repo

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@boseji
boseji / STM32F103C8T-Arduino-Bootloader.md
Last active August 6, 2017 06:02
Flashing Bootloader to Cheap STM32F103C8T boards

Flash bootloader for Cheap STM32F103C8T boards

Cheap STM32 Board

These boards are low cost and very well supported by STM32 Arduino

One needs to flash the Bootloader to make this board work with modified MAPLE booloader.

For that here are the Steps:

@boseji
boseji / Shell-aliases.bashrc.sh
Last active September 29, 2017 01:50
Handly Aliases for the Linux Shell
#!/bin/sh
alias ll='ls -alF'
alias la='ls -aol'
alias l='ls -CF'
alias c='clear'
alias d='cd ..'
alias cd..='cd ..'
alias ..='cd ..'
alias ...='cd ../../../'
alias ....='cd ../../../../'
@boseji
boseji / docker-appengine-config.sh
Last active June 23, 2017 13:22
Configuration Script for Docker + Appengine
#!/bin/bash
apt update && apt install -y curl python nano vim wget git apt-transport-https
curl https://sdk.cloud.google.com/ | bash
wget https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.8.3.linux-amd64.tar.gz
rm go1.8.3.linux-amd64.tar.gz
echo 'export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin' >> ~/.bashrc
echo 'export GOPATH=$HOME/go' >> ~/.bashrc
mkdir -p ~/go/src ~/go/bin
wget https://goo.gl/FEjiMK -O .gitconfig
@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