Created
February 12, 2013 20:27
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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