Perl-inspired notation to quote strings: by using % (percent character) and specifying a delimiting character.
Any single non-alpha-numeric character can be used as the delimiter, %[including these], %?or these?, %~or even these things~.
| #!/usr/bin/env ruby | |
| require 'faraday' | |
| require 'json' | |
| require 'gitlab' | |
| module Redmine | |
| Host = nil | |
| APIKey = nil |
| #!/usr/bin/env ruby | |
| # by Helder Ribeiro 2009 | |
| # by Fabien Jakimowicz 2010 | |
| # | |
| # Plugin to monitor delayed_jobs' queue size | |
| # Gives updates with number of jobs that haven't been started yet | |
| # plus the ones that failed and are still rescheduled for another run | |
| # | |
| # Parameters supported: | |
| # |
I hereby claim:
To claim this, I am signing this object:
| require 'lib/mongo/retry' | |
| require 'lib/mongo/repl_set_connection' |
| #!/usr/bin/env ruby | |
| def output_config | |
| puts <<-END | |
| graph_category passenger | |
| graph_title rails processes memory | |
| graph_vlabel megabytes | |
| graph_info This graph shows the average, min and max memory consumption made by rails processes. | |
| graph_order max average min | |
| max.label max |
| #!/usr/bin/env ruby | |
| def output_config | |
| puts <<-END | |
| graph_category passenger | |
| graph_title memory | |
| graph_vlabel megabytes | |
| graph_info This graph shows the memory consumption made by passenger processes, passenger and nginx. | |
| graph_order nginx passenger rails | |
| rails.label rails |
| #!/usr/bin/env ruby | |
| def output_config | |
| puts <<-END | |
| graph_category passenger | |
| graph_title status | |
| graph_vlabel count | |
| graph_info This graph shows how much passenger process are working, available and how much queries are waiting. | |
| max.label max processes | |
| max.draw AREA |