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 | |
# Execute a command suppressing all output. | |
function silently { | |
$@ &> /dev/null | |
} |
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
XBMC uses pycurl/libcurl to fetch stuff. YouTube requires the RC4 | |
cipher that GnuTLS has removed for security reasons (or doesn't allow | |
it to be selected, or XBMC doesn't allow to specify the cipher...). | |
PyCurl linked against OpenSSL can take the RC4 argument and make the | |
Youtube plugin work (Ubuntu ships it linked against GnuTLS), so we | |
need to rebuild to make it work. | |
/// | |
from: https://code.google.com/p/wfuzz/wiki/PyCurlSSLBug |
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
#!flask/bin/python | |
from flask import Flask, jsonify, abort, request, make_response, url_for | |
from flask_httpauth import HTTPBasicAuth | |
app = Flask(__name__, static_url_path = "") | |
auth = HTTPBasicAuth() | |
@auth.get_password | |
def get_password(username): | |
if username == 'miguel': |