Skip to content

Instantly share code, notes, and snippets.

View fh's full-sized avatar
😫
Send me an email. Messaging me here will take months to react.

Florian Holzhauer fh

😫
Send me an email. Messaging me here will take months to react.
View GitHub Profile
@fh
fh / Vagrantfile
Created August 8, 2013 06:40
Vagrantfile: Name your Vagrantbox
Vagrant.configure("2") do |config|
config.vm.provider :virtualbox do |vb|
# list of all parameters for the customize call:
# VBoxManage modifyvm
vb.customize [
"modifyvm", :id,
"--name", "Some name for some box",
"--memory", "512"
]
end
@fh
fh / app.yml.erb
Last active March 28, 2019 14:00
Generating a Yaml Config file with Chef
<%= @content %>
@fh
fh / post-check.vcl
Last active October 8, 2015 19:28
varnish.vcl
if (
req.http.user-agent ~ "^$"
|| req.http.user-agent ~ "^Java"
|| req.http.user-agent == "Mozilla/4.0 (compatible; MSIE 5.0; Windows 3.1)"
|| req.http.user-agent == "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; MRA 4.6 (build 01425); .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
|| req.http.user-agent == "Mozilla/5.0 (X11; U; Linux i686; rv:1.9) Gecko/2008080808 Firefox/3.0"
|| req.http.user-agent == "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/523.15 (KHTML, like Gecko) Version/3.0 Safari/523.15"
|| req.http.user-agent == "Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.13) Gecko/2009073022 Firefox/3.0.13"
|| req.http.user-agent == "Mozilla/5.0 (Windows NT 5.1; U; en) Opera 8.01"
|| req.http.user-agent == "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5"