Skip to content

Instantly share code, notes, and snippets.

View AdrianRossouw's full-sized avatar

Adrian Rossouw AdrianRossouw

View GitHub Profile
@AdrianRossouw
AdrianRossouw / debug.js
Created September 6, 2014 14:53
famous debug view - uses smoothie charts
var F = require('./famous');
var extend = require('./extend');
var AppState = require('./app-state');
var Smoothie = require('smoothie');
var colors = require('random-colors')(10);
module.exports = extend(F.View, {
constructor: function() {
F.View.apply(this, arguments);
@AdrianRossouw
AdrianRossouw / extension.diff
Last active August 29, 2015 14:08
diff between waldo and firefox extensions
diff -ur waldo-cfx/.git/config wf-cfx/.git/config
--- waldo-cfx/.git/config 2014-10-31 16:48:22.000000000 +0200
+++ wf-cfx/.git/config 2014-10-31 16:48:31.000000000 +0200
@@ -6,7 +6,7 @@
ignorecase = true
precomposeunicode = true
[remote "origin"]
- url = git@github.com:wayfin/waldo-cfx.git
+ url = git@github.com:wayfin/wf-cfx.git
fetch = +refs/heads/*:refs/remotes/origin/*
--- paths.js 2014-11-10 23:24:17.000000000 +0200
+++ paths.beta.js 2014-11-10 23:24:17.000000000 +0200
@@ -3,7 +3,7 @@
module.exports = [
{
match: /^\/ping$/,
- resource: 'http://route.wayfinder.is/ping',
+ resource: 'http://route-beta.wayfinder.is/ping',
handler: handlers.proxy,
},
input {
tcp {
codec => json_lines {
charset => "UTF-8"
}
port => 3000
}
}
filter {
input {
tcp {
codec => json_lines {
charset => "UTF-8"
}
port => 3000
}
}
filter {
input {
tcp {
codec => json_lines {
charset => "UTF-8"
}
port => 3000
}
}
filter {
@AdrianRossouw
AdrianRossouw / logstash.config
Last active August 29, 2015 14:14
logstash config
input {
tcp {
port => 5514
}
udp {
port => 5514
}
}
filter {
class provisionService {
}
class provisionService_null extends provisionService {
function __get($name) {
return false;
}
<?php
function drush_db_provision_install_validate($url) {
provision_service('db', 'connect');
}
function drush_db_pre_provision_install($url) {
provision_service('db', 'create_site_database', $url);
}