Skip to content

Instantly share code, notes, and snippets.

<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = 'example'; // required: replace example with your forum shortname
var disqus_identifier = '{{post.id}}';
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
@aripatrick
aripatrick / JIRAoAuthDance.py
Last active January 8, 2019 23:15
JIRA oAuth Dance with suppressed insecure HTTPS URL warnings and SSL certificate checks
import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
from oauthlib.oauth1 import SIGNATURE_RSA
from requests_oauthlib import OAuth1Session
from jira.client import JIRA
def read(file_path):
""" Read a file and return it's contents. """
with open(file_path) as f:
return f.read()