Skip to content

Instantly share code, notes, and snippets.

Avatar
🌻
Working from home.

Baylee Schmeisser bayleedev

🌻
Working from home.
View GitHub Profile
View config_for.rb
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
View index_generator.js
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}")
{