Skip to content

Instantly share code, notes, and snippets.

{
"cells": [
{
"cell_type": "code",
"execution_count": 30,
"id": "f1bbe183-3cd3-4b5d-92c0-1083217783e3",
"metadata": {},
"outputs": [],
"source": [
"import pprint\n",
{
"cells": [
{
"cell_type": "code",
"execution_count": 30,
"id": "f1bbe183-3cd3-4b5d-92c0-1083217783e3",
"metadata": {},
"outputs": [],
"source": [
"import pprint\n",
{
cells: [
{
cell_type: "code",
execution_count: 30,
id: "f1bbe183-3cd3-4b5d-92c0-1083217783e3",
metadata: { },
outputs: [ ],
source: [
"import pprint
{
"cells": [
{
"cell_type": "code",
"execution_count": 30,
"id": "f1bbe183-3cd3-4b5d-92c0-1083217783e3",
"metadata": {},
"outputs": [],
"source": [
"import pprint\n",
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "f1bbe183-3cd3-4b5d-92c0-1083217783e3",
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd"
@lfcunha
lfcunha / gist:ede1016e9ca8bae3502c9900974cd2aa
Created May 3, 2020 16:38
ftdna_welcome_email_template
<p><span style='font-size: 12pt; font-family: verdana, geneva; color: black;'><table
style='height: 900px; background-color: #f2f2f2; margin-left: auto; margin-right: auto; width: 845px;'><tbody><tr><td
style='width: 835.333px;'><table
style='height: 850px; background-color: #ffffff; margin-left: auto; margin-right: auto;' border='0' width='744'><tbody><tr
style='height: 50px;'><td style='width: 735.00px; height: 50px;'><p style='text-align: justify;'><img
style='display: block; margin-left: auto; margin-right: auto;'
src='https://s3.us-east-2.amazonaws.com/tovana-health-uploads/logo.jpg' alt='' width='153' height='65'/>
</p></td></tr>
<tr style='height: 711px;'>
<td style='width: 735.00px; height: 711px;'><p>Dear {{customer_name}},</p>
@lfcunha
lfcunha / gist:ba9e3a19765a499b3641eaa8a98d2421
Created October 2, 2019 02:15 — forked from entaroadun/gist:1653794
Recommendation and Ratings Public Data Sets For Machine Learning

Movies Recommendation:

Music Recommendation:

@lfcunha
lfcunha / tovanahealth_api_client.py
Created December 7, 2018 00:39
TovanaHealth API usage demo
import json
import requests
from requests_aws4auth import AWS4Auth
aws_key = '<CHANGEME>'
aws_secret = '<CHANGEME>'
region = 'us-east-2'
aws_service = 'execute-api'
api_endpoint = 'https://api.tovanahealth.com/ftdna/kit'
openapi: "3.0.1"
info:
title: "tovanahealth"
version: "2018-11-29T06:50:41Z"
servers:
- url: "https://api.tovanahealth.com/{basePath}"
variables:
basePath:
default: "/ftdna"
paths:
@lfcunha
lfcunha / letsencrypt_2017.md
Created April 27, 2018 01:17 — forked from cecilemuller/letsencrypt_2020.md
How to setup Let's Encrypt for Nginx on Ubuntu 16.04 (including IPv6, HTTP/2 and A+ SLL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 16.04 (including IPv6, HTTP/2 and A+ SLL rating)

There are two main modes to run the Let's Encrypt client (called Certbot):

  • Standalone: replaces the webserver to respond to ACME challenges
  • Webroot: needs your webserver to serve challenges from a known folder.

Webroot is better because it doesn't need to replace Nginx (to bind to port 80).

In the following, we're setting up mydomain.com. HTML is served from /var/www/mydomain, and challenges are served from /var/www/letsencrypt.