Simple Dashing widget (and associated job) to display a Twitter search. Uses Twitter API v1.1.
##Dependencies
Add it to dashing's gemfile:
Simple Dashing widget (and associated job) to display a Twitter search. Uses Twitter API v1.1.
##Dependencies
Add it to dashing's gemfile:
install | |
url --url http://mirrors.liquidweb.com/CentOS/6.5/os/x86_64/ | |
# if you use proxy | |
lang en_US.UTF-8 | |
keyboard us | |
network --bootproto=dhcp | |
rootpw password | |
authconfig --enableshadow --passalgo=sha512 | |
timezone PST | |
bootloader --location=mbr |
2014-02-19 20:34:53,696 [1392842093] Warning : Printing stored debug messages prior to our daemonization | |
2014-02-19 20:35:06,231 [1392842106] Warning : Importing module logstore_mongodb: No module named pymongo | |
2014-02-19 20:36:57,645 [1392842217] Critical : I got an unrecoverable error. I have to exit | |
2014-02-19 20:36:57,645 [1392842217] Critical : You can log a bug ticket at https://github.com/naparuba/shinken/issues/new to get help | |
2014-02-19 20:36:57,646 [1392842217] Critical : Back trace of it: Traceback (most recent call last): | |
File "/usr/local/shinken/shinken/satellite.py", line 969, in main | |
self.do_mainloop() | |
File "/usr/local/shinken/shinken/daemon.py", line 244, in do_mainloop | |
self.do_loop_turn() | |
File "/usr/local/shinken/shinken/satellite.py", line 712, in do_loop_turn |
NoMethodError: undefined method `require_relative' for main:Object | |
/var/chef/cache/cookbooks/mysql/libraries/provider_mysql_service_rhel.rb:3 | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.0/bin/../lib/chef/run_context/cookbook_compiler.rb:179:in `load' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.0/bin/../lib/chef/run_context/cookbook_compiler.rb:179:in `load_libraries_from_cookbook' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.0/bin/../lib/chef/run_context/cookbook_compiler.rb:176:in `each' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.0/bin/../lib/chef/run_context/cookbook_compiler.rb:176:in `load_libraries_from_cookbook' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.0/bin/../lib/chef/run_context/cookbook_compiler.rb:98:in `compile_libraries' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.0/bin/../lib/chef/run_context/cookbook_compiler.rb:97:in `each' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.0/bin/../lib/chef/run_context/cookbook_compiler.rb:97:in `compile_libraries' | |
/usr/lib/ruby/gems/1.8/gems/chef-11.4.0/bin/../lib/chef/run_context/cookbook_compiler.rb:7 |
==> nagios01: ================================================================================ | |
==> nagios01: Recipe Compile Error in /var/chef/cache/cookbooks/mysql/libraries/provider_mysql_service_rhel.rb | |
==> nagios01: ================================================================================ | |
==> nagios01: | |
==> nagios01: | |
==> nagios01: NoMethodError | |
==> nagios01: ------------- | |
==> nagios01: undefined method `require_relative' for main:Object | |
==> nagios01: | |
==> nagios01: |
arr = [1,2,3,4,5,5,6,7,7,7] | |
track = Hash.new | |
arr.each_with_index do | num, index | | |
unless track[num] | |
track[num] = Array.new | |
end | |
track[num].push(index) | |
end | |
track.each { |key, value| | |
if value.count == 1 |
DIRECTION = { | |
north: (351..360).to_a + (0..10).to_a, | |
north_north_east: (11..30).to_a, | |
north_east: (31..60).to_a, | |
east_north_east: (61..80).to_a, | |
east: (81..100).to_a, | |
east_south_east: (101..120).to_a, | |
south_east: (121..150).to_a, | |
south_south_east: (151..170).to_a, | |
south: (171..190).to_a, |
@direction = Hash.new('Unknown') | |
(351..360).each {|n| @direction[n] = "North" } | |
(0..10).each {|n| @direction[n] = "North" } | |
(11..30).each {|n| @direction[n] = "North North East" } | |
(31..60).each {|n| @direction[n] = "North East" } | |
(61..80).each {|n| @direction[n] = "East North East" } | |
(81..100).each {|n| @direction[n] = "East" } | |
(101..120).each {|n| @direction[n] = "East South East" } | |
(121..150).each {|n| @direction[n] = "South East" } | |
(151..170).each {|n| @direction[n] = "South South East " } |
hi |
Hi |