Skip to content

Instantly share code, notes, and snippets.

View zllovesuki's full-sized avatar

Rachel Chen zllovesuki

View GitHub Profile
@zllovesuki
zllovesuki / request.php
Last active August 29, 2015 14:02
Cache Request
<?php
$website = 'http://yourwebsite.com'; //no trailing slash
$key = 'kokenwtf';
/*
*
* RUNNING ON A MACHINE THAT HAS UNLIMITED EXECUTION TIME IS HIGHLY ENCOURAGED
@zllovesuki
zllovesuki / cache.url.php
Created June 13, 2014 19:53
Cache URL Generator
<?php
$retina = true;
$key = 'kokenwtf'; //ENTER YOUR OWN KEY
if ($_GET['key'] != $key) die;
$ds = DIRECTORY_SEPARATOR;
$root = dirname(__FILE__);
$content = $root . $ds . 'storage';
@zllovesuki
zllovesuki / gist:83d21858e7810105f42e
Created June 13, 2014 10:16
Image Conversion Collision solution
<?php
date_default_timezone_set('UTC');
error_reporting(0);
if (isset($_GET['path']))
{
$path = $_GET['path'];
}