$ curl get.pow.cx | sh
$ curl -O https://raw.github.com/gist/4129846/7ae1709453a8a19ce9c030bf41d544dd08d96d85/php.rb
$ mv php.rb brew --prefix
/Library/Formula
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'hipchat-api' | |
require 'getopt/long' | |
require 'socket' | |
require 'erb' | |
#Do not modify these constants! (after you set these up, of course) | |
HipApiKey='ABCDEFGHKJHKJHKJHKJH' | |
Room='Nagios' |
module ApplicationHelper | |
def current_class?(test_path) | |
return 'active' if request.path == test_path | |
'' | |
end | |
end |
A Dashing widget that checks whether a server is responding to either an http or ping request. It displays either a check or alert depending on the response.
A widget made for Dashing. This widget shows multiple animated progress bars and reacts dynamically to new information being passed in. Anything with a current state and with a projected max/goal state can easily be represented with this widget. Some sample ideas would be to show progress, completion, capacity, load, fundraising, and much more.
A Dashing widget that checks whether a server is responding to either an http or ping request using smaller squares to represent its status.
This is based off of the Server Status widget that willjohnson developed but modified to work across multiple squares rather than be one square with a list.
The widget updates the appropriate squares color upon determining its status. Statuses are as follows:
# This script has to be run as a root user | |
echo "* Updating system" | |
apt-get update | |
apt-get -y upgrade | |
echo "* Installing packages" | |
apt-get -y install build-essential libmagickcore-dev imagemagick libmagickwand-dev libxml2-dev libxslt1-dev git-core nginx redis-server curl nodejs htop | |
id -u deploy &> /dev/null | |
if [ $? -ne 0 ] |
This is a dashing job to find users' availability in their Exchange calendar and puts it on a dashboard.
Note: I am not a rubyist. I'd certainly welcome some idiomadicy lessons in the comments.
Drop ews-availability.rb
in jobs/
(or dashing install b084fa409966f22badaf
), and add the following settings to config.ru
: