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
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: . |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="ForceHttps" stopProcessing="true"> | |
<match url="(.*)" /> | |
<conditions> | |
<add input="{HTTPS}" pattern="off" ignoreCase="true" /> | |
</conditions> |
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
New python executable in virtualenv/bin/python | |
Installing Setuptools..............................................................................................................................................................................................................................done. | |
Installing Pip.....................................................................................................................................................................................................................................................................................................................................done. | |
Downloading/unpacking wheel | |
Downloading wheel-0.24.0.tar.gz (50kB): 50kB downloaded | |
Running setup.py egg_info for package wheel | |
no previously-included directories found matching 'wheel/test/*/dist' | |
no previously-included directories found matching 'wheel/test/*/build' | |
Installing collected packages: wheel |
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
vagrant@ubuntu-14:~$ syncall | |
>>> Logging in to the Docker registry. | |
Username (remitaffin): | |
Login Succeeded | |
>>> Pulling Docker images. |
NewerOlder