Skip to content

Instantly share code, notes, and snippets.

@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.
[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
--- /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 @@
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
PHPUnit @package_version@ by Sebastian Bergmann.
..............E..............................
outer - 0E
outer - 0E
outer - 0E
outer - 0E
Time: 1 second, Memory: 6.00Mb
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
@p
p / gist:865826
Created March 11, 2011 12:20
Flush poc
<?php
header('Content-Length: 6');
echo('before');
flush();
sleep(4);
echo('after');
@p
p / Building
Created March 9, 2011 01:02
Build commands for various packages
# apache 2.0
./configure --prefix=/opt/apache-2.0.64 --enable-so
# php 4.4
# php bundles mysql, default is to use bundled
# php bundles gd apparently, default is to not use it
./configure --prefix=/opt/php-4.4.9 --with-pgsql=/opt/postgresql-7.3.21 --with-apxs2=/opt/apache-2.0.64/bin/apxs --enable-fastcgi --with-gd=/usr/local --with-mysql=/usr/local
(20:16:19) bantu: Feedback please. http://tracker.phpbb.com/browse/PHPBB3-9922?focusedCommentId=35566&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-35566
(20:18:41) nn-: i don't see where the hyperlink existed previously
(20:18:50) nn-: github cutting off the view does not help
(20:19:32) bantu: nn-: one second
(20:19:55) nn-: tested on styles demo
(20:20:07) nn-: so the icon does link to post but there is essentially no indication that it does
(20:20:13) bantu: http://temp.andreasfischer.net/9922_without_patch.png http://temp.andreasfischer.net/9922_with_patch.png
(20:21:03) nn-: i'm ok with changing it
(20:21:40) nn-: i wonder if those who object to this change use subsilver
(20:21:49) nn-: this sounds like an improvement on usability
@p
p / gist:851975
Created March 2, 2011 23:13
Git aliases
pie@area phpbb % git config -l |grep alias
alias.st=status
alias.ts=status
alias.ci=commit
alias.co=checkout
alias.fa=fetch --all
alias.rh=reset HEAD
alias.dc=diff --cached
alias.sdc=svn dcommit
alias.cp=cherry-pick