Skip to content

Instantly share code, notes, and snippets.

Avatar
📼
long live the new flesh

Jon Peck fluxsauce

📼
long live the new flesh
View GitHub Profile
View gist:e061357b78ef9267a63a
<?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;
View designer.html
<link rel="import" href="../core-input/core-input.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
View designer.html
<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 / index.php
Created Oct 14, 2014
Demonstrating that PHP errors do not break APC file cache
View index.php
<tt><pre>
<?php
include_once 'notice.php';
include_once 'warning.php';
$info = apc_cache_info();
var_dump($info);
View gist:6590013
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 / gist:5911294
Created Jul 2, 2013
PHP 5.5 - try, catch and finally psedocode
View gist:5911294
lock tables
// attempt to write to the database, then unlock the tables.
try {
writing to db
unlock tables
}
catch exception {
@fluxsauce
fluxsauce / gist:5282006
Created Mar 31, 2013
Compile and install PHP 5.5 beta 2 with opcache on Ubuntu 12.04.2 LTS 64-bit using phpbrew
View gist:5282006
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
You can’t perform that action at this time.