Skip to content

Instantly share code, notes, and snippets.

@birgersp
birgersp / makefile
Last active Sep 2, 2019
A standard C++ project makefile I use for most of my projects
View makefile
# Default variables
PROJECT_NAME ?= unnamed
BUILD_DIR ?= build
BINARIES_DIR ?= bin
LIB_DIR ?= lib
SOURCES_DIR ?= src
TEST_SOURCES_DIR ?= test
INCLUDE_DIR ?= include
INCLUDES += -I$(INCLUDE_DIR)
@birgersp
birgersp / submit-git-patch.md
Last active Sep 1, 2019
Checklist to submit a git patch
View submit-git-patch.md
  1. Create the commit
  2. git format-patch origin/master
  3. git send-email --in-reply-to=SOME_MESSAGE_ID --to=git@vger.kernel.org,OTHERS NAME_OF_PATCH_FILE
View Setup Raspberry Pi chroot for cross compilation
#!/bin/bash
# https://gauvain.pocentek.net/docs/raspbian-chroot/
apt install schroot
echo \
[jessie] \
description=Raspbian armhf \
directory=/var/chroot \
You can’t perform that action at this time.