Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
USER=xxxxxxx
PASS=xxxxxxx
HIPCHAT_OAUTH_ID=xxxxxxx
for REPO in `curl --silent --user $USER:$PASS https://bitbucket.org/api/1.0/users/fluidretail | json repositories | json -a name`
do
echo Adding HipChat hook to $REPO...
curl --silent --user $USER:$PASS \
String DRIVER = "com.ora.jdbc.Driver";
String DataURL = "jdbc:db://localhost:5112/users";
String LOGIN = "admin";
String PASSWORD = "admin123";
Class.forName(DRIVER);
public function saveRecipe($conciseRecipe, $verboseXML = NULL, $imageURLs = NULL, $tagParameters = NULL) {
// Connection error handling is covered in DatabaseManager.php
$db = DatabaseManager::getInstance()->getConnection();
$logger = LogManager::getInstance()->getLogger();
// Code for these functions is in recipeFunctions.php
$licenseeKey = getLicenseeKey();
$licenseeId = useLicenseeKeyToFindLicenseeId($licenseeKey);
$logger->debug("conciseRecipe: $conciseRecipe");