Skip to content

Instantly share code, notes, and snippets.

View Tyrael's full-sized avatar

Ferenc Kovacs Tyrael

View GitHub Profile
13:10:25 @Pierre | [06:58:19] Tyrael, ping? │@shm
13:10:25 @Pierre | [06:58:21] or anyone else │@tobyS
13:10:25 @Pierre | [06:58:26] pecl repo moved to git │@tony2001
13:10:25 @Pierre | [06:58:45] did commits, now git push, and it keep saying that everything is up to date, am I missing something? │@Tyrael
13
@Tyrael
Tyrael / php.net-bounce.txt
Created June 6, 2013 16:05
php.net bounce
MIME-Version: 1.0
Received: by 10.60.18.97 with HTTP; Wed, 5 Jun 2013 03:57:33 -0700 (PDT)
Date: Wed, 5 Jun 2013 12:57:33 +0200
Delivered-To: [email protected]
Message-ID: <CAH-PCH763Tf62Dy4naGCisxXeaSHmnBLShX_Fqcp=QC19kY5pQ@mail.gmail.com>
Subject:
From: Ferenc Kovacs <[email protected]>
To: Ferenc Kovacs <[email protected]>
Content-Type: multipart/alternative; boundary=089e01538530a26f4204de661095
@Tyrael
Tyrael / execute.log
Last active December 16, 2015 10:28
Tic-Tac-Toe-Tomek
$ cat test.txt |php -f index.php
Case #1: X won
Case #2: Draw
Case #3: Game has not completed
Case #4: O won
Case #5: O won
Case #6: O won
@Tyrael
Tyrael / gist:3826395
Created October 3, 2012 10:59
php-install
Delivered-To: [email protected]
Received: by 10.68.41.131 with SMTP id f3csp557187pbl;
Thu, 23 Aug 2012 10:03:25 -0700 (PDT)
Received: by 10.66.82.3 with SMTP id e3mr4666974pay.56.1345741405080;
Thu, 23 Aug 2012 10:03:25 -0700 (PDT)
Return-Path: <[email protected]>
Received: from mailgwca03.rightnowtech.com (mailgwca03.rightnowtech.com. [216.136.162.123])
by mx.google.com with ESMTPS id kc9si13904467pbc.55.2012.08.23.10.03.24
(version=TLSv1/SSLv3 cipher=OTHER);
@Tyrael
Tyrael / gist:3252362
Created August 3, 2012 22:55
irc log for nikic
[23:07:31] <ajf> danbrown: ahhh! Thanks!
[23:08:11] <ajf> Does Ferenc linger here?
[23:08:23] <ajf> oh, right
[23:08:26] <ajf> Tyrael: hi
[23:11:27] <ajf> Tyrael: I want to clear up some misunderstanding regarding how I feel about errors/exceptions
[23:23:01] <Tyrael> re
[23:23:11] <Tyrael> sure, go ahead
[23:23:38] <Tyrael> I think we mostly agree. judging from your last reply.
[23:23:50] <Tyrael> except the E_STRICT
[23:24:18] <Tyrael> I would put them into the warning/notice category
@Tyrael
Tyrael / bugsweb_sec_patch.diff
Created May 7, 2012 23:11
bugsweb better fix for the original problem
diff --git a/www/bug.php b/www/bug.php
index 1b3474c..fe24674 100644
--- a/www/bug.php
+++ b/www/bug.php
@@ -158,8 +158,9 @@ if (!empty($_POST['in'])) {
if ($user_flags & BUGS_DEV_USER) {
$block_user = isset($_POST['in']['block_user_comment']) ? 'Y' : 'N';
}
- if ($is_security_developer) {
- $is_private = isset($_POST['in']['private']) ? 'Y': 'N';
@Tyrael
Tyrael / junit.xml
Created March 21, 2012 00:08
invalid junit
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite name="php-src.tests.run-test" tests="1" failures="0" errors="0" skip="0" time="0.2466">
<testcase classname='php-src.tests.run-test' name='test001.phpt - EXPECT' time='0.2466'>
</testcase>
</testsuite>
</testsuites>
y3# sendmail -v -qf
Running /var/spool/mqueue/q1MJsUa5038862 (sequence 1 of 1)
<[email protected]>... Connecting to pair1.php.net. via esmtp...
220-you
220-must
220-wait
220 pb1.pair.com ESMTP Ecelerity 2.1.1.9-wez r(12769M) Wed, 22 Feb 2012 16:48:40 -0500
>>> EHLO y3.php.net
250-pb1.pair.com says EHLO to 69.147.83.199
tyrael@thor:~$ curl -vvv -X OPTIONS https://svn.php.net/repository/php/php-src
* About to connect() to svn.php.net port 443 (#0)
* Trying 69.147.83.196... connected
* Connected to svn.php.net (69.147.83.196) port 443 (#0)
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
[18:15:47] <rasmus_> start time: 1328202912
[18:15:47] <rasmus_> end time: 1328202941
[18:15:47] <rasmus_> time: 29
[18:16:39] <rasmus_> ok, reproduced a 29s hang in PHP5.4
[18:19:13] <rasmus_> ~/php-src/branches/PHP_5_3/sapi/cli/php -d max_input_nesting_level=4 test_collide.php
[18:19:13] <rasmus_> read data completed
[18:19:13] <rasmus_> start time: 1328203137
[18:19:13] <rasmus_> end time: 1328203139
[18:19:14] <rasmus_> time: 2
[18:19:25] <rasmus_> helps a lot when you reduce the nesting level