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 / 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 / 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}$"
}
gs \
-q -dNOPAUSE -dBATCH -dSAFER \
-sDEVICE=pdfwrite \
-dNumRenderingThreads=2 \
-dEmbedAllFonts=true \
-dSubsetFonts=true \
-dDownsampleColorImages=true \
-dColorImageDownsampleType=/Bicubic \
-dColorImageResolution=72 \
-dDownsampleGrayImages=true \
@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
@OleMchls
OleMchls / shrink.sh
Last active August 1, 2017 17:35
understanding ghostscript
gs \
-q -dNOPAUSE -dBATCH -dSAFER \
-sDEVICE=pdfwrite \
-dNumRenderingThreads=2 \
-dEmbedAllFonts=true \
-dSubsetFonts=true \
-dDownsampleColorImages=true \
-dColorImageDownsampleType=/Bicubic \
-dColorImageResolution=72 \
-dDownsampleGrayImages=true \
@OleMchls
OleMchls / fonts.json
Created October 8, 2014 18:46
google fonts
{
"kind": "webfonts#webfontList",
"items": [
{
"kind": "webfonts#webfont",
"family": "Open Sans",
"category": "sans-serif",
"variants": [
"300",
"300italic",
@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",
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 / 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
config.assets.paths << Rails.root.join(Gem.loaded_specs['rails-assets-components-font-awesome'].full_gem_path, "vendor", "assets", "fonts", "components-font-awesome", "fonts")