Skip to content

Instantly share code, notes, and snippets.

View huanga's full-sized avatar

Andy Huang huanga

View GitHub Profile
@huanga
huanga / config.yaml
Created November 24, 2021 17:49
k3os config.yaml
ssh_authorized_keys:
- github:huanga
@huanga
huanga / WrapperPOC.php
Created January 15, 2016 18:58
POC workaround for the eval on: https://gist.github.com/edhaase/ad6fcafb437fbd83ed33#file-twigapcucache-php-L35 Note: This requires allow_url_include to be set to 1 in php.ini, which is less than ideal unless you have control of the entire code base, including libraries brought in via Composer; because you can never be too certain what third par…
<?php
$content['data'] = <<< ENDOFCACHE
<?php
class __TwigTemplate_4a6b76b264f297385591d11dab293ca7beedbe9b3753afa9039645fcaaf2c301
{
function __construct() {
echo 'loaded properly';
}
}
ENDOFCACHE;
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "wheezy64"