Skip to content

Instantly share code, notes, and snippets.

View sandover's full-sized avatar

Brandon Harvey sandover

  • Magnopus
  • Los Angeles, CA
View GitHub Profile
--- !<tag:oblong.com,2009:slaw/protein>
descrips:
- room-configuration
ingests:
principal: a
room-enabled: true
this-machine: a
sync-timeout: 300
machines-in-room:
- a
# roomsetup1 - g-speak 3.10.14 (optimized), libYaml 0.1.4
--- !<tag:oblong.com,2009:slaw/protein>
descrips:
- room-configuration
ingests:
principal: a
room-enabled: true
this-machine: a
sync-timeout: 300
machines-in-room:
--- !<tag:oblong.com,2009:slaw/protein>
descrips:
- site-configuration
- localhost
ingests:
radloc-config:
felds: ["feld1", "main", "feld2"]
min: -0.5
max: 0.5
...
!<tag:oblong.com,2009:slaw/protein>
descrips:
- visidrome
- screen-info
ingests:
screens:
{ main:
{ type: basic,
cent: [ 0.0, 0.0, -1200.0 ],
phys-size: [ 1920.0, 1080.0 ],
!<tag:oblong.com,2009:slaw/protein>
descrips:
- visidrome
- feld-info
ingests:
felds:
{ main:
{ window: [640, 0, 640, 360],
screen: main
},
@sandover
sandover / gist:8966541
Created February 12, 2014 23:17
replacement for console.log that preserves line number information
# exposes a global 'log' function that preserves line numbering and formatting.
(() ->
methods = [
'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
'timeStamp', 'trace', 'warn']
noop = () ->
# stub undefined methods.
for m in methods when !console[m]
@sandover
sandover / gist:7917490
Created December 11, 2013 20:07
Trouble brew installing pygtksourceview
» brew doctor
Warning: Some installed formula are missing dependencies.
You should `brew install` the missing dependencies:
brew install pygtksourceview
Run `brew missing` for more details.
» brew install -v pygtksourceview 2>&1
/usr/bin/env perl -e use XML::Parser
@sandover
sandover / gist:2152143
Created March 21, 2012 19:59
error installing leiningen with homebrew
# brew update: done
# brew doctor
~ > sudo chown -R $USER /usr/local
~ > sudo chown -R $USER /usr/local/.git
~ > sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
~ > brew update
Already up-to-date.
~ > brew doctor
Error: class "Qt48" expected but not found in qt-4-8.rb
@sandover
sandover / gist:1508092
Created December 21, 2011 22:57
from saleshub
[Wed, 21 Dec 2011 22:55:53 +0100] INFO: *** Chef 0.10.4 ***
[Wed, 21 Dec 2011 22:55:54 +0100] DEBUG: Building node object for enterprise-11-10-28-i386
[Wed, 21 Dec 2011 22:55:54 +0100] DEBUG: Extracting run list from JSON attributes provided on command line
[Wed, 21 Dec 2011 22:55:54 +0100] INFO: Setting the run_list to ["enterprise-configure"] from JSON
[Wed, 21 Dec 2011 22:55:54 +0100] DEBUG: Applying attributes from json file
[Wed, 21 Dec 2011 22:55:54 +0100] DEBUG: Platform is ubuntu version 11.10
[Wed, 21 Dec 2011 22:55:54 +0100] INFO: Run List is [recipe[enterprise-configure]]
[Wed, 21 Dec 2011 22:55:54 +0100] INFO: Run List expands to [enterprise-configure]
[Wed, 21 Dec 2011 22:55:54 +0100] INFO: Starting Chef Run for enterprise-11-10-28-i386
[Wed, 21 Dec 2011 22:55:54 +0100] DEBUG: No chefignore file found at /data/enterprise/cookbooks/chefignore no files will be ignored
def auth_by_eso( username, password )
begin
driver = SOAP::WSDLDriverFactory.new(ESO_WEB_SERVICE_URL).create_rpc_driver
result = driver.Authenticate( { :username => username, :password => password} )
result.authenticateResult == 'VALID_USER'
rescue
logger.info " >> ESO authentication failed for #{params[:action]} in #{params[:id]}"
false
end
end