Skip to content

Instantly share code, notes, and snippets.

View mfn's full-sized avatar

Markus Podar mfn

View GitHub Profile
@mfn
mfn / http_responsetime_detailed.rb
Last active December 12, 2015 08:49 — forked from anonymous/http_responsetime_detailed.rb
Munin script written in Ruby to get more details about a single HTTP connection, namely: DNS lookup time, connect time, send request time, wait for first byte of response and response time.
#!/usr/bin/env ruby
require 'uri'
require 'socket'
if ARGV[0] and ( ARGV[0] == "-h" or ARGV[0] == "--help" )
puts "#{$0} [-h|--help] [config]"
puts "Munin plugin to measure individual HTTP timings"
puts " --help,-h Show this help"
puts " config Prints the configuration for munin"
@mfn
mfn / indent.js
Last active August 29, 2015 14:06 — forked from catearcher/indent.js
(function() {
var someVariable = {
foo: 42
},
someString = 'Well hello there.',
someOtherVariable = {
isThisVeryConfusing: true
},
// okay, please imagine 200 more lines of more declarations here
@mfn
mfn / indent.js
Last active August 29, 2015 14:06 — forked from catearcher/indent.js
(function() {
var
someVariable = {
foo: 42
},
someString = 'Well hello there.',
someOtherVariable = {
isThisVeryConfusing: true
},