Skip to content

Instantly share code, notes, and snippets.

Roger rogthefrog

  • San Francisco Bay Area
View GitHub Profile
@rogthefrog
rogthefrog / class_v_module.py
Created Sep 7, 2016
Class method v. module
View class_v_module.py
import module
from classmethod import Thing
Thing.do_the_thing()
module.do_the_thing()
View permissions.py
class Permissions(object):
_permissions = {
'read': 'lol',
'write': 'rotflmao',
'delete': 'wat',
'update': 'omg'
}
@classmethod
@rogthefrog
rogthefrog / fms_check.rb
Created Jun 7, 2012
Nagios plugin for Flash Media Server monitoring
View fms_check.rb
#!/usr/bin/ruby
# nagios plugin for Flash Media Server monitoring
# roger 2012-06-04
require 'rubygems'
require 'open-uri'
require 'optparse'
require 'ostruct'
require 'set'
require 'xmlsimple'
You can’t perform that action at this time.