Skip to content

Instantly share code, notes, and snippets.

View luc-tielen's full-sized avatar

Luc Tielen luc-tielen

View GitHub Profile
@luc-tielen
luc-tielen / prepare-commit-msg
Last active February 2, 2024 13:28 — forked from georgescumihai/prepare-commit-msg
Git pre commit hook to add the jira ticket id to the commit message
#!/bin/sh
# A hook script to prepare the commit log message if the branch name starts with a JIRA ticket.
# It adds the branch name to the commit message, if it is not already part of it.
# https://stackoverflow.com/questions/5894946/how-to-add-gits-branch-name-to-the-commit-message/59831864#59831864
PROJECT_PREFIX="PROJ" # TODO fill in project here
BRANCH_PATH=$(git symbolic-ref -q HEAD) # Something like refs/heads/branch_name
BRANCH_NAME=${BRANCH_PATH##*/} # Get text behind the last / of the branch path
@luc-tielen
luc-tielen / arm-none-eabi-gcc.sh
Created January 26, 2017 12:35 — forked from cjmeyer/arm-none-eabi-gcc.sh
Bash: Build Binutils, GCC, Newlib, and GDB for ARM EABI (Cross-compiler).
#! /usr/bin/env bash
# Target and build configuration.
TARGET=arm-none-eabi
PREFIX=/opt/arm-none-eabi-4.7.1
# Sources to build from.
BINUTILS=binutils-2.23.1
GCC=gcc-4.7.1
NEWLIB=newlib-1.20.0