Skip to content

Instantly share code, notes, and snippets.

View mapes911's full-sized avatar

Allan Mercado mapes911

View GitHub Profile
@mapes911
mapes911 / Submit Transcoding Job (Coconut)
Last active June 19, 2018 17:38
Simple method to submit a transcoding job to the Coconut.co video transcoding service.
import requests
from requests.auth import HTTPBasicAuth
COCONUT_API_KEY = 'asdfasdf'
AWS_ACCESS_KEY = 'AWSKEY'
AWS_SECRET_KEY = 'AWSSECRET'
AWS_OUTPUT_BUCKET = 'transcoded-videos'
def create_transcoding_job(source, webhook, outputs):
"""
Verifying my Blockstack ID is secured with the address 1HBu2xKDsjxCNt5wFDBbcimPZUNNrWzWU2 https://explorer.blockstack.org/address/1HBu2xKDsjxCNt5wFDBbcimPZUNNrWzWU2
@mapes911
mapes911 / integrating coveralls.io with circleci.com for a django project
Last active December 18, 2015 13:29
integrating coveralls.io with circleci.com for a django project
Notes on how to get coveralls.io to work with your django project build on circleci.com
1. Add your repo to the coveralls.io site.
2. Add coveralls-python to your requirements.txt
eg.
coveralls==0.2
3. Add an override and a post directive to your circle.yml file
eg.
@mapes911
mapes911 / django git_trello hook
Last active December 17, 2015 05:59
Django view - git trello hook
"""
This is a django view that can be called via a github post-commit hook.
I was really surprised when such a thing didn't exist so I wrote it myself. Hopefully this helps someone out there :)
Thanks to the Trolly app for providing a python wrapper to the Trello API.
Requirements:
https://github.com/plish/Trolly