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
| # | |
| # Requires collectd to be configured with the unixsock plugin, like so: | |
| # | |
| # LoadPlugin unixsock | |
| # <Plugin unixsock> | |
| # SocketFile "/var/run/collectd-unixsock" | |
| # SocketPerms "0775" | |
| # </Plugin> | |
| # | |
| # Copyright (C) 2008 Clay Loveless <clay@killersoft.com> |
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
| #! /bin/sh | |
| # by http://en.opensuse.org/User:Mvidner | |
| # https://bugzilla.novell.com/show_bug.cgi?id=222757 | |
| usage() { | |
| cat >&2 <<EOF | |
| $0 version 0.2 | |
| Usage: | |
| $0 --update ONE_NAME | |
| $0 --remove ONE_NAME | |
| $0 [--install [ONE_FILE]] |
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
| init = Rails::Initializer.run do |config| | |
| #... | |
| end | |
| # look for all existing loaded plugin's public/ directories | |
| plugin_assets = init.loaded_plugins.map { |plugin| File.join(plugin.directory, 'public') }.reject { |dir| not (File.directory?(dir) and File.exist?(dir)) } | |
| init.configuration.middleware.use MyApp::Rack::StaticOverlay, :roots => plugin_assets |
NewerOlder