Skip to content

Instantly share code, notes, and snippets.

View rsbohn's full-sized avatar

Randall Bohn rsbohn

  • Rando Media
  • Orem Utah USA
View GitHub Profile
@rsbohn
rsbohn / kilter.rb
Created November 11, 2010 00:54
Generates a Twilio app rulset for Kynetx
# you need a Kynetx developer account
# and you have to create a Kynetx ruleset
# your hook (for your Twilio phone number) will be:
# http://webhooks.kynetx.com:3098/t/--appID--/callstart
# (replace --appID-- with your app ID such as a8x16
# - or a8x16.dev to use the latest dev version of the ruleset)
#
# 2010-11-22 (rsbohn) Now with YAML!
# -- create kilter.yml in the same directory, then run kilter.rb
# -- sample YAML at the bottom of this file!
@rsbohn
rsbohn / a421x14.krl
Created December 30, 2010 00:54
KRL Ruleset for OneTrueFan
ruleset a421x14 {
meta {
name "more-true-fan"
description "Add OneTrueFan widget to a website"
author "Randall Bohn"
logging off
}
// add more domains here
dispatch {
@rsbohn
rsbohn / a421x45.krl
Created April 7, 2011 18:09
Trying some recursive actions
ruleset a421x45 {
meta {
name "Try Recursion"
description <<
Try some recursion
>>
author "Randall Bohn"
logging on
}
@rsbohn
rsbohn / a421x54.krl
Created April 20, 2011 17:36
Fun with jQuery UI
ruleset a421x54 {
meta {
name "Fun With jQuery UI"
description <<
Fun Fun Fun
>>
author "Randall Bohn"
logging off
use css resource jquery_ui_smoothness_css
@rsbohn
rsbohn / a421x99.krl
Created May 19, 2011 01:46
test hmac-sha1
ruleset a421x67 {
meta {
name "test-hmac-sha1"
description "Test hmac_sha1_base64(msg, key) function"
author "Randall Bohn"
logging on
}
dispatch {}
global {}
@rsbohn
rsbohn / a421x68.krl
Created May 19, 2011 13:47
Test HMAC functions
ruleset a421x68 {
meta {
name "test-hmac"
description <<
Test the various hmac functions.
Expected values from Python.
http://ktest.heroku.com/a421x68
>>
author "Randall Bohn"
logging on
@rsbohn
rsbohn / a421x69.krl
Created May 20, 2011 00:57
Try PeepsOnEAv
ruleset a421x69 {
meta {
name "try-peav"
description <<
Try out Ed Orcutt's PeepsOnEAv module.
>>
author "Randall Bohn"
logging on
use module a421x70 alias Regression
use module a169x322 alias PeepsOnEAv
@rsbohn
rsbohn / sample.krl
Created May 20, 2011 17:18
Using the a421x70 regression test module
ruleset a421x99 {
meta {
name "use regression module"
description << sample use of regression module >>
author "Randall Bohn"
use module a421x70 alias Regression
}
dispatch {}
global {
@rsbohn
rsbohn / a1764x27.krl
Created September 27, 2011 11:08
Hello Monkey
ruleset a1764x27 {
meta {
name "Chapter 10 Hello Monkey"
description <<
An example Twilio app. Give Twilio following URL to try it out:
http://webhooks.kynetxapps.net/t/a1764x27/inbound_call
>>
author "randy"
logging on
use module a421x70 alias Regression
@rsbohn
rsbohn / GreenResources.krl
Created October 15, 2011 11:52
KRL Resources Experiment
ruleset GreenResources {
meta {
name "Green Team Resources"
description "Resources for team GREEN. Loaded from the bootstrap RulesetA."
author "Randall Bohn"
use javascript resource "https://library.exampley.com/team_green.js"
}
dispatch {}
global {}
rule bootstrap {