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 / pypinit.sh
Last active January 9, 2020 04:10
Python Project Initialize script inspired by "Learn Python the Hard Way by Zed A Shaw"
#!/bin/sh
###########################################
### Workspace Startup File
###
### @brief Creates the Required files and configuration needed
### to begin working with Python projects
### This work has been inspired by:
### Learn Python the Hard Way by Zed A Shaw
### - Great book on python and other topics
### - Visit: https://learnpythonthehardway.org/
@boseji
boseji / git-commit-email-modify.md
Created August 13, 2019 03:11
Rename the Commiter and Email address in Git

Details

This command would alter the default committer name and email address for each of the commits.

This command uses the git filter-branch command.

$ git filter-branch --env-filter '
WRONG_EMAIL="[email protected]"
NEW_NAME="New Name Value"
@boseji
boseji / Manjaro-tricks.md
Last active October 14, 2023 01:06
Manjaro Linux : Tips and Tricks (ARCH Linux under the hood)

Manjaro Linux : Tips and Tricks

We have been using [Manjaro linux][2] for past year and have been happy with its perfomance. Though we don't use te [AUR][1] (Arch User Repository, since many are not supported into Manjaro.

The best part is even with bad / dumb users like myself, IT-DOES-NOT-BREAK. So, we very much recommend [Manjaro][2].

It seriously worked much better than Ubuntu. We might not be able to have all the boat load of software & support like Debian, but we are happy.

Let [tag] = any tag in upstream repo
git fetch upstream --tags
git push origin --tags
@boseji
boseji / RTL8711_SPI-Flash-ID.ino
Created May 9, 2018 07:30
RTL8711 to SPI Flash connection and checking of Device Signature
#include <SPI.h>
#include "PinNames.h"
// 11 - GPIOC_2 - SPI0_MOSI = Connected to Chip SPI MOSI
// 12 - GPIOC_3 - SPI0_MISO = Connected to Chip SPI MISO
// 13 - GPIOC_1 - SPI0_CLK = Connected to Chip SPI SCK
// GPIOC_4 - SPI0_CS1 = Connected to Chip SPI CS
#define CS PC_4
SPISettings settings = SPISettings(20000000, MSBFIRST, SPI_MODE0);
void setup() {
@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 [email protected]: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