Skip to content

Instantly share code, notes, and snippets.

View tilsammans's full-sized avatar

Joost Baaij tilsammans

View GitHub Profile
@tilsammans
tilsammans / cookie_consent_opt_in.js
Created May 28, 2018 16:53
Activate inert HTML after a true Cookie Consent opt-in
@tilsammans
tilsammans / config.rb
Created August 7, 2017 16:31
Middleman Netlify HTTP/2 Server Push
ready do
# Insert fingerprinted asset paths into _headers for Netlify.
proxy "/_headers", "/headers.txt",
layout: false,
locals: {
# these variables will be different for you. Add at will!
all_css: sitemap.find_resource_by_path('css/all.css'),
vendor_js: sitemap.find_resource_by_path('js/vendor.js'),
main_js: sitemap.find_resource_by_path('js/main.js')
},
@tilsammans
tilsammans / Dockerfile
Last active August 28, 2018 12:27
Source for our Rails CI containers. Repo at https://github.com/spacebabies/rails-ci
FROM ruby:2.5.1-slim
MAINTAINER Space Babies <info@spacebabies.nl>
LABEL description="Continuous Integration of our Rails apps"
# Install dependencies:
# - libxml2, zlib1g-dev, liblzma-dev: nokogiri and friends
# - libpq-dev: needed to build `pg`
# - libmysqlclient-dev: needed to build `mysql2`
RUN apt-get update --quiet && apt-get install --no-install-recommends --quiet --yes \