Skip to content

Instantly share code, notes, and snippets.

View jack-douglas's full-sized avatar

Jack Douglas jack-douglas

View GitHub Profile
<html>
<head>
<title>Time Display</title>
<link rel="stylesheet" type="text/css" href="./css/dank-mono.css">
<link rel="stylesheet" href="./css/all.css">
<script defer src="./js/all.js"></script>
<style>
body {
<!DOCTYPE html>
<html>
<head>
<style>
body {
background: #1d1d1d;
color: rgb(15, 184, 29);
font-family: monospace;
@arturadib
arturadib / pre-commit
Last active December 21, 2023 08:54
Pre-commit hook to prevent debug code from being committed
#
# Paste this script in your .git/hooks/pre-commit file (create one if it doesn't exist yet)
# To prevent debug code from being accidentally committed, simply add a comment near your
# debug code containing the keyword !nocommit and this script will abort the commit.
#
if git commit -v --dry-run | grep '!nocommit' >/dev/null 2>&1
then
echo "Trying to commit non-committable code."
echo "Remove the !nocommit string and try again."