By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.
What is the 1000th prime number?
FILE_NAMES = {'ca' => 'ca.crt', | |
'cert' => 'usr.crt', | |
'key' => 'usr.key', | |
'tls-auth' => 'tls.key', | |
} | |
config = File.read(ARGV[0]) | |
FILE_NAMES.each do |tag, filename| | |
config.match(/<#{tag}>(.*?)<\/#{tag}>/m) |
import sys | |
import re | |
FILE_NAMES = {'ca': 'ca.crt', | |
'cert': 'usr.crt', | |
'key': 'usr.key', | |
'tls-auth': 'tls.key', | |
} | |
config = open(sys.argv[1]).read() |
#!/bin/bash | |
VERSION=9.6 | |
function cleanup() { | |
docker rm -f master replica >&/dev/null | |
rm -Rf /tmp/data /tmp/wal_archive | |
} | |
function wait_until_ready() { |
ENV BUILD_DIR="/tmp/tvheadend" | |
git clone https://github.com/tvheadend/tvheadend.git --branch="${VERSION}" "${BUILD_DIR}" && \ | |
"${BUILD_DIR}"/configure \ | |
--disable-cardclient \ | |
--disable-cwc \ | |
--disable-cccam \ | |
--disable-capmt \ | |
--disable-constcw \ | |
--disable-satip_server \ |
import re | |
import json | |
import pprint | |
from collections import namedtuple | |
import requests | |
pp = pprint.PrettyPrinter() | |
Video = namedtuple('Video', 'entry_id caption thumbnail') |
import time | |
import csv | |
import math | |
import board | |
import digitalio | |
import busio | |
import adafruit_lis3dh | |
spi = busio.SPI(board.SCK, board.MOSI, board.MISO) |
import sys | |
import matplotlib.pyplot as plt | |
import matplotlib.animation as mani | |
import requests | |
import numpy as np | |
session = requests.Session() | |
fig, axarr = plt.subplots(3, sharex=True) | |
curl --location https://github.com/LibreELEC/dvb-firmware/raw/master/firmware/dvb-demod-m88ds3103.fw --output /lib/firmware/dvb-demod-m88ds3103.fw
curl --location https://github.com/LibreELEC/dvb-firmware/raw/master/firmware/dvb-demod-si2168-02.fw --output /lib/firmware/dvb-demod-si2168-02.fw