Skip to content

Instantly share code, notes, and snippets.

View marvindanig's full-sized avatar

Marvin Danig marvindanig

View GitHub Profile
@marvindanig
marvindanig / doc.md
Created August 15, 2016 06:08 — forked from oelmekki/doc.md
Rails + Browserify + React + es7

1. Gemfile

gem 'browserify-rails', '1.5.0' # until fix: https://github.com/browserify-rails/browserify-rails/issues/101
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.

@import url('//fonts.googleapis.com/css?family=Source+Serif+Pro|Josefin+Sans');
body {
background: #fff;
margin: 0 0;
overflow: hidden;
color: #444;
font: 3.6vw/1.2 'Source Serif Pro', serif;
}
<div class="leaf flex">
<div class="inner justify ">
<h1> Hello world! </h1>
<p> Lorem ipsum dolor sit amet, <a href="https://wikipedia.com">consectetur</a> adipiscing elite... </p>
</div>
</div>
@marvindanig
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 dotmarks.net.key -out dotmarks.net.csr -subj "/C=GB/ST=London/L=London/O=dotmarks/OU=IT/CN=dotmarks.net"

Generates

  • dotmarks.net.key
  • dotmarks.net.csr