Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
</head>
<body>
<video width="960" height="540" controls>
<source src="" type="video/mp4">
</video>
<script type="application/javascript">
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,
"registry-mirrors": [
"http://saturn.lan.whitehorn.us:5000"
]
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
We couldn’t find that file to show.
~> 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
FROM python:3.7.4
RUN mkdir -p /var/app
WORKDIR /var/app
COPY . ./
CMD python -u app.py
@jwhitehorn
jwhitehorn / app.py
Last active November 30, 2019 21:44
import time
print("App running!")
while True:
time.sleep(5)
FROM python:3.7.4
RUN mkdir -p /var/app
WORKDIR /var/app
COPY . ./
CMD python app.py
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