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
import os | |
import subprocess | |
import statsd | |
filename = '/var/log/mongo/mongos.log' | |
graphite_host = 'statsd.hostedgraphite.com' | |
graphite_api_key = os.environ['GRAPHITE_API_KEY'] | |
f = subprocess.Popen( |
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
DATABASE_URL=postgres://saleor:saleor@db/saleor | |
DEFAULT_FROM_EMAIL=[email protected] | |
OPENEXCHANGERATES_API_KEY= | |
CACHE_URL=redis://redis:6379/0 | |
CELERY_BROKER_URL=redis://redis:6379/1 | |
SECRET_KEY=changeme | |
JWT_VERIFY_EXPIRATION=True | |
VATLAYER_ACCESS_KEY= |
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
import time | |
import redis | |
from flask import Flask | |
app = Flask(__name__) | |
cache = redis.Redis(host='redis', port=6379) | |
def get_hit_count(): |
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 flask import Flask | |
app = Flask(__name__) | |
@app.route("/") | |
def hello(): | |
return "Hello OG World!" | |
if __name__ == "__main__": | |
app.run(host="0.0.0.0", port=5000, debug=True) |
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
# /script | |
org.jenkinsci.plugins.GithubAuthenticationToken.clearCaches(); |
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
engines: | |
duplication: | |
enabled: true | |
config: | |
languages: | |
- python | |
fixme: | |
enabled: true | |
radon: | |
enabled: true |
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 python:3.6 | |
ARG SSH_PRIV_KEY | |
RUN mkdir /root/.ssh/ && echo "${SSH_PRIV_KEY}" | base64 -d > /root/.ssh/id_rsa && chmod 400 /root/.ssh/id_rsa | |
# Required for cloning git repos | |
RUN touch /root/.ssh/known_hosts | |
RUN ssh-keyscan -H github.com > /root/.ssh/known_hosts | |
# Path to requirements.txt might need to be updated here depending on the application |
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
#!/bin/bash | |
# This script kills running containers, old stopped containers, | |
# and dangling images. | |
# Set -e exits the script if any command has a non-zero exit status | |
# Set -u returns an error when a variable is unknown instead of silently ignore it | |
# Set -o pipefail prevents errors in a pipeline (sequence of |) from being masked | |
set -euo pipefail | |
IFS=$'\n\t' |
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
version: '3' | |
services: | |
postgres-core: | |
image: postgres:9.6 | |
volumes: | |
- "/var/lib/stellar/postgres-core:/var/lib/postgresql/data" | |
environment: | |
- POSTGRES_DB=stellar-core | |
stellar-core: | |
image: satoshipay/stellar-core |
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
version: '3' | |
services: | |
postgres-core: | |
image: postgres:9 | |
volumes: | |
- "/var/lib/stellar/postgres-core:/var/lib/postgresql/data" | |
environment: | |
- POSTGRES_DB=stellar-core | |
stellar-core: | |
build: . |
NewerOlder