This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generate alist of patches from a "base" commit-hash in the past to the HEAD. | |
# Run this on the source repository | |
git format-patch --root <commit-hash> <optional-sub-dir> -o patches-from-commit-hash-to-HEAD/ | |
# Generate a sorted (by LoC) list of patch files generate above to focus n the largests changes first. | |
# NOTE: Sometime, several "small" changes may introduce "dependencies" required by a large change down the line. | |
# Use "git blame -wCCC", "git log -S <string>" and "git gui blame" for code archaeology. | |
find ./patches-from-commit-hash-to-HEAD/ -type f -exec wc -l {} + | sort -rn | wc -l > 0000-list-of-commits-sorted-by-lines.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Bitmap and Shatterring-glass demo on 0.96" I2C 128x64 OLED display connected to Arduino UNO | |
* | |
* Demo Video: https://youtu.be/El5VYXpw27I | |
* | |
* Author: TheCodeartist (cvs268@gmail.com) 2015 | |
* Licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. | |
* http://creativecommons.org/licenses/by-sa/4.0/ | |
* | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Start by adding the following alias to your gitconfig. | |
[alias] | |
prevision = "!f() { git checkout `git log --oneline $2 | awk -v commit="$1" 'FNR == -commit+1 {print $1}'` $2;} ;f" | |
Usage: | |
$ git prevision <N> <filename> | |
will checkout the <N>th revision (counting backwards from HEAD) into the history of the file <filename>. | |
For example to checkout the immediate previous version of a file x/y/z.c use |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* atomic-test.c | |
* | |
* Compiled using "gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3" | |
* Compiler cmd : `gcc atomic-test.c -lpthread -o atomic-test` | |
* | |
* objdump -S shows that the lock prefix in properly inserted | |
* | |
* 08048674 <atomic_inc>: | |
* 8048674: 55 push %ebp | |
* 8048675: 89 e5 mov %esp,%ebp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 83edf446e92c86c738337ca4a35eab48e2f4e0eb Mon Sep 17 00:00:00 2001 | |
From: Chinmay V S <cvs268@gmail.com> | |
Date: Mon, 17 Jun 2013 13:53:57 +0800 | |
Subject: [PATCH] Add mmap-ed file support to inotify | |
This patch adds a new flag IN_SYNC. This is a new inotify event that is | |
triggered whenever msync() is carried out on a mmap-ed file. | |
Signed-off-by: Chinmay V S <cvs268@gmail.com> | |
--- |