This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= @content %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
config.vm.box = "precise" | |
end | |
script = <<SCRIPT | |
apt-get update | |
SCRIPT | |
Vagrant.configure("2") do |config| | |
config.vm.provision :shell, :inline => script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant plugin install vagrant-cachier | |
cat << 'EOF' > ~/.vagrant.d/Vagrantfile | |
Vagrant.configure("2") do |config| | |
config.cache.auto_detect = true | |
end | |
EOF | |
# for composer support: https://github.com/fgrehm/vagrant-cachier/pull/48 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listen 443 ssl; | |
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; | |
ssl_ciphers kECDH:HIGH:!aNULL:!MEDIUM:!LOW:!NULL:!SSLv2:!ADH@STRENGTH; | |
ssl_prefer_server_ciphers on; | |
ssl_certificate /path/to/file.crt; | |
ssl_certificate_key /path/to/file.key; | |
#to enable forward secrecy. Generate the file using | |
#openssl dhparam -outform PEM -out dh.pem 1024 | |
ssl_dhparam /path/to/dh.pem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- ./Optimizer/block_pass.c 2013-11-14 22:13:53.000000000 +0100 | |
- * defined. We won't apply some optimization patterns for sush variables. */ | |
--- ./Optimizer/compact_literals.c 1970-01-01 01:00:00.000000000 +0100 | |
--- ./Optimizer/optimize_func_calls.c 1970-01-01 01:00:00.000000000 +0100 | |
--- ./Optimizer/pass1_5.c 2013-11-14 22:13:53.000000000 +0100 | |
- * - convert INTI_FCALL_BY_NAME, DO_FCALL_BY_NAME into DO_FCALL | |
- break; | |
- case ZEND_INIT_FCALL_BY_NAME: | |
- if (opline->extended_value == 0 /* not method */ && | |
- ZEND_OP1_TYPE(opline) == IS_UNUSED && |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#https://rubygems.org/gems/bib-vagrant | |
Vagrant.require_plugin "bib-vagrant" | |
Vagrant.configure("2") do |config| | |
bibconfig = Bib::Vagrant::Config.new() | |
vagrantconfig = bibconfig.get | |
config.vm.synced_folder "./../", "/vagrant_data", :owner => "vagrant", :nfs => vagrantconfig["nfs"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
require 'haproxy' | |
haproxy = HAProxy.read_stats '/tmp/haproxy.sock' | |
statsd = UDPSocket.new | |
haproxy.stats.each do |hi| | |
if ['BACKEND', 'FRONTEND'].include?(hi[:svname]) | |
%w(scur smax ereq econ rate hrsp_2xx hrsp_3xx hrsp_4xx hrsp_5xx).each do |statname| | |
stat = "haproxy.#{hi[:svname]}.#{hi[:pxname]}.#{statname}:#{hi[statname.to_sym]}|g" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function ☠($message = null) { | |
die($message); | |
} |
OlderNewer