Skip to content

Instantly share code, notes, and snippets.

View fluxsauce's full-sized avatar
📼
long live the new flesh

Jon Peck fluxsauce

📼
long live the new flesh
View GitHub Profile
@fluxsauce
fluxsauce / gist:5282006
Created March 31, 2013 21:08
Compile and install PHP 5.5 beta 2 with opcache on Ubuntu 12.04.2 LTS 64-bit using phpbrew
sudo -i
# Make sure the prerequisites are installed.
apt-get -y install autoconf automake curl build-essential libxslt1-dev re2c libxml2-dev
# Install PHP 5 dependencies.
apt-get -y build-dep php5
# Download phpbrew
cd /usr/bin
curl -O https://raw.github.com/c9s/phpbrew/master/phpbrew
# Make phpbrew executable.
chmod +x phpbrew
@fluxsauce
fluxsauce / gist:5911294
Created July 2, 2013 17:29
PHP 5.5 - try, catch and finally psedocode
lock tables
// attempt to write to the database, then unlock the tables.
try {
writing to db
unlock tables
}
catch exception {
core = 7.x
api = 2
; Modules
projects[admin_menu][subdir] = contrib
projects[ctools][subdir] = contrib
projects[devel][subdir] = contrib
projects[features][subdir] = contrib
projects[generate_errors][subdir] = contrib
projects[module_filter][subdir] = contrib
@fluxsauce
fluxsauce / index.php
Created October 14, 2014 04:13
Demonstrating that PHP errors do not break APC file cache
<tt><pre>
<?php
include_once 'notice.php';
include_once 'warning.php';
$info = apc_cache_info();
var_dump($info);
@fluxsauce
fluxsauce / designer.html
Created February 24, 2015 16:35
designer
<link rel="import" href="../core-input/core-input.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@fluxsauce
fluxsauce / designer.html
Last active August 29, 2015 14:16
designer
<link rel="import" href="../core-input/core-input.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="http://wdm.dev/feeds/audio/rss.xml" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title></title>
<link>http://wdm.dev/feeds/audio/rss.xml</link>
<description></description>
<language>en</language>
<item>
<title>Test Podcast</title>
<link>http://wdm.dev/content/test-podcast</link>
<description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;p&gt;Take it!&lt;/p&gt;