Skip to content

Instantly share code, notes, and snippets.

View tristan0x's full-sized avatar

Tristan Carel tristan0x

View GitHub Profile
@tristan0x
tristan0x / README.md
Last active August 7, 2017 01:38
Git commit client hook

Git commit client hook

Provides Git hook enforcing commit message.

  • first line length must be less than 50 characters.
  • if applicable, second line may be empty.
  • length of every lines may be less than 72 characters.

Installation instructions

#!/bin/bash
JAVA="jdk-8u5-linux-x64"
JAVA_URL="http://download.oracle.com/otn-pub/java/jdk/8u5-b13/$JAVA.tar.gz"
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" $JAVA_URL
mkdir -p ~/java
tar -xzf $JAVA.tar.gz -C ~/java --strip-components=1