Skip to content

Instantly share code, notes, and snippets.

View padraic's full-sized avatar
💭
Contact me by email. I am temporarily inactive on Github.

Pádraic Brady padraic

💭
Contact me by email. I am temporarily inactive on Github.
View GitHub Profile
http://framework.zend.com/favicon.ico
GET /favicon.ico HTTP/1.1
Host: framework.zend.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.1) Gecko/20090624 Firefox/3.5 (.NET CLR 3.5.30729)
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
<html>
<body>
<div style="position: absolute; top: 10px; left: 10px; background-color: red; z-index: 1; width: 100px; height: 100px; margin: 0;"><div>
<div style="position: absolute; top: 10px; left: 10px; background-color: green; z-index: 2; width: 100px; height: 100px; margin: 0;"><div>
</body>
</html>
Mutateme_MutableFile
[x] Should maintain file path info once passed in constructor
[x] Should not have mutations before generation
[x] Should not have detected mutables before generation
[x] Should not generate mutables for empty class
[x] Should not generate mutations for empty class
[x] Should not generate mutables if only empty methods in class
[x] Should not generate mutations if only empty methods in class
[x] Should generate mutables even if method body is not viable
[x] Should not generate mutations if method body is not viable
@padraic
padraic / fail.php
Created February 27, 2014 19:29
Failure to capture certs on TLS verification failures.
<?php
$url = 'https://www.packagist.org';
$host = 'xxx.packagist.org';
$ciphers = implode(':', array(
'ECDHE-RSA-AES128-GCM-SHA256',
'ECDHE-ECDSA-AES128-GCM-SHA256',
'ECDHE-RSA-AES256-GCM-SHA384',
'ECDHE-ECDSA-AES256-GCM-SHA384',
@padraic
padraic / RemoteFilesystem.php
Last active August 29, 2015 13:56
Composer RemoteFilesystem.php version showing missed peer_certificate (see tls-defaults branch on my fork)
<?php
// when replaced for commit: https://github.com/padraic/composer/commit/2972ec3d8621acd9c415b7b1425586b90e7cea40
/*
* This file is part of Composer.
*
* (c) Nils Adermann <naderman@naderman.de>
* Jordi Boggiano <j.boggiano@seld.be>
*
@padraic
padraic / survey.php
Last active August 29, 2015 13:56
Enumerating Composer packages for PHPCS analysis and data collection
<?php
define('PACKAGE_LIST', 'list.txt');
define('CODING_STANDARD', 'PSR2');
define('SEVERITY', 1);
define('ENCODING', 'utf-8');
define('REPORT', 'source');
define('EXTENSIONS', 'php');
$excluded = [
'*/test/*',