Skip to content

Instantly share code, notes, and snippets.

View ssoroka's full-sized avatar
👾

Steven Soroka ssoroka

👾
View GitHub Profile
@ssoroka
ssoroka / LineProtocolPayload.txt
Last active July 29, 2020 19:19 — forked from shantanoo-desai/LineProtocolPayload.txt
telegraf configuration file that connects to Mosquitto Open broker and pushes data into InfluxDB v1.x
# IOT/sensor2/temp
env,type=A temp=23.39
env,type=B temp=40.00
# IOT/sensor1/acc
env,type=A x=0.2
env,type=B x=1.3
require 'objectdb'
db = ObjectDB.new
user = {:name => 'steve', :domain => 'go_fish.com', :customer_since => Time.now.to_s}
db.set('steve@example.com', user)
db.get('steve@example.com')
=> {"name"=>"steve", "domain"=>"go_fish.com", "customer_since"=>"Sun Jul 31 02:19:51 -0500 2011"}
1939 David Heinemeier Hansson
1668 Jeremy Kemper
444 Josh Peek
436 Rick Olson
354 Jamis Buck
339 Nicholas Seckar
302 Michael Koziarski
268 Pratik Naik
156 Marcel Molina Jr.
148 Geoff Buesing
class RouteFilter
class << self
def routes
ActionController::Routing::Routes.routes
end
def controllers
::Object.subclasses_of( ::ActionController::Base )