Skip to content

Instantly share code, notes, and snippets.

diff --git a/src/xmpp.coffee b/src/xmpp.coffee
index 69d4931..6c325ca 100644
--- a/src/xmpp.coffee
+++ b/src/xmpp.coffee
@@ -13,6 +13,7 @@ class XmppBot extends Adapter
rooms: @parseRooms process.env.HUBOT_XMPP_ROOMS.split(',')
keepaliveInterval: 30000 # ms interval to send whitespace to xmpp server
legacySSL: process.env.HUBOT_XMPP_LEGACYSSL
+ preferredSaslMechanism: process.env.HUBOT_XMPP_PREFERRED_SASL_MECHANISM
TL;DR Based on the assumptions below, the current cron strategy will be viable for a very very long time. In a worst case scenario, until we have 125,000 users paying through iOS.
At our last sprint demo, Mike and Warren asked about the scaling limits of the re-verification cron.
Assumptions:
* Reverifying each receipt will have a mean transaction time of 2seconds. This is higher than our initial estimates to allow some additional buffer room.
* Our IOS subscription patterns will have a similar histogram as our Payflow signups.
* We are ok with cron running for 18hrs consecutively. I chose 18hrs as I can only assume it will take several months to schedule a team to fix the issue in the future.
diff --git a/Cake/ORM/BehaviorRegistry.php b/Cake/ORM/BehaviorRegistry.php
index db1aa77..06d2d63 100644
--- a/Cake/ORM/BehaviorRegistry.php
+++ b/Cake/ORM/BehaviorRegistry.php
@@ -14,6 +14,7 @@
*/
namespace Cake\ORM;
+use Cake\Cache\Cache;
use Cake\Core\App;
$ curl -k "https://cake.localhost.com/tasks/aaa%27;%3Cimg%20src=%27a%27%20onerror=%27alert%28%22XSS%22%29%27/"
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>
CakePHP: the rapid development php framework:
Errors </title>
<link href="/favicon.ico" type="image/x-icon" rel="icon" /><link href="/favicon.ico" type="image/x-icon" rel="shortcut icon" /><link rel="stylesheet" type="text/css" href="/css/cake.generic.css" /></head>
<body>
<div id="container">

Keybase proof

I hereby claim:

  • I am markstory on github.
  • I am markstory (https://keybase.io/markstory) on keybase.
  • I have a public key whose fingerprint is 4417 F052 3EC6 ECB5 B7C7 3622 3C07 0F5E 55B3 AEA0

To claim this, I am signing this object:

$ brew install php55
==> Downloading http://www.php.net/get/php-5.5.11.tar.bz2/from/this/mirror
Already downloaded: /Library/Caches/Homebrew/php55-5.5.11
Warning: Backing up all known pear.conf and .pearrc files
Warning: If you have a pre-existing pear install outside
of homebrew-php, or you are using a non-standard
pear.conf location, installation may fail.
==> ./configure --prefix=/usr/local/Cellar/php55/5.5.11 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/php/5.5 --with-config-file-path=/usr/local/etc/php/5.5 --with-config-file-scan-dir=/usr/local/etc/php/5.5/conf.d --with-iconv-dir=/usr --enable-dba --with-ndbm=/usr --enable-exif --enable-soap --enab
checking for mmap() using shm_open() shared memory support... no
checking for mmap() using regular file shared memory support... no
$ brew install php54
==> Downloading http://www.php.net/get/php-5.4.27.tar.bz2/from/this/mirror
Already downloaded: /Library/Caches/Homebrew/php54-5.4.27
Warning: Backing up all known pear.conf and .pearrc files
Warning: If you have a pre-existing pear install outside
of homebrew-php, or you are using a non-standard
pear.conf location, installation may fail.
==> ./configure --prefix=/usr/local/Cellar/php54/5.4.27 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/php/5.4 --with-config-file-path=/usr/local/etc/php/5.4 --with-config-file-scan-dir=/usr/local/etc/php/5.4/conf.d --with-iconv-dir=/usr --enable-dba --with-ndbm=/usr --enable-exif --enable-soap --enab
==> make
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I ran the same test 5 times, and this is the median result for Reverse
routing. While the numbers may vary in small amounts, the wins in
parse() are very signifcant.
In the store test, I did not try named routes, as this set of routes
was intended to stress test the parsing/matching changes.
------------------------------------------------------
Book Routes - 3.0 HEAD
@markstory
markstory / BookRouteShell.php
Last active August 29, 2015 14:02
Router optimization test file
<?php
namespace App\Console\Command;
use Cake\Console\Shell;
use Cake\Routing\Router;
class BookRouteShell extends Shell {
public function main() {
$this->scoped();
@markstory
markstory / TableTest.php
Created July 31, 2014 04:16
Trying to reproduce the issue José was talking about.
/**
* Tests that patchEntity includes _joinData
* all associations
*
* @return void
*/
public function testPatchEntityJoinData() {
$articles = TableRegistry::get('Articles');
$articles->belongsToMany('Tags');