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 / fuehrungen.txt
Created August 23, 2015 09:16
Nerdtours Berlin
Ideen, Kontakte, etc
* Bombardier Henningsdorf
* Gasturbinenwerk Siemens
* Mercedes Benz Werk Berlin
* behala
* http://berliner-unterwelten.de/
* http://www.50hertz.com/de/50Hertz - die unterirdische hochspannungsleitung durch B kann man angeblich besichtigen?
* http://www.ard-infocenter.de/ard-zum-mitmachen/fuehrungen/index.html
* http://www.axelspringer.de/dl/26482/InfoFlyer_Besuchermanagement_2013.pdf
Reading /home/vagrant/.composer/cache/repo/http---wpackagist.org/provider-wpackagist$infinite-scroll.json from cache
[ErrorException]
Undefined index: uid
Exception trace:
ssl = {
key = "/etc/prosody/certs/zwoop.de.pem";
certificate = "/etc/prosody/certs/zwoop.de.pem";
options = { "no_sslv2", "no_ticket", "no_compression", "no_sslv3" };
--ciphers = "kECDH:HIGH:!MEDIUM:!LOW:!NULL:!DSS:!eNULL:!AES128:!CAMELLIA128:!3DES:!DES:!aNULL@STRENGTH";
--openssl dhparam -outform PEM -out dhparam.pem 4096
dhparam = "/etc/prosody/certs/dhparam.pem"
}
<?php
function ☠($message = null) {
die($message);
}
#! /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"
#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"]
@fh
fh / gist:7483360
Last active December 28, 2015 09:59
--- ./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 &&
@fh
fh / nginx.conf
Last active December 28, 2015 04:48
My Crypto Configs
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;
@fh
fh / vagrant_cachier.txt
Created October 21, 2013 09:34
how to get vagrant cachier up and runing
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
@fh
fh / Vagrantfile
Last active December 23, 2015 09:35
Provisioning Shell Script inline
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