Skip to content

Instantly share code, notes, and snippets.

@gausnes
gausnes / npm-local
Last active June 3, 2022 15:34
NPM Local Publishing Tool
#!/bin/sh
if [ "$1" != "install" ]; then
echo "Invalid argument ($1), example usage: npm-local install @privaterepo/package ../path/to/package/root"
exit -1
elif [ -z "$2" ]; then
echo "Invalid argument ($2), example usage: npm-local install @privaterepo/package ../path/to/package/root"
exit -1
elif [ -z "$3" ]; then
echo "Invalid argument ($3), example usage: npm-local install @privaterepo/package ../path/to/package/root"
@johnferrie
johnferrie / _filter.sass
Created October 4, 2012 21:08
CSS3 Filter Effects Sass Mixin
// https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html
//
// grayscale ex: filter: grayscale(100%);
// sepia ex: filter: sepia(100%);
// saturate ex: filter: saturate(0%);
// hue-rotate ex: filter: hue-rotate(45deg);
// invert ex: filter: invert(100%);
// brightness ex: filter: brightness(15%);
// contrast ex: filter: contrast(200%);
// blur ex: filter: blur(2px);
@samnang
samnang / gist:1759336
Created February 7, 2012 11:52
Install Bash version 4 on MacOS X
# Install Bash 4 using homebrew
brew install bash
# Or build it from source...
curl -O http://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz
tar xzf bash-4.2.tar.gz
cd bash-4.2
./configure --prefix=/usr/local/bin && make && sudo make install
# Add the new shell to the list of legit shells