Skip to content

Instantly share code, notes, and snippets.

View bayleedev's full-sized avatar
🍿

Baylee Schmeisser bayleedev

🍿
View GitHub Profile
module YourApp
class Application < Rails::Application
# Convenience for loading config/foo.yml for the current Rails env.
#
# Example:
#
# config/cleversafe.yml:
#
# production:
# url: http://127.0.0.1:8080
var r = new RegExp("system");
db.getCollectionNames().forEach(
function(c){
if(!r.test(c)){
var indexes = db[c].getIndexes();
indexes.forEach(function(i){
var val = i["key"].toSource();
var trimmedValue = val.substr(1,val.length-2);
if (trimmedValue !="{_id:1}")
{