Skip to content

Instantly share code, notes, and snippets.

View thaliaarchi's full-sized avatar

Thalia Archibald thaliaarchi

View GitHub Profile
@thaliaarchi
thaliaarchi / pre-commit
Last active June 7, 2018 20:03 — forked from guilherme/gist:9604324
Git pre-commit hook that detects if the developer forget to remove all javascript console.log statements before commit.
#!/bin/sh
# Prevent console.log from appearing in commits
# https://gist.github.com/guilherme/9604324
# Redirect output to stderr
exec 1>&2
# Enable user input
exec < /dev/tty
consoleregexp='^\+.*console\.log'
@thaliaarchi
thaliaarchi / install_gtest_ubuntu.md
Last active May 31, 2018 04:03 — forked from Cartexius/install_gtest_ubuntu.md
Install gtest in Ubuntu