Gatling How-To: Installation and Execution on OS X

This is here for my own reference, but may help others.  I’m a software craftsman on a Mac, and I use Homebrew whenever possible.  So, the info here relates to that.

Prerequisite: Java must be installed (i.e. brew cask install java).

      1. Install Scala via Homebrew: brew install scala
        • Optionally: Install Scala plugin in IntelliJ
      2. Download from https://gatling.io/download/
      3. Extract and place the folder in /usr/local/Cellar/gatling/gatling-charts-highcharts-bundle-2.3.1
      4. Navigate to gatling folder
      5. Set the directory settings in /conf/gatling.conf
      6. Create a test.scala file in /user-files/simulations
      7. Go to the terminal and run /usr/local/Cellar/gatling/gatling-charts-highcharts-bundle-2.3.1/bin/gatling.sh
      8. To run from IntelliJ via Maven:
        gatling:execute -Dgatling.simulationClass=TestSimulation -f pom.xml

Install sqlcmd on Mac OS X

In case you need to run SQL Server scripts from your Mac, do the following to install (NOTE: I use HomeBrew.):

    • From the terminal, type:

brew tap microsoft/mssql-release https://github.com/Microsoft/homebrew-mssql-release
ACCEPT_EULA=y brew install --no-sandbox msodbcsql mssql-tools

    • You should see something like in the screenshot. Type “YES” if prompted and be on your way.
    • Once done, type:

sqlcmd

Enable root in OS X Yosemite and El Capitan

I needed to do some file moving between users and noticed my admin account didn’t have access, so I tried “su” and “sudo” without success. Apparently, like it Yosemite, root access is disabled by default. Here’s how to enable it:


1. Open Directory Utility (I usually do it via CMD + spacebar, then type "dire")
2. Go to the Edit menu and select "Enable Root User".
3. Enter your desired root password twice.
4. That's it!

Test it out in the terminal by doing:


$ su -

Happy rooting, yo!

Homebrew: How to install on OS X

Since moving to OS X in 2011/2012 for work to do all my development, I’ve moved Homebrew to a must-have. Adding it here for archiving purposes.

From a terminal:


1. /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2. brew tap caskroom/cask

The 2nd point is to install Homebrew Cask as well, which extends Homebrew’s functionality.

Now get brewing!