Skip to content

Instantly share code, notes, and snippets.

View TorgeH's full-sized avatar

Torge TorgeH

  • The Phoenix Lighthouse GmbH
  • Karlsruhe
View GitHub Profile
@TorgeH
TorgeH / pre-commit.sh
Last active December 19, 2019 10:48 — forked from johnjohndoe/pre-commit.sh
Git pre-commit hook to add a new line at the end of a file and remove trailing whitespaces
#!/usr/bin/env bash
#
# An example hook script to verify what is about to be committed.
# Called by "git commit" with no arguments. The hook should
# exit with non-zero status after issuing an appropriate message if
# it wants to stop the commit.
#
# Usage:
# Remove the .sh file extension when you put the script in your hooks folder!
#
@TorgeH
TorgeH / gnuize.sh
Last active October 3, 2018 06:14 — forked from clayfreeman/gnuize.sh
GNU-ize Mac OS X El Capitan
#!/bin/bash
PROFILE_FILE=$HOME/.bash_profile
PATH_FILE=$HOME/.bash_path
# Install required packages from Homebrew
brew tap homebrew/dupes
brew install coreutils binutils diffutils ed findutils gawk gnu-indent gnu-sed \
gnu-tar gnu-which gnutls grep gzip screen watch wdiff wget bash gdb gpatch \
m4 make nano file-formula git less openssh python rsync svn unzip vim \
--default-names --with-default-names --with-gettext --override-system-vi \