All configuration options can be found on the MongoDB Docs
Was
production:
sessions:
All configuration options can be found on the MongoDB Docs
Was
production:
sessions:
RYAML = <<-BASH | |
function ryaml { | |
ruby -ryaml -e 'puts ARGV[1..-1].inject(YAML.load(File.read(ARGV[0]))) {|acc, key| acc[key] }' "$@" | |
}; | |
BASH | |
namespace :sync do | |
task :db do | |
isolate do | |
invoke :environment |
/* Colors */ | |
.red {color:#A3293D!important} | |
.pink{color:#FD9FC1!important} | |
.salmon{color:rgba(253, 160, 150, 1)!important} | |
.lgreen{color:#A9D12B!important} | |
.green{color:#748A30!important} | |
.teal {color:#07AB8F!important} | |
.sky {color:#76C6F3!important} | |
.skyblue {color:#43A4EF!important} |
# lib/tasks/db.rake | |
namespace :db do | |
desc "Dumps the database to db/APP_NAME.dump" | |
task :dump => :environment do | |
cmd = nil | |
with_config do |app, host, db, user| | |
cmd = "pg_dump --host #{host} --username #{user} --verbose --clean --no-owner --no-acl --format=c #{db} > #{Rails.root}/db/#{app}.dump" | |
end | |
puts cmd |
Requires creative mode or operator power on a multiplayer server. On a single player game (survival or hardcore), you will need "cheats" enabled to move into creative mode. Don't forget to leave creative mode when done.
These items might be stupid. Be prepared to repair the country-side.
Hello software developers,
Please check your code to ensure you're not making one of the following mistakes related to cryptography.
I hereby claim:
To claim this, I am signing this object:
self.addEventListener('fetch', async (event) => { | |
const response = await fetch(event.request); | |
const cache = await caches.open('cache-v1'); | |
if (response.ok === true) { | |
cache.put(event.request, response); | |
event.respondWith(response); | |
} else { | |
event.respondWith(cache.match(event.request)); |
// derived from http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Parallel_algorithm | |
function map() { | |
emit(1, // Or put a GROUP BY key here | |
{sum: this.value, // the field you want stats for | |
min: this.value, | |
max: this.value, | |
count:1, | |
diff: 0, // M2,n: sum((val-mean)^2) | |
}); |