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
# coding: utf-8 | |
from __future__ import absolute_import, print_function, unicode_literals | |
import enum | |
class State(enum.IntEnum): | |
Ready = 1 | |
Running = 2 | |
Success = 3 |
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
influxdb: | |
image: quay.io/hirokazumiyaji/influxdb | |
ports: | |
- 8083:8083 | |
- 8086:8086 | |
- 8090:8090 | |
- 8099:8099 | |
cadvisor: | |
image: google/cadvisor:latest | |
command: /usr/bin/cadvisor --log_dir=/ --storage_driver=influxdb --storage_driver_host=influxdb:8086 --storage_driver_user=root --storage_driver_password=root --storage_driver_secure=False |
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
user www-data; | |
worker_processes 4; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 768; | |
# multi_accept on; | |
} | |
http { |
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
#!/usr/bin/env python | |
# coding: utf-8 | |
""" | |
Serf class is serf event handler class. | |
Switch the execution method under the handlers module in the event | |
* tree | |
event-handler-root | |
|- handler.py | |
|- handlers |
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
# Description: | |
# deploy | |
# | |
# Notes: | |
# Hubot Deploy | |
DeployPrefix = process.env['HUBOT_DEPLOY_PREFIX'] || "deploy" | |
Branch = "([-_\.\/0-9a-zA-Z]+)" | |
Environment = "([-_\.0-9a-zA-Z]+)" |
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
# coding: utf-8 | |
import time | |
from pip.utils.ui import DownloadProgressBar | |
LENGTH = 100 | |
bar = DownloadProgressBar(max=LENGTH) | |
bar.suffix = '' |
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 quay.io/hirokazumiyaji/supervisord | |
RUN apt-get update -y && \ | |
apt-get install -y --no-install-recommends -q libxml2-dev libxslt1-dev lib32z1-dev libffi-dev libmysqlclient-dev && \ | |
pip install sentry uwsgi redis hiredis 'nydus>=0.10.7,<0.11.0' django-redis-cache mysqlclient && \ | |
mkdir -p /etc/sentry && \ | |
apt-get clean && rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* /tmp/* | |
ADD sentry.conf.py /etc/sentry/sentry.conf.py | |
ADD uwsgi.ini /etc/sentry/uwsgi.ini |
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 google/debian: | |
RUN echo 'deb http://security.debian.org/ jessie/updates main\ndeb-src http://security.debian.org/ jessie/updates main\ndeb http://ftp.us.debian.org/debian jessie main non-free\ndeb-src http://ftp.us.debian.org/debian jessie main non-free' >> /etc/apt/sources.list && \ | |
apt-get -y update && apt-get -y upgrade && apt-get clean && rm -rf /var/cache/apt/archives/* && \ | |
apt-get -y install --no-install-recommends gcc-4.9 g++-4.9 curl make ca-certificates libssl-dev openssl readline-common libmysqlclient-dev && \ | |
cd /tmp && curl -L -O https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz && \ | |
tar -xvf Python-2.7.9.tgz && cd Python-2.7.9 && ./configure --with-ensurepip=install && make -s -j2 && make install && \ | |
rm -rf /tmp/* /var/lib/apt/lists/* |
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
<!DOCTYPE html><html><head><script>c=function(m){console.log(m);};s=" ";e="\\";l="\n";p="+";r="#";k=function(v, n) {var s="";for(var i=0;i<n;i++){s+=v;};return s;};</script></head><body><script>c(k(s, 13)+k(e,15)+l+k(s,13)+k(e,15)+l+k(s,10)+k(e,27)+l+k(s,10)+k(e,27)+l+k(s,10)+k(r,9)+k(p,6)+k(r,3)+k(p,3)+l+k(s,10)+k(r,9)+k(p,6)+k(r,3)+k(p,3)+l+k(s,7)+k(r,3)+k(p,3)+k(r,3)+k(p,9)+k(r,3)+k(p,6)+l+k(s,7)+k(r,3)+k(p,3)+k(r,3)+k(p,9)+k(r,3)+k(p,6)+l+k(s,7)+k(r,3)+k(p,3)+k(r,6)+k(p,9)+k(r,3)+k(p,9)+l+k(s,7)+k(r,3)+k(p,3)+k(r,6)+k(p,9)+k(r,3)+k(p,9)+l+k(s,7)+k(r,6)+k(p,12)+k(r,15)+l+k(s,7)+k(r,6)+k(p,12)+k(r,15)+l+k(s,13)+k(p,21)+l+k(s,13)+k(p,21)+l+k(s,10)+k(r,6)+k(e,3)+k(r,9)+l+k(s,10)+k(r,6)+k(e,3)+k(r,9)+l+k(s,7)+k(r,9)+k(e,3)+k(r,6)+k(e,3)+k(r,9)+l+k(s,7)+k(r,9)+k(e,3)+k(r,6)+k(e,3)+k(r,9)+l+k(s,4)+k(r,12)+k(e,12)+k(r,12)+l+k(s,4)+k(r,12)+k(e,12)+k(r,12)+l+k(s,4)+k(p,6)+k(r,3)+k(e,3)+k(p,3)+k(e,6)+k(p,3)+k(e,3)+k(r,3)+k(p,6)+l+k(s,4)+k(p,6)+k(r,3)+k(e,3)+k(p,3)+k(e,6)+k(p,3)+k(e,3)+k(r,3)+k(p,6)+l+k(s,4)+k(p,9)+k |
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
# coding: utf-8 | |
from __future__ import absolute_import, unicode_literals, print_function | |
import json | |
import webapps2 | |
class BadHandler(webapp2.RequestHandler): | |
# InvalidResponseError: header names must be str, got 'unicode' (u'Content-Type') |