Skip to content

Instantly share code, notes, and snippets.

@mlawrie
Created February 12, 2013 20:27
Show Gist options
  • Save mlawrie/4773083 to your computer and use it in GitHub Desktop.
Save mlawrie/4773083 to your computer and use it in GitHub Desktop.
Script to install weire and set it up for unrestricted access. To run: curl https://gist.github.com/mlawrie/4773083/raw/install_weinre.sh | sh
#!/bin/bash
path=`which npm`;
if [ "$path" == "" ];
then
curl https://npmjs.org/install.sh | sh
fi
npm -g install weinre
mkdir ~/.weinre
echo "boundHost: -all-
httpPort: 8080
reuseAddr: true
readTimeout: 1
deathTimeout: 5" > ~/.weinre/server.properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment