Action | tmux | screen |
---|---|---|
start a new session | tmux tmux new tmux new-session |
screen |
start a new session with a name | tmux new -s name | screen -S name |
re-attach a detached session | tmux attach tmux attach-session |
screen -r |
re-attach a detached session with a name | tmux attach -t name tmux a -t name |
screen -r name |
re-attach an attached session (detaching it from elsewhere) | tmux attach -dtmux attach-session -d | screen -dr |
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
# -*- coding: utf-8 -*- | |
from __future__ import absolute_import | |
import logging | |
from contextlib import contextmanager | |
LOG = logging.getLogger(__name__) | |
class HealthCheckError(Exception): |
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
The MIT License (MIT) | |
Copyright (c) 2013 Michael E. Cotterell | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
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
2016-02-16 12:46:25 -0200 [info]: adding source type="dstat" | |
2016-02-16 12:46:25 -0200 [info]: adding source type="serverstatus" | |
2016-02-16 12:46:26 -0200 [info]: adding source type="df" | |
2016-02-16 12:46:26 -0200 [info]: adding match pattern="dstat.reformer" type="copy" | |
2016-02-16 12:46:26 -0200 [info]: adding match pattern="dstat.**" type="copy" | |
2016-02-16 12:46:26 -0200 [info]: adding match pattern="serverstatus.reformer" type="copy" | |
2016-02-16 12:46:26 -0200 [info]: adding match pattern="serverstatus.**" type="copy" | |
2016-02-16 12:46:26 -0200 [info]: adding match pattern="df.reformer" type="copy" | |
2016-02-16 12:46:26 -0200 [info]: adding match pattern="df.**" type="copy" | |
2016-02-16 12:46:26 -0200 [error]: unexpected error error="undefined local variable or method `router' for #<Fluent::DstatInput:0x002aeae61c5f60>" |
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
module Fluent | |
class ServerStatusInput < Input | |
Plugin.register_input('serverstatus', self) | |
config_param :uris, :array, :default => nil | |
config_param :uri, :string | |
config_param :stats_interval, :time, :default => 60 # every minute | |
config_param :tag_prefix, :string, :default => "serverstatus" | |
def initialize |
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
2016-02-16 11:13:25 -0200 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluent-plugin-statsd-1.0.3/lib/fluent/plugin/out_statsd.rb:31:in `to_msgpack' | |
2016-02-16 11:13:25 -0200 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluent-plugin-statsd-1.0.3/lib/fluent/plugin/out_statsd.rb:31:in `format' | |
2016-02-16 11:13:25 -0200 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.10.53/lib/fluent/output.rb:255:in `block in format_stream' | |
2016-02-16 11:13:25 -0200 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.10.53/lib/fluent/event.rb:55:in `call' | |
2016-02-16 11:13:25 -0200 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.10.53/lib/fluent/event.rb:55:in `each' | |
2016-02-16 11:13:25 -0200 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.10.53/lib/fluent/output.rb:254:in `format_stream' | |
2016-02-16 11:13:25 -0200 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.10.53/lib/fluent/output.rb:240:in `emit' | |
2016-02-16 11:13:25 |
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
<source> | |
type dstat | |
tag dstat | |
option -cnmlds | |
delay 1 | |
</source> | |
<match dstat.reformer> | |
type copy | |
<store> |
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
*** LOCAL GEMS *** | |
aws-sdk (1.52.0) | |
aws-sdk-v1 (1.52.0) | |
bson (4.0.1, 1.10.2) | |
bson_ext (1.10.2) | |
bundler (1.6.6) | |
cool.io (1.2.4) | |
diff-lcs (1.2.5) | |
fluent-logger (0.4.9) |
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
var request = Meteor.npmRequire('request') | |
, crypto = Meteor.npmRequire('crypto'); | |
cloudstack = function (options) { | |
if (!options) { | |
options = {}; | |
} | |
var apiUri = options.apiUri || process.env.CLOUDSTACK_API_URI |
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
module Fluent | |
class RedisInfo < Input | |
Plugin.register_input('redisinfo', self) | |
config_param :uri, :string | |
config_param :stats_interval, :time, :default => 60 # every minute | |
config_param :tag_prefix, :string, :default => "redisinfo" | |
def initialize | |
super |
NewerOlder