Skip to content

Instantly share code, notes, and snippets.

@p
p / gist:865826
Created March 11, 2011 12:20
Flush poc
<?php
header('Content-Length: 6');
echo('before');
flush();
sleep(4);
echo('after');
pie@jungle cdb % find extract|grep mootools
extract/mod.external_links_open_in_rokbox/root/rokbox/mootools-release-1.11.js
extract/style.afterburner/template/rt_js/mootools-release-1.11.js
extract/style.grunge/template/rt_js/mootools-release-1.11.js
extract/style.modestus/template/mootools-release-1.11.js
extract/style.quasar/template/rt_js/mootools-release-1.11.js
pie@jungle cdb % find extract|grep prototype
extract/mod.advanced_bbcode_box_3/root/styles/abbcode/lightbox/prototype.js
extract/mod.advanced_bbcode_box_3/root/styles/abbcode/lightview/prototype.js
PHPUnit @package_version@ by Sebastian Bergmann.
..............E..............................
outer - 0E
outer - 0E
outer - 0E
outer - 0E
Time: 1 second, Memory: 6.00Mb
wooka% php -d include_path=$HOME/apps/thirdparty/phpunit/bundle/ ~/apps/thirdparty/phpunit/bundle/phpunit.php --verbose tests/template/template_test.php
PHPUnit @package_version@ by Sebastian Bergmann.
E...............................................E....
Time: 1 second, Memory: 5.75Mb
There were 2 errors:
1) phpbb_template_template_test::test_missing_file
--- /var/www/qi/boards/t2/cache/ctpl_admin_permission_mask.html.php 2011-04-24 16:47:23.000000000 -0400
+++ /var/www/qi/boards/t1/cache/ctpl_admin_permission_mask.html.php 2011-04-24 22:50:35.000000000 -0400
@@ -1,4 +1,5 @@
-<?php if (!defined('IN_PHPBB')) exit; ?><script type="text/javascript">
+
+<?php echo'<script';?> type="text/javascript">
// <![CDATA[
var active_pmask = '0';
var active_fmask = '0';
@@ -8,78 +9,162 @@
[phpBB Debug] PHP Notice: in file /var/www/qi/includes/functions_files.php on line 27: unlink(boards/t1/develop/add_permissions.php) [function.unlink]: Permission denied
[phpBB Debug] PHP Notice: in file /var/www/qi/includes/functions_files.php on line 27: unlink(boards/t1/develop/adjust_avatars.php) [function.unlink]: Permission denied
[phpBB Debug] PHP Notice: in file /var/www/qi/includes/functions_files.php on line 27: unlink(boards/t1/develop/adjust_bbcodes.php) [function.unlink]: Permission denied
[phpBB Debug] PHP Notice: in file /var/www/qi/includes/functions_files.php on line 27: unlink(boards/t1/develop/adjust_magic_urls.php) [function.unlink]: Permission denied
[phpBB Debug] PHP Notice: in file /var/www/qi/includes/functions_files.php on line 27: unlink(boards/t1/develop/adjust_sizes.php) [function.unlink]: Permission denied
[phpBB Debug] PHP Notice: in file /var/www/qi/includes/functions_files.php on line 27: unlink(boards/t1/develop/adjust_smilies.php) [function.unlink]: Permission denied
...
[php
@p
p / gist:969858
Created May 13, 2011 02:23
firebird is a disaster
SQL> create 'x' database 'x' '/tmp/xxxx' x 1 user 'SYSDBA' password '1' f '1';
Use CONNECT or CREATE DATABASE to specify a database
http://www.firebirdfaq.org/faq135/
Apparently, if you want a connection to the superserver but you give -user/-password arguments to isql, you get the above behavior.
SQL> create database 'x' '/tmp/xxxx' x 1 user 'SYSDBA' password '1' f '1';
Statement failed, SQLSTATE = -902
Your user name and password are not defined. Ask your database administrator to set up a Firebird login.
@p
p / main
Created May 18, 2011 05:34
PHPBB3-9856
qi_t21=> ANALYZE phpbb_topics;
ANALYZE
qi_t21=> explain SELECT t.topic_id
qi_t21-> FROM phpbb_topics t
qi_t21-> WHERE t.forum_id = 2
qi_t21-> AND t.topic_type IN (0, 1)
qi_t21-> ORDER BY t.topic_type DESC, t.topic_last_post_time DESC
qi_t21-> LIMIT 25 OFFSET 100;
QUERY PLAN
---------------------------------------------------------------------------------------------------------------
@p
p / orig
Created August 14, 2011 17:11
wooka% php -d include_path=$HOME/apps/thirdparty/phpunit/bundle/ ~/apps/thirdparty/phpunit/bundle/phpunit.php -c phpunit.xml.all tests/network/ftp_fsock_test.php
PHPUnit @package_version@ by Sebastian Bergmann.
E
Time: 1 second, Memory: 4.50Mb
There was 1 error:
1) phpbb_ftp_fsock_test::test_pasv_epsv
@p
p / test reqs
Created August 20, 2011 18:31
phpbb todo
egosearch doing table scans on posts due to approved flag
move sqlite db to tests/tmp (pr #319)
add envvar check to override tests/tmp (pr #319)
https://github.com/phpbb/phpbb3/pull/319
(17:45:43) nn-: when i quote multiple lines of text as described in the ticket the lines are squashed into a single line
(17:45:55) nn-: worse, there is no spacing between what used to be separate lines at all
10253