Skip to content

Instantly share code, notes, and snippets.

🎯
#troubleshooting

ciii ciiiii

🎯
#troubleshooting
Block or report user

Report or block ciiiii

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View kong.conf
# -----------------------
# 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
View kong.conf
# -----------------------
# 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
@ciiiii
ciiiii / Dockerfile
Last active Sep 10, 2018
Postgresql for Chinese Full-Text Search.中文全文搜索
View Dockerfile
# 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)
@ciiiii
ciiiii / fuck-datetime.py
Created Aug 22, 2018
python get time of one timezone
View fuck-datetime.py
import datetime
from pytz import timezone
now = datetime.datetime.now(tz=timezone('UTC')).astimezone(timezone('Asia/Shanghai'))
@ciiiii
ciiiii / docker-compose.yml
Last active Feb 3, 2018
posgresql(healthcheck) docker-compose
View docker-compose.yml
version: '2.1'
services:
postgres:
# image: sameersbn/postgresql:9.6-2
image: healthcheck/postgres
ports:
- "5432:5432"
environment:
- POSTGRES_DB=pgname
- POSTGRES_USER=pguser
You can’t perform that action at this time.