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
defmodule ExMachinaHelper do | |
@doc """ | |
Converts all characters in the given string to a random case according to `:default` mode. | |
Useful for writing tests where sorting is of importance. | |
## Examples | |
iex> ExMachinaHelper.random_case("abcdef") | |
"AbCdEf" |
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/sh | |
brew install postgresql | |
brew services start postgresql | |
createdb `whoami` | |
# https://stackoverflow.com/questions/15301826/psql-fatal-role-postgres-does-not-exist | |
psql # to test login works | |
createuser -s postgres -P | |
psql -U postgres # to test login works |