##《》〈〉﹏_「」
This file contains 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.5.2 | |
ENV TZ=Asia/Shanghai | |
RUN apt-get update \ | |
&& apt-get install -y cron \ | |
&& apt-get autoremove -y | |
COPY ./cronpy /etc/cron.d/cronpy | |
CMD ["cron", "-f"] |
This file contains 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
#!/bin/bash | |
Size=3 | |
if [ -z "${DOCKER_MACHINE_DRIVER}" ]; then | |
DOCKER_MACHINE_DRIVER=virtualbox | |
fi | |
# REGISTRY_MIRROR_OPTS="--engine-registry-mirror https://jxus37ac.mirror.aliyuncs.com" | |
# INSECURE_OPTS="--engine-insecure-registry 192.168.99.0/24" |
This file contains 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 info | |
Containers: 0 | |
Running: 0 | |
Paused: 0 | |
Stopped: 0 | |
Images: 0 | |
Server Version: swarm/1.2.4 | |
Role: primary | |
Strategy: spread | |
Filters: health, port, containerslots, dependency, affinity, constraint |
This file contains 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
version: '2' | |
services: | |
haproxy: | |
image: haproxy:alpine | |
volumes: | |
- ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg | |
ports: | |
- "80:80" | |
depends_on: | |
- nginx |
The following debugging information was generated by Atom Beautify
on Tue Jan 10 2017 15:25:09 GMT+1100 (AEDT)
.
- System: Elementary OS Loki
{"plugin":"tinytacoteam/zazu-clipboard","block":"Monitor","level":"info","message":"monitor(): 648 ms","timestamp":"2017-02-10T08:46:58.839Z"}
{"plugin":"tinytacoteam/zazu-clipboard","block":"Monitor","level":"info","message":"monitor(): 636 ms","timestamp":"2017-02-10T08:46:59.579Z"}
{"plugin":"tinytacoteam/zazu-clipboard","block":"Monitor","level":"info","message":"monitor(): 641 ms","timestamp":"2017-02-10T08:47:00.325Z"}
{"plugin":"tinytacoteam/zazu-clipboard","block":"Monitor","level":"info","message":"monitor(): 642 ms","timestamp":"2017-02-10T08:47:01.071Z"}
{"plugin":"tinytacoteam/zazu-clipboard","block":"Monitor","level":"info","message":"monitor(): 647 ms","timestamp":"2017-02-10T08:47:01.820Z"}
This file contains 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
#!/bin/bash | |
# set -e | |
DOMAIN=lab99.org | |
NAME=v1 | |
PORT=8080 | |
MODE=aes-256-gcm | |
TOKEN=dockerrocks | |
function start() { |
This file contains 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 scipy.stats import beta | |
from scipy.stats import arcsine | |
import matplotlib.pyplot as plt | |
import numpy as np | |
x = np.linspace(0, 1.0, 100) | |
x_ticks = np.linspace(0, 1.0, 5) | |
temp = np.linspace(10, 40, 5) |
This file contains 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 joypy import joyplot | |
import seaborn as sns | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import math | |
def ridge_plot(data, by, columns, figsize=(12,8), colormap="Spectral", overlap=0.5, alpha=0.9, linecolor='white'): | |
fig = plt.figure(figsize=figsize) | |
classes = sorted(data[by].unique()) |
OlderNewer