Opinions are like assholes, every one has got one.
This one is mine.
Punctuation is a bikeshed. Put your semicolons, whitespace, and commas where you like them.
| #!/bin/sh | |
| # warning: only tested on single line script tags, no doubt broken on multi-line | |
| # useful for includes! | |
| [ $# -eq 0 ] && { echo "Usage: ${0} file-name" ; exit 1; } | |
| $FILE=$1 | |
| sed -in '/script/{h;d};/\/body/{H;g}' $FILE |
| #!/bin/sh | |
| [ $# -eq 0 ] && { echo "Usage: ${0} version-string" ; exit 1; } | |
| VERSION=$1 | |
| BUILD_DIR=/usr/local/src/node | |
| ARC="node-v${VERSION}.tar.gz" | |
| mkdir -p $BUILD_DIR | |
| cd $BUILD_DIR |
| # Author: Pieter Noordhuis | |
| # Description: Simple demo to showcase Redis PubSub with EventMachine | |
| # | |
| # Update 7 Oct 2010: | |
| # - This example does *not* appear to work with Chrome >=6.0. Apparently, | |
| # the WebSocket protocol implementation in the cramp gem does not work | |
| # well with Chrome's (newer) WebSocket implementation. | |
| # | |
| # Requirements: | |
| # - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby |
| sudo apt-get install libcairo2-dev libjpeg8-dev libgif-dev |
| #!/bin/sh | |
| FW='/sbin/iptables' | |
| IP='123.123.123.123' # public ip | |
| LO=80 # privileged port | |
| HI=8000 # non-privileged port | |
| PM=0x2a # packet mark - 32bit integer | |
| # allow input on both ports |