Github markdown full-width 2 column table.
|
|
|---|
| # linux | |
| UNISON_VERSION=2.48.4 | |
| sudo apt-get -y install inotify-tools ocaml-nox build-essential | |
| curl -L https://github.com/bcpierce00/unison/archive/${UNISON_VERSION}.tar.gz | tar zxv -C /tmp | |
| cd /tmp/unison-${UNISON_VERSION} | |
| sed -i -e 's/GLIBC_SUPPORT_INOTIFY 0/GLIBC_SUPPORT_INOTIFY 1/' src/fsmonitor/linux/inotify_stubs.c | |
| make UISTYLE=text NATIVE=true STATIC=true | |
| cp src/unison src/unison-fsmonitor ~/bin | |
| # You should modify your path to include ~/bin |
| #!/usr/bin/env bash | |
| # script: watch | |
| # author: Mike Smullin <mike@smullindesign.com> | |
| # license: GPLv3 | |
| # description: | |
| # watches the given path for changes | |
| # and executes a given command when changes occur | |
| # usage: | |
| # watch <path> <cmd...> | |
| # |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000