This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
</head> | |
<body> | |
<video width="960" height="540" controls> | |
<source src="" type="video/mp4"> | |
</video> | |
<script type="application/javascript"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with running_queries as ( | |
select | |
pid, | |
datname as database_name, | |
(case when state='active' then now() else state_change end) - query_start as run_time, | |
backend_start, | |
xact_start, | |
query_start, | |
state_change, | |
wait_event_type, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"registry-mirrors": [ | |
"http://saturn.lan.whitehorn.us:5000" | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker pull registry | |
docker run -d -p 5000:5000 \ | |
--restart always \ | |
-e REGISTRY_PROXY_REMOTEURL='https://registry-1.docker.io' \ | |
-v /mnt/simple-storage/registry:/var/lib/registry \ | |
--name registry registry |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~> python --help | |
usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ... | |
Options and arguments (and corresponding environment variables): | |
... | |
-u : force the binary I/O layers of stdout and stderr to be unbuffered; | |
stdin is always buffered; text I/O layer will be line-buffered; | |
also PYTHONUNBUFFERED=x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.7.4 | |
RUN mkdir -p /var/app | |
WORKDIR /var/app | |
COPY . ./ | |
CMD python -u app.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
print("App running!") | |
while True: | |
time.sleep(5) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.7.4 | |
RUN mkdir -p /var/app | |
WORKDIR /var/app | |
COPY . ./ | |
CMD python app.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input = numpy.array([data[0] for data in input_data]) | |
mf = cl.mem_flags | |
temp = cl.Buffer(self.opencl_context, mf.READ_ONLY | mf.COPY_HOST_PTR, hostbuf=input) | |
a_g = temp | |
work_size = len(input_data) | |
res = None |
NewerOlder