This file contains 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
$background-stale-color-1: #cc9999; | |
$background-stale-color-2: #333333; | |
$text-stale-color: #fff; | |
@-webkit-keyframes status-stale-background { | |
0% { background-color: $background-stale-color-1; } | |
50% { background-color: $background-stale-color-2; } | |
100% { background-color: $background-stale-color-1; } | |
} |
This file contains 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 'rubygems' | |
SCHEDULER.every '10s' do | |
widget = 'oba' | |
puts 'Deleting widget: ' + widget | |
Sinatra::Application.settings.history.delete(widget) | |
end |
This file contains 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 'rubygems' | |
SCHEDULER.cron '0 0 * * *' do | |
Sinatra::Application.settings.history.clear() | |
end |
This file contains 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
<li data-row="1" data-col="1" data-sizex="3" data-sizey="1"> | |
<div data-id="nagios-fulcrum" data-view="Iframe" data-service="Nagios Fulcrum" data-title="Nagios" data-url="http://<nagios server>/Naglite3/"></div> | |
</li> |
This file contains 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 'rubygems' | |
require 'nokogiri' | |
require 'open-uri' | |
widget = 'oba' | |
walktime = 5 | |
SCHEDULER.every '1m' do | |
soonest = 20 |
This file contains 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 'rubygems' | |
widget_count = "widget_count" | |
SCHEDULER.every '30s' do | |
widgets = Sinatra::Application.settings.history | |
total = widgets.length | |
puts "sending " + widget_count.to_s + " : " + total.to_s |
This file contains 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
#!/bin/bash | |
# A simple script that wraps a call to the Skytap metadata service. This will pull the configuration URL | |
# from the metadata service. Useful when you have the IP address of the server, but not easy translation to | |
# what configuration it is. | |
# It just passes the first parameter into SSH, so use the formatting as apporpriate: | |
# Example: | |
# skytap_info [email protected] |
NewerOlder