Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Dane Jensen danecjensen

🎯
Focusing
View GitHub Profile
@danecjensen
danecjensen / client.py
Created May 6, 2020 — forked from kylehounslow/client.py
Send and receive images using Flask, Numpy and OpenCV
View client.py
from __future__ import print_function
import requests
import json
import cv2
addr = 'http://localhost:5000'
test_url = addr + '/api/test'
# prepare headers for http request
content_type = 'image/jpeg'
View certbot ssl
bitnami@ip-10-136-65-200:~$ sudo certbot -d custom.sockclub.com --manual --preferred-challenges dns certonly
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator manual, Installer None
Enter email address (used for urgent renewal and security notices) (Enter 'c' to
cancel): danecjensen@gmail.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server at
View sxsw_schedule_collector.py
from bs4 import BeautifulSoup
import requests
import time
import pandas as pd
import datadotworld as ddw
import re
import string
from pyparsing import anyOpenTag, anyCloseTag
from xml.sax.saxutils import unescape as unescape
unescape_xml_entities = lambda s: unescape(s, {"'": "'", """: '"', " ":" "})