Skip to content

Instantly share code, notes, and snippets.

View pilif's full-sized avatar

Philip Hofstetter pilif

View GitHub Profile
phpinfo()
PHP Version => 5.6.9
System => Darwin rikku.sen.work 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64
Build Date => May 28 2015 10:24:24
Configure Command => './configure' '--prefix=/usr/local/Cellar/php56/5.6.9' '--localstatedir=/usr/local/var' '--sysconfdir=/usr/local/etc/php/5.6' '--with-config-file-path=/usr/local/etc/php/5.6' '--with-config-file-scan-dir=/usr/local/etc/php/5.6/conf.d' '--mandir=/usr/local/Cellar/php56/5.6.9/share/man' '--enable-bcmath' '--enable-calendar' '--enable-dba' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-mbregex' '--enable-mbstring' '--enable-shmop' '--enable-soap' '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-wddx' '--enable-zip' '--with-freetype-dir=/usr/local/opt/freetype' '--with-gd' '--with-gettext=/usr/local/opt/gettext' '--with-iconv-dir=/usr' '--with-icu-dir=/usr/local/opt/icu4c' '--with-jpeg-dir=/usr/local/opt/jpeg' '--with-kerberos=/u
class Test {
public static void main(String [ ] args){
System.out.println("💩".length());
}
}

Keybase proof

I hereby claim:

  • I am pilif on github.
  • I am pilif (https://keybase.io/pilif) on keybase.
  • I have a public key whose fingerprint is 082B 4B70 CDCF AD82 C6B7 03C5 7682 6433 6C53 E05A

To claim this, I am signing this object:

<?php
stream_filter_register("utf8encode", "utf8encode_filter");
class utf8encode_filter extends php_user_filter {
function filter($in, $out, &$consumed, $closing) {
while($bucket = stream_bucket_make_writeable($in)) {
$bucket->data = utf8_encode($bucket->data);
$consumed += $bucket->datalen;
stream_bucket_append($out, $bucket);
<?php
stream_filter_register("utf8encode", "utf8encode_filter");
class utf8encode_filter extends php_user_filter {
function filter($in, $out, &$consumed, $closing) {
while($bucket = stream_bucket_make_writeable($in)) {
utf8fix($bucket->data, true);
$consumed += $bucket->datalen;
stream_bucket_append($out, $bucket);
redis = require 'redis'
spawn = require('child_process').spawn
waiter = (i)->
console.log "waiter #{i} connecting"
c = redis.createClient 6379, 'localhost'
c.on "connect", ->
c.select 2, (err, res) ->
popper(c, i)
<?php
define('IT', 100000);
error_reporting(E_ALL);
$g = array('a' => 'b');
$a = '';
function _(&$in, $k=null){
if (!isset($in)) return null;
<?php
define('IT', 100000);
error_reporting(E_ALL);
$g = array('a' => 'b');
$a = '';
function _(&$in, $k=null){
if (!isset($in)) return null;
<?php
define('IT', 100000);
error_reporting(E_ALL);
$g = array('a' => 'b');
$a = '';
function _(&$in, $k=null){
if (!isset($in)) return null;
<?php
define('IT', 100000);
error_reporting(E_ALL);
$g = array('a' => 'b');
$a = '';
function _(&$in, $k=null){
if (!isset($in)) return null;