Skip to content

Instantly share code, notes, and snippets.

@wouterd
wouterd / Vagrantfile
Last active October 21, 2018 12:17
Vagrant file to setup a 3-server mongo replica set and a script to intialize the mongod cluster
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
$mongoInitScript = <<-"SCRIPT"
YUM_REPO_CONFIG_PATH="/etc/yum.repos.d/mongodb.repo"
tee $YUM_REPO_CONFIG_PATH <<-"EOF"
@wouterd
wouterd / gist:6450303
Created September 5, 2013 13:44
Rewrite rule to disallow GET parameters for .swf files (shockwave flash)
# SWF's with GET parameters are not allowed (bad request)
RewriteCond %{QUERY_STRING} !^$
RewriteRule ^/.*\.swf$ - [F]