Skip to content

Instantly share code, notes, and snippets.

View rspindel's full-sized avatar

R'phael Spindel rspindel

View GitHub Profile

Retinafy Your Site / Device

By Nijiko Yonskai

=====

I made a book, its one page.

Table Of Contents

<?php
/*
Usage:
$frag = new CWS_Fragment_Cache( 'unique-key', 3600 ); // Second param is TTL
if ( !$frag->output() ) { // NOTE, testing for a return of false
functions_that_do_stuff_live();
these_should_echo();
// IMPORTANT
$frag->store();
// YOU CANNOT FORGET THIS. If you do, the site will break.
@rspindel
rspindel / contact.me
Created May 26, 2013 22:53
http://play.tdc.dk. @peterwind I have a project very similar to play.tdc based on same frameworks (aura, backbone/angular), would you be interested in available work? Contact me at rspindel@webspin.biz
Just for a @mention of @peterwind
$config = {
"application" => "DOMAIN.TLD",
"repository" => "git@GITHOST:USERNAME/REPOSITORYNAME.git",
"remoteusername" => "REMOTEUSERNAME",
"cake_folder" => "/PATH/TO/CAKE",
"cake_version" => "cakephp1.3",
"plugin_dir" => "plugins",
"servers" => {
"prod" => {
"server" => "APPLICATION.TLD",
#!/usr/bin/perl
use warnings;
use strict;
use File::Find;
use File::Spec::Functions qw(rel2abs);
use File::Basename;
use Cwd;
my $dir = dirname(rel2abs($0));