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 'ruby-processing' | |
# ruby port of http://www.ricardmarxer.com/fisica/examples/ContactResize/applet/ContactResize.pde | |
class TalkPileApp < Processing::App | |
load_libraries :fisica | |
java_import "fisica.Fisica" | |
java_import "fisica.FWorld" | |
java_import "fisica.FDrawable" |
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 'optparse' | |
$verbose = false | |
options = { | |
:file => nil, | |
:dir => '.' | |
} | |
optparse = OptionParser.new do|opts| | |
opts.banner = <<-EOF |
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
# TOTALLY UNTESTED. Just a sketch. | |
module BatchAccumulator | |
def batch_initialize(options={}) | |
if ! self.class.method_defined?(:flush) | |
raise ArgumentError, "Any class including BatchAccumulator must define a flush() method." | |
end | |
@batch_events ||= 50 |
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
worker_processes 1; | |
user nobody nogroup; | |
pid /var/run/nginx.pid; | |
error_log /var/log/nginx/error.log; | |
events { | |
worker_connections 64; | |
} |
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
$ which god | |
/bin/god |
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
# python manage.py syncdb | |
Traceback (most recent call last): | |
File "manage.py", line 11, in ? | |
execute_manager(settings) | |
File "/usr/lib/python2.4/site-packages/django/core/management/__init__.py", line 438, in execute_manager | |
utility.execute() | |
File "/usr/lib/python2.4/site-packages/django/core/management/__init__.py", line 379, in execute | |
self.fetch_command(subcommand).run_from_argv(self.argv) | |
File "/usr/lib/python2.4/site-packages/django/core/management/__init__.py", line 261, in fetch_command | |
klass = load_command_class(app_name, subcommand) |
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
// https://github.com/ganglia/ganglia-web/blob/master/templates/default/header.tpl#L129 | |
function setStartAndEnd(startTime, endTime) { | |
// we're getting local start/end times. | |
console.log('start', new Date(startTime*1000), 'end', new Date(endTime*1000)); | |
var local_offset = new Date().getTimezoneOffset() * 60; | |
console.log('local_offset', local_offset); | |
console.log('server_utc_offset', server_utc_offset); | |
var delta = -server_utc_offset - local_offset; |
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
{ | |
"view_name": "routers", | |
"items": [ | |
{ | |
"vertical_label": "Percent", | |
"title": "Routers CPU", | |
"metric_regex": [ | |
{ | |
"regex": "cpu_(system|user)" | |
} |
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
These are some user stories I scraped together to help guide the rewrite of ganglia's web application. | |
Overview | |
======== | |
Most of the time, I want to just quickly have a look at the overall status of our systems, and verify that everything is | |
running smoothly. I tend to browse around the app, not necessarily looking for anything specific. I just want to be able | |
to see that everything looks 'normal'. If we receive a problem report (usually something vague like 'the web site is slow'), | |
ganglia is often the first place I look for any sign of trouble. | |
Here, I find the most value in being able to visualize lots of data at once, and in being able to quickly navigate from |
NewerOlder