Skip to content

Instantly share code, notes, and snippets.

View rogthefrog's full-sized avatar

Roger rogthefrog

  • San Francisco Bay Area
View GitHub Profile
@rogthefrog
rogthefrog / class_v_module.py
Created September 7, 2016 16:44
Class method v. module
import module
from classmethod import Thing
Thing.do_the_thing()
module.do_the_thing()
@rogthefrog
rogthefrog / fms_check.rb
Created June 7, 2012 20:02
Nagios plugin for Flash Media Server monitoring
#!/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'
@rogthefrog
rogthefrog / permissions.py
Last active September 18, 2015 22:08
"permissions"
class Permissions(object):
_permissions = {
'read': 'lol',
'write': 'rotflmao',
'delete': 'wat',
'update': 'omg'
}
@classmethod