Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
#!/usr/bin/env python | |
import os | |
import subprocess | |
# First, build up the results file. it'll have the form: | |
# 110 vidioc-g-dv-preset.xml | |
linecount_cmd = "rm results; for i in *; do find $i -execdir wc -c '{}' \; " + \ | |
">> results; done;" | |
os.system(linecount_cmd) |
# | |
# Wide-open CORS config for nginx | |
# | |
location / { | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Allow-Origin' '*'; | |
# |
#!/usr/bin/env python | |
# numpy and biopython are required -- pip install numpy biopython | |
from Bio import Entrez | |
from Bio import Medline | |
MAX_COUNT = 10 | |
TERM = 'Tuberculosis' | |
print('Getting {0} publications containing {1}...'.format(MAX_COUNT, TERM)) |
* { | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} |
<!DOCTYPE html> | |
<html> | |
<head><title>SOUND</title></head> | |
<body> | |
<div>Frequence: <span id="frequency"></span></div> | |
<script type="text/javascript"> | |
var audioCtx = new (window.AudioContext || window.webkitAudioContext)(); | |
var oscillatorNode = audioCtx.createOscillator(); | |
var gainNode = audioCtx.createGain(); |
/** | |
* GridEye LED Array Demo | |
* Author: Shawn Hymel (SparkFun Electronics) | |
* Date: May 1, 2018 | |
* | |
* Displays a heat map of what the GridEye sees (8x8 pixels). | |
* | |
* Required Components | |
* - Arduino: https://www.sparkfun.com/products/13975 | |
* - Qwiic Shield: https://www.sparkfun.com/products/14352 |
Follow these steps to update the SSL certificate of the ingress in a Rancher High Availability installation or switch from the default self-signed to a custom certificate:
tls-rancher-ingress
k8s secret resource with the new certificate and private keytls-ca
k8s secret resource with the root CA certificate (only required when using a private CA)Quick bash function to make my life easier when sshing into Rancher nodes. Make sure to update your default web browser download directory by modifying line 2 of the script. For mac: brew install findutils