Skip to content

Instantly share code, notes, and snippets.

View OleMchls's full-sized avatar
🎯
Focusing

Ole Michaelis OleMchls

🎯
Focusing
View GitHub Profile
@OleMchls
OleMchls / index.php
Last active August 29, 2015 13:56
My SOA talk ESI example
<?php header('Surrogate-Control: "ESI/1.0"'); ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>My super simple ESI example</title>
</head>
<body>
<p>Hello world! This is my super simple ESI example.</p>
<aside><esi:include src="my-other-service.example.com/sidebar.html" /></aside>
config.assets.paths << Rails.root.join(Gem.loaded_specs['rails-assets-components-font-awesome'].full_gem_path, "vendor", "assets", "fonts", "components-font-awesome", "fonts")
@OleMchls
OleMchls / demo.rb
Created March 31, 2014 22:41
I want to have collectors in librato ruby library
Librato::Metrics::Collector.new(50) do |collector|
collector.measure = Users.count
end
2014-06-20T22:47:47.159839+00:00 app[worker.1]:
2014-06-20T22:47:47.159847+00:00 app[worker.1]: **** This file had errors that were repaired or ignored.
2014-06-20T22:47:47.159966+00:00 app[worker.1]: **** Please notify the author of the software that produced this
2014-06-20T22:47:47.159987+00:00 app[worker.1]: **** file that it does not conform to Adobe's published PDF
2014-06-20T22:47:47.160005+00:00 app[worker.1]: **** specification.
2014-06-20T22:47:47.160007+00:00 app[worker.1]:
2014-06-20T22:47:58.650510+00:00 app[worker.1]: GPL Ghostscript 8.71: Failed to interpret TT instructions for glyph index 107 of font MUFUZY+MerriweatherSans-Bold. Continue ignoring instructions of the font.
@OleMchls
OleMchls / music.json
Last active August 29, 2015 14:03
template-team-standup-music
[
"W-SXBYTgXhg",
"jofNR_WkoCE",
"X0DeIqJm4vM",
"2WNrx2jq184",
"JuMlHdxiIZ8",
"D9HvS_niU50",
"37ZaSINRDGM",
"MWUJvTyl-m4",
"U_hrYz_2uAk",
@OleMchls
OleMchls / swarm.rb
Created January 17, 2015 13:25
sawrm in ruby DSL
extend GiantSwarm::Component
application 'slidr.io'
service 'api' do
component 'app' do
image "registry.giantswarm.io/nesquick/slidrio:latest"
end
gs \
-q -dNOPAUSE -dBATCH -dSAFER \
-sDEVICE=pdfwrite \
-dNumRenderingThreads=2 \
-dEmbedAllFonts=true \
-dSubsetFonts=true \
-dDownsampleColorImages=true \
-dColorImageDownsampleType=/Bicubic \
-dColorImageResolution=72 \
-dDownsampleGrayImages=true \
@OleMchls
OleMchls / example.cong
Created May 8, 2015 10:08
logstash heroku
input {
heroku {
app => "your-app-0001"
}
}
filter {
grok {
pattern => "^%{TIMESTAMP_ISO8601:timestamp} %{WORD:component}\[%{WORD:process}(?:\.%{INT:instance:int})?\]: %{DATA:message}$"
}
@OleMchls
OleMchls / abstract.md
Created July 9, 2015 21:19
Whirlwind tour through the HTTP2 spec

Whirlwind tour through the HTTP2 spec

The HTTP protocol has made a long way since its first version HTTP V0.9 in 1991 and with the final release of the HTTP2 spec at the beginning of 2015 a whole next chapter of web development is ahead of us! After a quick tour through the protocol history, we will mine the gems from in HTTP/2 spec and see why this is an awesome step for a modern web. We will also see what you can already use today and why today's best practices are tomorrow's antipatterns.

@OleMchls
OleMchls / abstract.md
Created September 29, 2015 10:01
A tale of adventures in technology when loading a website

A tale of adventures in technology when loading a website

In our daily life we rely heavily on technology. Even as technically advanced people we don’t know every bit involved in the modern web. I will take you on an adventurous tour of browsing the web, understanding the nitty gritty details of networking, name resolution, global network providers, and the HTTP/2 protocol.