This file contains hidden or 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
How to install cortex-m3 gdb? | |
sudo apt-get -o Dpkg::Options::="--force-overwrite" install gdb-arm-none-eabi | |
reference: http://askubuntu.com/questions/596302/e-sub-process-usr-bin-dpkg-returned-an-error-code-1-problem-with-dpkg |
This file contains hidden or 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
http://askubuntu.com/questions/647409/to-install-wipefs-in-ubuntu | |
sudo apt-get install util-linux | |
sudo apt-get install apt-file | |
sudo apt-file update | |
apt-file search wipefs | |
which wipefs | |
This file contains hidden or 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
#include<stdio.h> | |
#include<stdint.h> | |
#include<stdlib.h> | |
//Ref: http://www.slideshare.net/gkumar007/bits-next-higher-presentation | |
/* | |
x CAFE01F0 | |
-x 3501FE10 | |
smallest:x &-x 00000010 | |
ripple:x+ (x&-x) CAFE0200 |
This file contains hidden or 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
# INSTALL INSTRUCTIONS: save as ~/.gdbinit | |
# | |
# DESCRIPTION: A user-friendly gdb configuration file. | |
# | |
# REVISION : 7.3 (16/04/2010) | |
# | |
# CONTRIBUTORS: mammon_, elaine, pusillus, mong, zhang le, l0kit, | |
# truthix the cyberpunk, fG!, gln | |
# | |
# FEEDBACK: https://www.reverse-engineering.net |
This file contains hidden or 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
Source Code of the Programs in The Linux Programming Interface | |
http://man7.org/tlpi/code/index.html |
This file contains hidden or 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
# Ref: https://www.unixmen.com/how-to-enable-core-dumps-in-rhel6/ | |
# sudo vi /etc/security/limits.conf | |
#* soft core 0 | |
* soft core unlimited | |
# sudo vi /etc/sysctl.conf | |
kernel.core_pattern = /tmp/core-%e-%s-%u-%g-%p-%t |
This file contains hidden or 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
yum commands: | |
yum info package-name | |
yum install package-name | |
rpm -ql package-name | |
yum search libudev | |
g++ | |
From https://gist.github.com/craigminihan/b23c06afd9073ec32e0c | |
153 g++ --version |
This file contains hidden or 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
git clone https://github.com/Shengliang/rails.git | |
cd rails | |
git remote -v | |
git remote add upstream https://github.com/rails/rails.git | |
git remote -v | |
git fetch upstream | |
export EDITOR=vim | |
git rebase -i upstream/master |
This file contains hidden or 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
https://gorails.com/setup/osx/10.12-sierra |
This file contains hidden or 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
Flame graphs are a visualization of profiled software, allowing the most frequent code-paths | |
to be identified quickly and accurately. | |
http://www.brendangregg.com/Slides/LISA13_Flame_Graphs.pdf | |
http://www.brendangregg.com/flamegraphs.html | |
git clone https://github.com/brendangregg/FlameGraph.git | |
# example 1 |