Skip to content

Instantly share code, notes, and snippets.

View keesvanbochove's full-sized avatar

Kees van Bochove keesvanbochove

View GitHub Profile
@keesvanbochove
keesvanbochove / enter.sh
Last active March 15, 2022 10:23 — forked from mcheshkov/build.sh
Building OpenZFS for Fedora CoreOS
toolbox enter
@keesvanbochove
keesvanbochove / gist:4319624
Created December 17, 2012 16:29 — forked from Cosmicist/gist:3860074
Use this script as git pre-commit hook to automatically minify JS and CSS files in a Grails project (specifically GSCF in this case, https://github.com/thehyve/GSCF). Installation instructions: put this text in .git/hooks/pre-commit, and make it executable (shmod +x pre-commit). Also, install yuicompressor, e.g. via 'brew install yuicompressor' …
#!/bin/bash
# Search YUI Compressor anywhere in your home dir
echo "Searching for YUI Compressor..."
YUIC=`which yuicompressor`
if ! [ $YUIC ]
then
echo "Unable to find YUI Compressor! Goodbye!"
exit
fi