Skip to content

Instantly share code, notes, and snippets.

@ilansmith
ilansmith / git_aliases_setup.sh
Created January 9, 2016 21:10 — forked from AvnerCohen/git_aliases_setup.sh
Random Git aliases and commands to
# Command: GLOG
# Description: alias that creates a nice and easy on eye history log with graph indication of merge commits and branches
git config --global alias.glog "\!git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative ; true"
# Run:
git glog
# Command: LASTWORKS
# Description: Lists the last 10 branches you worked on
git config --global alias.lastworks "for-each-ref --count=10 --sort=-committerdate refs/heads/"
@ilansmith
ilansmith / arm_stack_size.c
Last active October 28, 2015 11:52
Chagne kernel stack size for arm processor
diff --git a/arch/arm/include/asm/thread_info.h b/arch/arm/include/asm/thread_info.h
index 870d7ff..5c5dc5b 100644
--- a/arch/arm/include/asm/thread_info.h
+++ b/arch/arm/include/asm/thread_info.h
@@ -15,8 +15,8 @@
#include <linux/compiler.h>
#include <asm/fpstate.h>
-#define THREAD_SIZE_ORDER 1
-#define THREAD_SIZE 8192
@ilansmith
ilansmith / macros.h
Last active October 27, 2017 22:45
Everything macro
/* How to return a value from a macro */
#define FUNC(num1, num2) ({ \
int __ret; \
do { \
__ret = (num1) < (num2) ? 0 : 1; \
} while (0); \
__ret; \
})