Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block snoe925

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View pi-dockerfile
FROM balenalib/armv7hf-debian
# setup all the stuff to build dump1090
RUN apt update -qq && \
apt-get install -y git git-core cmake usbutils libusb-1.0-0-dev build-essential \
debhelper dh-systemd librtlsdr-dev libbladerf-dev \
pkg-config libncurses5-dev lighttpd vim
CMD ["/bin/bash"]
View build-dump1090
sudo apt install -y build-essential debhelper dh-systemd librtlsdr-dev libusb-1.0-0-dev
sudo apt install -y git pkg-config libncurses5-dev lighttpd libbladerf-dev
cd ~/
git clone --depth 1
cd dump1090
dpkg-buildpackage -b -rfakeroot -us -uc
sudo dpkg -i ../dump1090-fa_3.7.1_armhf.deb
View zeitgit
git config core.repositoryformatversion >/dev/null
if [ $? -ne 0 ]; then
echo "Not a git repository" >&2
exit 1
if [ "$1" = "enable" ]; then
snoe925 / gist:b32beb6e6cf89ae3fa4368bc3fc271b3
Created Nov 8, 2018
Using -finstrument-functions to trace function calls with call-trace
View gist:b32beb6e6cf89ae3fa4368bc3fc271b3
Using the debugger or profiler to trace function calls can be a bit tedious.
This repository implements the call trace in the executable.
apt-get install -y binutils-dev libbfd-dev libiberty-dev
My install was missing the demangle.h header. I could not find the DMGL defines so I inlined them.
I was patching an existing C build. I just included the code in one of the C files.
Then compile and link with -finstrument-functions.
You can’t perform that action at this time.