This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'resque-retry' | |
| require 'resque-lock' # with latest changes. | |
| ResourceLocked = StandardError.new | |
| class RetryOnLock | |
| extend Resque::Plugins::Retry | |
| extend Resque::Plugins::Lock | |
| def self.perform |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * add_lock_timeout - adds lock timeout ability, but by default works the same was as the current plugins. | |
| * modify_documentation_for_timeout - changes to the README describing how to use the plugin now you have more options. | |
| * change_lock_key - changed some of the methods to line up with resque-retry (like the identifier), some other assorted crap that might want pulled. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module SVTU | |
| class Packet | |
| def read(data) | |
| end | |
| def header | |
| klass = Class.new do | |
| def version | |
| 'iris_extended_ascii' | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'resque' | |
| require 'resque-retry' | |
| module Resque | |
| module Plugins | |
| # A Resque plugin to impose a parallel processing limit on jobs, based | |
| # upon their arguments. | |
| module ParallelLimit | |
| class Error < StandardError |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # copied from: http://ruby.pastebin.com/R4PZm1gN | |
| require 'rubygems' | |
| require 'tweetstream' | |
| require 'twitter' | |
| require 'osc-ruby' | |
| ### Connect to the OSC Server on Max/MSP | |
| @client = OSC::Client.new( '127.0.0.1', 3673 ) | |
| namen = [ 'username1', 'password2' ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /home/tftp | |
| /home/tftp/SIP41.8-4-1SR2S.loads | |
| /home/tftp/cvm41sip.8-4-1ES10.sbn | |
| /home/tftp/cnu41.8-4-1ES10.sbn | |
| /home/tftp/CTU24-1.raw | |
| /home/tftp/CTU24-2.raw | |
| /home/tftp/SEP00179404ADFC.cnf.xml | |
| /home/tftp/apps41.8-4-1ES10.sbn | |
| /home/tftp/term41.default.loads | |
| /home/tftp/load30018.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [general] | |
| static=yes | |
| writeprotect=no | |
| autofallthrough=yes | |
| [globals] | |
| LIVID_PHONE = SIP/1001 | |
| LIVID_EXT = Local/1001@local_ext | |
| HOME_PHONE = SIP/1002 | |
| HOME_EXT = Local/1002@local_ext |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <device> | |
| <deviceProtocol>SIP</deviceProtocol> | |
| <sshUserId>cisco</sshUserId> | |
| <sshPassword>cisco</sshPassword> | |
| <devicePool> | |
| <dateTimeSetting> | |
| <dateTemplate>D/M/Ya</dateTemplate> | |
| <timeZone>GMT Standard/Daylight Time</timeZone> | |
| <ntps> | |
| <ntp> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'svtu' | |
| require 'pp' | |
| # load fms xml configuration. | |
| fms_xml = File.open('fms_configuration.xml') | |
| store = SVTU::Data::FMSDataStoreFactory.build(fms_xml).new | |
| # parse it. | |
| store.parse_base16('4d90b3dd00000008001c000000000000000000000000000000000000037600000000000000000000000001c9c38017d784007d9300000010') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PROBLEM: | |
| lantins@macpro:~/devel/iris/fleet-manager [ruby-1.9.2-p290] (master)$ ./bin/event-cnc status | |
| WARNING: Nokogiri was built against LibXML version 2.7.8, but has dynamically loaded 2.7.3 | |
| Stopped | |
| SOLUTION: | |
| $ gem install nokogiri -- --with-xml2-include=/usr/local/include/libxml2 --with-xml2-lib=/usr/local/lib --with-xslt-dir=/usr/local |