Skip to content

Instantly share code, notes, and snippets.

View JonathanSerafini's full-sized avatar

Jonathan Serafini JonathanSerafini

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jonathanserafini on github.
  • I am serafini (https://keybase.io/serafini) on keybase.
  • I have a public key ASCnqgvoO5J-T2RAxCIc7fq6zeTRK1BI2AgQykz85aEs1wo

To claim this, I am signing this object:

@JonathanSerafini
JonathanSerafini / certificates.lua
Last active April 19, 2017 21:20
Proof of concept modular Certificates fetcher
-- global helpers
local _Logger = {}
function _Logger.err(message)
ngx.log(ngx.ERR, message)
end
function _Logger.warn(message)
ngx.log(ngx.WARN, message)
end
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "",
"Resources": {
"Instance": {
"Properties": {
"ImageId": "ami-ff02509a"
},
"Metadata": {
"AWS::CloudFormation::Init": {
diff --git a/core/protected/modules/integration/controllers/CronController.php b/core/protected/modules/integration/controllers/CronController.php
index 31a0c5c..98103df 100644
--- a/core/protected/modules/integration/controllers/CronController.php
+++ b/core/protected/modules/integration/controllers/CronController.php
@@ -19,7 +19,6 @@ class CronController extends CController
*/
public function actionIndex()
{
-
$criteria=new CDbCriteria;
<?php
/**
* Override the MigrateCommand getDbConnection to support cli options when
* wsdb.php has not yet been configured.
* @return CDbConnection
*/
protected $db;
protected function getDbConnection()
{
# If db conn has been cached, return it