Skip to content

Instantly share code, notes, and snippets.

Avatar

Brandon Harvey sandover

  • Magnopus
  • Los Angeles, CA
View GitHub Profile
View room.protein example
--- !<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
View room.protein example
# 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:
View three-site.protein
--- !<tag:oblong.com,2009:slaw/protein>
descrips:
- site-configuration
- localhost
ingests:
radloc-config:
felds: ["feld1", "main", "feld2"]
min: -0.5
max: 0.5
...
View three-screen.protein
!<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 ],
View three-feld.protein
!<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 Feb 12, 2014
replacement for console.log that preserves line number information
View gist:8966541
# 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 Dec 11, 2013
Trouble brew installing pygtksourceview
View gist:7917490
» 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 Mar 21, 2012
error installing leiningen with homebrew
View gist:2152143
# 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
View gist:1508092
[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
View gist:337801
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