A handy tip for those who use TextMate and now and then set up new WordPress installations. When filling out the unique keys and salts you can just hit the keyboard randomly, or take your cat and let it walk over your keyboard. But there is a smarter and quicker way to do this. Use the WordPress.org API and add it as a snippet to your TextMate bundle.
Bundles -> Bundle Editor -> Edit Snippets.
Now create a new snippet and insert the following:
`curl -s -L https://api.wordpress.org/secret-key/1.1/salt/`
Make sure “Tab Trigger” is activated and choose a string to trigger the command. I chose “wpsalt”.
What is does? It snaps the content right away from https://api.wordpress.org/secret-key/1.1/salt/ and returns it to your wp-config.php document.
Demonstration of the use of this snippet:
Ps. could be a nice improvement to Yoast’ WordPress TextMate Bundle.
Happy coding!