Skip to content

Instantly share code, notes, and snippets.

View scottjab's full-sized avatar

James Scott scottjab

View GitHub Profile
#justin.tv streaming command functionality
streaming() {
INRES="1440x900" # input resolution
OUTRES="1440x900" # Output resolution
FPS="35" # target FPS
QUAL="medium" # one of the many FFMPEG preset on (k)ubuntu found in /usr/share/ffmpeg
# If you have low bandwidth, put the qual preset on 'fast' (upload bandwidth)
# If you have medium bandwitch put it on normal to medium
gem install fog
Fetching: fog-1.9.0.gem (100%)
Successfully installed fog-1.9.0
1 gem installed
Installing ri documentation for fog-1.9.0...
Installing RDoc documentation for fog-1.9.0...
require 'xmlrpc/client'
# A useful helper for running Confluence XML-RPC from Ruby. Takes care of
# adding the token to each method call (so you can call server.getSpaces()
# instead of server.getSpaces(token)). Also takes care of re-logging in
# if your login times out.
#
# Usage:
#
# server = Confluence::Server.new :server => 'http://confluence02.lightningsoure.com'
{'ChassisIntrusion': 'inactive',
'CoolingFanFault': 'false',
'DriveFault': 'false',
'FrontPanelControl': 'none',
'FrontPanelLockout': 'inactive',
'LastPowerEvent': 'none',
'MainPowerFault': 'false',
'PowerControlFault': 'false',
'PowerInterlock': 'inactive',
'PowerOverload': 'false',