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
--- | |
- hosts: k8s-cluster | |
gather_facts: false | |
any_errors_fatal: true | |
tasks: | |
- name: try block | |
when: inventory_hostname not in groups['kube-master'] | |
block: | |
- name: first try | |
command: /bin/false |
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
:root { | |
--page-width: 616px; | |
--page-order: row-reverse; | |
} | |
html, | |
body, | |
.roam-app { | |
background-color: var(--bg-color) !important; | |
overflow: hidden !important; |
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
BEGIN MESSAGE. | |
fqKX4ucAQpx0GM0 C3TDEKkG2NXOolt e4wZqa2i70w2N2J Yyv36rorQEOmDju | |
8ITfsWp0QgwW6Dc qR1Eg8IvcdhTCKq 6Xr2MZHgg4XJTwh 1s4noPmpeFCkHFw | |
BeUwsKIbfDcX2A9 MPhPjImR2TLZHrm kzVDBdZdG7PsNEg VaSBNd2OWoiyHIW | |
UxGCbfnYSma2ymy HtPTN7giUAkETVg Oqktu21. | |
END MESSAGE. |
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
# ----------------------- | |
# Kong configuration file | |
# ----------------------- | |
# | |
# The commented-out settings shown in this file represent the default values. | |
# | |
# This file is read when `kong start` or `kong prepare` are used. Kong | |
# generates the Nginx configuration with the settings specified in this file. | |
# | |
# All environment variables prefixed with `KONG_` and capitalized will override |
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
# ----------------------- | |
# Kong configuration file | |
# ----------------------- | |
# | |
# The commented-out settings shown in this file represent the default values. | |
# | |
# This file is read when `kong start` or `kong prepare` are used. Kong | |
# generates the Nginx configuration with the settings specified in this file. | |
# | |
# All environment variables prefixed with `KONG_` and capitalized will override |
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
# If you don‘t want to build it youself, you can try `docker pull killercai/postgres`. | |
FROM healthcheck/postgres:latest | |
# China debian mirror | |
RUN sed -i s@/deb.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list | |
RUN apt-get clean && apt-get update | |
RUN apt-get install -y wget git build-essential libpq-dev python-dev postgresql-server-dev-all | |
# SCWS (Simple Chinese Word Segmentation library) | |
RUN cd /tmp && wget -q -O - http://www.xunsearch.com/scws/down/scws-1.2.1.tar.bz2 | tar xjf - && cd scws-1.2.1 && ./configure && make install | |
# zhpaser (postgres plugin) |
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
import datetime | |
from pytz import timezone | |
now = datetime.datetime.now(tz=timezone('UTC')).astimezone(timezone('Asia/Shanghai')) |
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.1' | |
services: | |
postgres: | |
# image: sameersbn/postgresql:9.6-2 | |
image: healthcheck/postgres | |
ports: | |
- "5432:5432" | |
environment: | |
- POSTGRES_DB=pgname | |
- POSTGRES_USER=pguser |