Skip to content

Instantly share code, notes, and snippets.

@davidpfahler
davidpfahler / test.js
Created July 27, 2015 08:40
Experiment in running unit tests without temporary files but still compile using webpack
import vm from 'vm'
import realFs from 'fs'
import path from 'path'
import react from 'react/addons'
import test from 'tape'
import mock from 'mock-fs'
import MemoryFileSystem from 'memory-fs'
import webpack from 'webpack'
import config from './webpack.config.js'
import ExtractTextPlugin from 'extract-text-webpack-plugin'
@davidpfahler
davidpfahler / gist:b0f210f6b5928bde47df
Created February 7, 2015 21:54
PouchDB live replication log
HR finished loading: GET "https://excellenteasy.cloudant.com/?_nonce=1423345990564".
XHR finished loading: GET "https://excellenteasy.cloudant.com/optinmobile-data-com-appbusinesspodcast/_local/juxttyr3WRjWC5OV4CL.fg==?_nonce=1423345990695".
XHR finished loading: GET "https://excellenteasy.cloudant.com/optinmobile-data-com-appbusinesspodcast/…CRtEtK8glh2AWAbzWTLYMpMUA9NUgzTCBmUBAOtEiYY&limit=100&_nonce=1423345990830".
XHR finished loading: GET "https://excellenteasy.cloudant.com/optinmobile-data-com-appbusinesspodcast/…016acf8440f28a70bb7e2fedd2ece93c%22]&attachments=true&_nonce=1423345991080".
XHR finished loading: GET "https://excellenteasy.cloudant.com/optinmobile-data-com-appbusinesspodcast/_local/juxttyr3WRjWC5OV4CL.fg==?_nonce=1423345991217".
XHR finished loading: GET "https://excellenteasy.cloudant.com/optinmobile-data-com-appbusinesspodcast/…CRtEtK8glh2AWAbzWQ3YMpMUA9NUgzTCBmUBAFDaif0&limit=100&_nonce=1423345991078".
XHR finished loading: PUT "https://excellenteasy.cloudant.com/optinmobile-data-com-ap

.d$b. .d$b. .d$$$$$$b.  .d$$$$$$b. .d$$$$$$b. .d$b..d$$$$$$$$b.
$$$$$..$$$$$.$$$$$$$$$$$b .$$$$$$$$$$$b $$$$$$$$$$b $$$$$$$$$$$$$$$P'
$$$$$$$$$$$$d$$$$$$$$$$$$bd$$$$$$$$$$$$b$$$$$$$$$$$b$$$$$$$$$$$$$$$b.
$$$$$$$$$$$$Q$$$$$$$$$$$$PQ$$$$$$$$$$$$P$$$$$$$$$$$P$$$$$$$$$$$$$$$P'
$$$$$´`$$$$$'$$$$$$$$$$$$''$$$$$$$$$$$$'$$$$$$$$$$P $$$$$$$$$$$$$$$b.
'Q$P' 'Q$P' 'Q$$$$$$P'  'Q$$$$$$P' 'Q$$$$$$$P 'Q$P''Q$$$$$$$$P'

Version: 0.5.2 (node v0.10.26, npm 1.4.3, platform: win32)
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
<link rel="import" href="../paper-input/paper-input.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
# appbusinesspodcast.com.conf
server {
listen 80;
index index.php index.htm index.html;
server_name 162.243.79.83 appbusinesspodcast.com *.appbusinesspodcast.com;
root /var/www/appbusinesspodcast.com;
Using milestone 1 input plugin 's3'. This plugin should work, but would benefit from use by folks like you. Please let us know if you find bugs or have suggestions on how to improve this plugin. For more information on plugin milestones, see http://logstash.net/docs/1.4.1/plugin-milestones {:level=>:warn}
Registering s3 input {:bucket=>"logs.appbusinesspodcast.com", :region_endpoint=>"us-east-1", :level=>:info}
Grok patterns path {:patterns_dir=>["/Users/djpfahler/localhost/logstash_stats/logstash-1.4.1/lib/logstash/filters/../../../patterns/*"], :level=>:info}
Grok loading patterns from file {:path=>"/Users/djpfahler/localhost/logstash_stats/logstash-1.4.1/lib/logstash/filters/../../../patterns/firewalls", :level=>:info}
Grok loading patterns from file {:path=>"/Users/djpfahler/localhost/logstash_stats/logstash-1.4.1/lib/logstash/filters/../../../patterns/grok-patterns", :level=>:info}
Grok loading patterns from file {:path=>"/Users/djpfahler/localhost/logstash_stats/logstash-1.4.1/lib/logstash/filters/../.
{
cluster_name: "elasticsearch",
status: "green",
timed_out: false,
number_of_nodes: 1,
number_of_data_nodes: 1,
active_primary_shards: 0,
active_shards: 0,
relocating_shards: 0,
initializing_shards: 0,
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en" id="ng-app"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en" id="ng-app"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="description" content="Search based application built using ElasticSearch, elastic.js, and Angular.js">
<meta name="viewport" content="width=device-width">

Keybase proof

I hereby claim:

  • I am davidpfahler on github.
  • I am davidpfahler (https://keybase.io/davidpfahler) on keybase.
  • I have a public key whose fingerprint is 6651 A02F 0EC4 0FBE 6ADE 20E5 9DDC FC7E 2B13 7A2B

To claim this, I am signing this object: