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 / 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="wrong@example.com"
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.

@dariosalvi78
dariosalvi78 / ADS1256.c
Last active December 21, 2023 08:23
Simple library for ADS1256 to be used with Arduino. It does not implement the whole set of features, but can be used as a starting point for a more comprehensive library.
/* ADS1256 simple library for Arduino
ADS1256, datasheet: http://www.ti.com/lit/ds/sbas288j/sbas288j.pdf
connections to Atmega328 (UNO)
CLK - pin 13
DIN - pin 11 (MOSI)
DOUT - pin 12 (MISO)
CS - pin 10
DRDY - pin 9
RESET- pin 8 (or tie HIGH?)
@skarllot
skarllot / Makefile.makefile
Created May 3, 2016 21:24
Makefile to merge coverage data from all subpackages (Golang)
.PHONY: test-cover-html
PACKAGES = $(shell find ./ -type d -not -path '*/\.*')
test-cover-html:
echo "mode: count" > coverage-all.out
$(foreach pkg,$(PACKAGES),\
go test -coverprofile=coverage.out -covermode=count $(pkg);\
tail -n +2 coverage.out >> coverage-all.out;)
go tool cover -html=coverage-all.out
Let [tag] = any tag in upstream repo
git fetch upstream --tags
git push origin --tags
/************************************************************************
* NJC's Simple LaunchPad DAC
*
* Description: This code turns the LaunchPad into a simple (slow)
* function generator that outputs a sine wave at 128Hz.
* For each point in a period signal, there is one
* smaller PWM period. For this example there are 32
* points per period. The duty cycle of each PWM period
* determines the analog value at that point in time.
* By continually changing the duty cycle, an analog