Skip to content

Instantly share code, notes, and snippets.

View marvindanig's full-sized avatar

Marvin Danig marvindanig

View GitHub Profile
marvindanig / cache_storage_size.js
Created December 16, 2017 17:36 — forked from ebidel/sw_caching_size.js
Print service worker cache sizes and overall bytes cached.
* @author ebidel@ (Eric Bidelman)
* License Apache-2.0
// Prints the size of each cache in the Cache Storage API and the overall bytes cached.
async function getCacheStoragesAssetTotalSize() {
// Note: opaque (i.e. cross-domain, without CORS) responses in the cache will return a size of 0.
const cacheNames = await caches.keys();
marvindanig /
Created June 12, 2017 22:59 — forked from lukas-h/
License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.


  • Badges are made with
  • This badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.  
  • 🇫🇷 Cette liste en français

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

marvindanig /
Created August 15, 2016 06:08 — forked from oelmekki/
Rails + Browserify + React + es7

1. Gemfile

gem 'browserify-rails', '1.5.0' # until fix:
gem 'react-rails'

Browserify-rails allows to use browserify within assets pipeline. React-rails is here only to allow to use #react_component (and thus, prerendering).

Note that jquery-rails can be removed from Gemfile, the npm version of jquery and jquery-ujs will be used instead.

marvindanig / gist:10f6a4585cd9409c3afb
Last active August 29, 2015 14:10 — forked from ipedrazas/gist:6d6c31144636d586dcc3
How to chain PositiveSSL Certificates with Nginx

The process starts by creating the CSR and the private key:

openssl req -nodes -newkey rsa:2048 -nodes -keyout -out -subj "/C=GB/ST=London/L=London/O=dotmarks/OU=IT/"