Skip to content

Instantly share code, notes, and snippets.

@kleinron
Created December 6, 2015 14:45
Show Gist options
  • Save kleinron/b7cfb8e96333b2bb3311 to your computer and use it in GitHub Desktop.
Save kleinron/b7cfb8e96333b2bb3311 to your computer and use it in GitHub Desktop.
Display CouchBase credentials
sudo /opt/couchbase/bin/erl -noinput -eval 'case file:read_file("/opt/couchbase/var/lib/couchbase/config/config.dat") of {ok, B} -> io:format("~p~n", [binary_to_term(B)]) end.' -run init | grep cred
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment