Skip to content

Instantly share code, notes, and snippets.

@jmromer
jmromer / setting-up-heroku-and-cloudflare.md
Created October 8, 2023 16:18 — forked from mrispoli24/setting-up-heroku-and-cloudflare.md
Setting up Heroku and Cloudflare (the right way)

Setting up Heroku and Cloudflare (the right way)

The following outlines how to setup Heroku + Cloudflare with a full SSL certificate. What this means is that communication between the browser and the Cloudflare CDN is encrypted as well as communication between Cloudflare and Heroku’s origin server. Follow these steps exactly and the setup is a breeze.

Step 1: Set up domain names in Heroku

First you want to add the root domain and the www domain to heroku. You do this by clicking into your production application, then going to settings and then scrolling down to Domains and certificates.

Here you will add <your_domain>.com and www.<your_domain>.com. This will give you two CNAME records. They will look something like <your_domain>.com.herokudns.com and www.<your_domain>.com.herokudns.com.

Step 2: Add CNAME records to Cloudfare.

@jmromer
jmromer / list.md
Created July 17, 2023 02:57 — forked from ih2502mk/list.md
Quantopian Lectures Saved

Keybase proof

I hereby claim:

  • I am jmromer on github.
  • I am jmromer (https://keybase.io/jmromer) on keybase.
  • I have a public key ASCFQExSfD6TZ24OzE3FY4ggDb2pv7HRY3d0obFxSlBskwo

To claim this, I am signing this object:

@jmromer
jmromer / test.py
Last active April 29, 2020 01:26
#!/usr/bin/env python
import glob
import os
import pickle
import re
import subprocess
import sys
import numexpr as ne
require 'benchmark'
class Integer
def is_prime?
return true if self == 2
return false if self < 2 || self.even?
i = 3
while i**2 <= self
return false if self % i == 0
class Integer
def is_prime?
return false if self < 2
(2..Math::sqrt(self)).each do |i|
return false if self % i == 0
end
return true
end
end