Skip to content

Instantly share code, notes, and snippets.

View windley's full-sized avatar

Phil Windley windley

View GitHub Profile
// fails with buster-test:
//
// [pjw-iMac test]$ buster-test
// Failure: Chrome 31.0.1650.63, Mac OS X 10.9.0 Profile testing getProfileTests We can retrieve profile
// No assertions!
"getProfileTests" : {
"We can retrieve profile": function () {
callback = function(json) {
@windley
windley / gist:8232619
Last active January 2, 2016 01:49
test ruleset with -1
ruleset test_1 {
global {
y = x-1;
z = z - 1;
Var = var1 + var2 - 1;
}
rule foo {
select when web pageview
@windley
windley / keybase.md
Last active August 29, 2015 13:57
Keybase id verification

Keybase proof

I hereby claim:

  • I am windley on github.
  • I am windley (https://keybase.io/windley) on keybase.
  • I have a public key whose fingerprint is 96A0 664D 09A5 2AD2 41A4 7171 6535 F087 3B98 B39D

To claim this, I am signing this object:

log: function()
{
if (this.defaults.logging && console && console.log) {
[].unshift.call(arguments, "Fuse:"); // arguments is Array-like, it's not an Array
console.log.apply(console, arguments);
}
},
init: function(cb)
{
cb = cb || function(){};
Fuse.log("Initializing...");
$.when(
Fuse.get_profile(),
Fuse.fleet_channel()
).done(function(profile, eci){
Fuse.log("Done initializing...");
Fuse.log("Stored fleet channel", eci[0]);
[pjw blog]$ keybase id orcmid
✔ public key fingerprint: 04D0 4322 979B 84DE 1077 0334 F96E 89FF D456 628A
✔ "orcmid" on twitter: https://twitter.com/orcmid/status/455068012932902912
✔ "orcmid" on github: https://gist.github.com/10563606
✖ admin of nfocentrale.com via HTTP: http://nfocentrale.com/keybase.txt (failed with code null: check url failed for {"api_url":"http://nfocentrale.com/keybase.txt","signature":"-----BEGIN PGP MESSAGE-----\nVersion: GnuPG v2.0.22 (MingW32)\n\nowE1UVtIFFEY3vGyWLCb2EOiIjRJKrsrc5+dgcq8rEQ9VVqBtc3lzDqlM+PsuGbm\nU0hYBGpYYUVtYJgUUZFKQbvlQ8kiJRlYtiXlkw+bhD6E2+WM2Xk5nP+7/ef/e12Z\njgzkp9bzZ6ZBPI8k4j9Ex4E9r+o7UVGXO1C+Ez0J1i5F1ULANExVs1AexSgZo0iC\n4FhO9FMywDGWxUiSUjgG+DlFkSmaYQi/gHrRJj1sK6CNKIRBharDGnwEVRlWAxxT\n6+cCgZp//N0Qa1sDSBKTAM5ILC6QlCQqEmBwXBQZiuYUSsAwmxgGpia0AMjWTakF\nyrq8KKxFVAnYHdvB67im6BLQLFNoBhWS3gLFhqlbuqQ3Q7DJsgze1lodhk1uB2Jw\n3SYoqpoMPw4FEWCGVV1DeRwyJUu1fXGSY0mKwhjai4JThmqCoGozaJbxY/DYMSAC\nLSmB4RQCE3GW5Dg4IpoSFE5gCEXAOBknSJxgRJZgWQKwIiGTLOaHeoKGMKWQMm2P\nMQxaNR3lYZIlhKBl
rule send_email_to_owner {
select when fuse email_for_owner
pre {
me = pds:get_all_me();
fleet_backchannel = CloudOS:subscriptionList(common:namespace(),"Fleet").head().pick("$.backChannel").defaultsTo("");
subj = event:attr("subj").defaultsTo("Message from Fuse");
msg = event:attr("msg").defaultsTo("This email contains no message");
html = event:attr("html").defaultsTo(msg);
@windley
windley / KDK
Created January 23, 2015 21:41
ruleset a41x228 {
meta {
name "KDK"
description <<
KDK
This is the Kynetx Developer Kit. It includes the ability
to manage registered rulesets as well as the interface for the
KRL application.
>>
Verifying that +windley is my openname (Bitcoin username). https://onename.com/windley
Verifying I am +windley on my passcard. https://onename.com/windley