Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View MC42's full-sized avatar

Kim MC42

View GitHub Profile

Let's Encrypt certbot ACME client manual DNS challenge

certbot certonly [--dry-run] --manual --preferred-challenges dns-01 \
--domain example.com --domain www.example.com [...]

For each host passed via --domain, Let's Encrypt will prompt the user to create an _acme-challenge TXT record (_acme-challenge.example.com, _acme-challenge.www.example.com, etc.) with a specific value.

2019/10/25 Foocars 1-Day Build

sudo apt install libjpeg-dev zlib1g-dev libatlas-base-dev #all were missing, libatlas was needed for pillow dependency

copy over a weight model, ulysses has default weights in the GH.

install libhdf5-dev for h5py

patch the defines.py to include the system name via socket.gethostname()

#!/bin/bash
curl -s https://api.github.com/repos/opencv/opencv/releases/latest \
| grep "browser_download_url.*zip" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
@MC42
MC42 / camera.py
Created June 29, 2019 03:56 — forked from joinAero/camera.py
Use Kinect with OpenCV (Python)
import cv2
import sys
class Camera(object):
def __init__(self, index=0):
self.cap = cv2.VideoCapture(index)
self.openni = index in (cv2.CAP_OPENNI, cv2.CAP_OPENNI2)
self.fps = 0
@MC42
MC42 / list.txt
Last active September 9, 2018 04:58
2019 Rookies (FRC)
7400 ThunderMiners Melville NY
7401 ACME Academy Concord CA
7403 Lightning Blue Lizards Envigado ANT
7404 HighTide Ventura CA
7405 IcyNights Zhangjiagang 32
7406 Ministry of Mechanics Cleveland TN
7407 Wired Boars Wallingford CT
7408 Pearl City Cats Boca Raton FL
Bihler of America & Bridgewater-Raritan High School & Midland School 2004
Bihler of America & Bridgewater-Raritan High School & Midland School 2004
Bihler of America & Bridgewater Raritan Regional High School & The Midland School 2005
Bihler of America & Bridgewater Raritan Regional High School & The Midland School 2005
Bihler of America & Bridgewater Raritan Regional High School & The Midland School 2006
Bihler of America & Bridgewater Raritan Regional High School & The Midland School 2006
Pressure Tube Manufacturing & Bridgewater Raritan Regional High School & The Midland School 2007
Pressure Tube Manufacturing & Bridgewater Raritan Regional High School & The Midland School 2007
Pressure Tube Manufacturing & Bridgewater Raritan Regional High School 2008
Pressure Tube Manufacturing & Bridgewater Raritan Regional High School 2008
import csv
import requests
from tqdm import tqdm
baseURL = 'http://www.thebluealliance.com/api/v2/'
header = {'X-TBA-App-Id': 'tjf:thepythonalliance:award_math'}
most = ["",0]
rows = []
with open('teams.csv', 'r') as csvfile:
spamreader = csv.reader(csvfile, delimiter=',')