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
function activeSessionFor(email) { | |
<?php | |
if ( isset($_SESSION['email']) && strlen($_SESSION['email']) > 0 ) { | |
echo "return true;"; | |
} else { | |
echo "return false;"; | |
} | |
?> | |
} |
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
<?php session_start(); ?> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://login.persona.org/provisioning_api.js"></script> | |
<script> | |
<?php require('session.php'); ?> |
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
<?php session_start(); ?> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://login.persona.org/authentication_api.js"></script> | |
<?php | |
if ( isset($_POST['emailf']) ) { | |
$_SESSION['email'] = $_POST['emailf']; |
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
# Private, password protected instance for all projects | |
<Location /trac> | |
SetHandler mod_python | |
PythonInterpreter main_interpreter | |
PythonHandler trac.web.modpython_frontend | |
PythonOption PYTHON_EGG_CACHE /tmp/python_egg_cache | |
PythonOption TracEnvParentDir /home/services/trac/projects | |
AuthType Basic | |
AuthName "innovationTM authentication" |
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
# -*- python -*- | |
# ex: set syntax=python: | |
c = BuildmasterConfig = {} | |
from buildbot.buildslave import BuildSlave | |
c['slaves'] = [BuildSlave("example-slave", "pass")] | |
c['slavePortnum'] = 9989 | |
from buildbot.changes.gitpoller import GitPoller |
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
sudo apt-get install zip libasound2 yasm |
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
$ sudo apt-get install python-pip | |
$ pip uninstall sqlalchemy | |
$ pip install "sqlalchemy==0.6.2" |
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 sqlalchemy import exceptions as sa_exceptions | |
ImportError: cannot import name exceptions” |
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
$ buildbot start master/ | |
$ buildslave start slave/ |
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
# Syntax: buildbot create-master DIR/ | |
$ buildbot create-master master/ | |
$ cp master/master.cfg.sample master/master.cfg | |
# Syntax: buildslave create-slave DIR MASTER_CONN NAME PASS | |
$ buildslave create-slave slave/ localhost:9989 example-slave pass |