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' | |
services: | |
cron: | |
scale: 1 | |
start_on_create: true | |
health_check: | |
healthy_threshold: 2 | |
response_timeout: 2000 | |
port: 8069 | |
unhealthy_threshold: 60 |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import hmac | |
from base64 import b64encode | |
from hashlib import sha1 | |
WEBHOOK_SECRET_KEY = 'your secret key' | |
def is_from_help_scout(data, signature, encoding='utf8'): |
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
#!/usr/bin/env python | |
from io import BytesIO | |
from PIL import Image | |
with open('/testimage.png', 'rb') as f: | |
image = Image.open(f).load() |
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
#!/usr/bin/env bash | |
if [ "${LINT_CHECK}" = "1" ]; | |
then | |
pip install flake8 | |
flake8 ./ | |
elif [ "${TESTS}" = "1" ]; | |
then |
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
gem 'devise' | |
# ENV variable management | |
gem 'figaro' | |
# OmniAuth Authentication providers | |
gem 'omniauth-google-oauth2' | |
gem 'omniauth-facebook' | |
group :development, :test do |
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
#!/usr/bin/env python | |
## | |
# CloudFlare API | |
# | |
# This is a library created to easily interact with CloudFlare's API in Python | |
# API Documentation is located at http://www.cloudflare.com/docs/client-api.html | |
# | |
# @author David Lasley <[email protected]> | |
# @url https://blog.laslabs.com/random-scripts-2/cloudflare-api-py/ | |
# @package toolbox.cloudflare |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
## | |
# DNS Updater | |
# | |
# Manipulates DNS using APIs, sets to current IP if different | |
# @replaces dyndns.org | |
# | |
# @author David Lasley <[email protected]> | |
# @package toolbox |
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
#!/usr/bin/env python | |
## | |
# DNS Updater | |
# | |
# Manipulates DNS using APIs, sets to current IP if different | |
# @replaces dyndns.org | |
# | |
# @author David Lasley <[email protected]> | |
# @package toolbox | |
# @license GPLv3 (http://www.gnu.org/licenses/gpl-3.0.html) |