Skip to content

Instantly share code, notes, and snippets.

View mlawrie's full-sized avatar

Michael Lawrie mlawrie

View GitHub Profile
@mlawrie
mlawrie / install_weinre.sh
Created February 12, 2013 20:27
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
@mlawrie
mlawrie / ssl_setup_example.sh
Last active October 18, 2018 12:49
Create an SSL Certificate Signing Request on OSX with wildcard and alternate names
# First, generate the key. You will be prompted to enter a password, but we will strip it out in the next step:
openssl genrsa -des3 -out server.orig.key 2048
# Then, stip out the password:
openssl rsa -in server.orig.key -out server.key
# Edit the OSX openssl config file to include your alternate names.
# Edit the 'subjectAltName' field. E.g.:
@mlawrie
mlawrie / .bash_profile
Last active October 11, 2015 14:08
My .bash_profile
#Android SDK
M2_HOME=/usr/local/apache-maven
ANDROID_HOME=/usr/local/android-sdk-macosx
PATH=$PATH:$M2_HOME:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools
#RVM
PATH=$PATH:$HOME/.rvm/bin
#Local bin
PATH=$PATH:$HOME/bin