Oct 04 22:05:37 ip-172-31-11-88 fluentd-aggregator: 2017-10-04 13:05:31 +0000 [error]: #0 unexpected error on reading data host="ip-172-31-14-22.ap-northeast-1.compute.internal" port=34018 error_class=NoMethodError error="undefined method `[]=' for nil:NilClass"
Oct 04 22:05:37 ip-172-31-11-88 fluentd-aggregator: 2017-10-04 13:05:31 +0000 [error]: #0 /fluentd/etc/vendor/bundle/ruby/2.3.0/gems/fluentd-0.14.20/lib/fluent/plugin/in_forward.rb:367:in `block in add_source_info'
Oct 04 22:05:37 ip-172-31-11-88 fluentd-aggregator: 2017-10-04 13:05:31 +0000 [error]: #0 /fluentd/etc/vendor/bundle/ruby/2.3.0/gems/fluentd-0.14.20/lib/fluent/event.rb:264:in `block in each'
Oct 04 22:05:37 ip-172-31-11-88 fluentd-aggregator: 2017-10-04 13:05:31 +0000 [error]: #0 /fluentd/etc/vendor/bundle/ruby/2.3.0/gems/fluentd-0.14.20/lib/fluent/event.rb:261:in `feed_each'
Oct 04 22:05:37 ip-172-31-11-88 fluentd-aggregator: 2017-10-04 13:05:31 +0000 [error]: #0 /fluentd/etc/vendor/bundle/ruby/2.3.0/gems/fluentd-0.14.20/lib/f
This file contains 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
class Symbol | |
alias :& :to_proc | |
end | |
pp ((1..)%2).each.lazy.map(&(:succ.& >> :succ.& >> :to_s.&)).take(10).force |
This file contains 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
class Object | |
def defer(method, *args) | |
@current_fibers ||= [] | |
@tracepoint ||= TracePoint.trace(:return) do |tp| | |
@current_fibers.reverse_each do |fib| | |
fib.resume | |
end | |
end | |
@current_fibers << Fiber.new do |
This file contains 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
class C1 | |
def meth | |
end | |
end | |
class C2 < C1 | |
def meth | |
end | |
end |
<match dummy.tag>
@type copy
<store>
@type relabel
@label @bigquery-out
</store>
<store>
This file contains 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 "https://rubygems.org" | |
gem "actionpack" | |
gem "rype" | |
gem "awesome_print" | |
gem "simple-rss" |
This file contains 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
global prevIpValue | |
set prevIpValue to "" | |
on idle | |
set newIpValue to IPv4 address of (get system info) as string | |
if newIpValue = "192.168.1.80" and not newIpValue = prevIpValue then | |
try | |
display alert "NASをマウントします" |
This file contains 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 'active_support/all' | |
# require 'test/unit' | |
p({"foo" => "bar"} == {"foo" => "bar"}) # => true | |
p [{"foo" => "bar"}] == [{"foo" => "bar"}] # => true |
This file contains 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 'pp' | |
require 'timeout' | |
require 'terminal-table' | |
require 'paint' | |
class EcsDeploy | |
WAIT_TIMEOUT = 300 | |
CHECK_INTERVAL = 5 | |
attr_reader \ |
Caused by: org.embulk.config.ConfigException: com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.Character out of VALUE_STRING token
at [Source: N/A; line: -1, column: -1]
at org.embulk.config.ModelManager.readObjectWithConfigSerDe(org/embulk/config/ModelManager.java:75)
at org.embulk.config.DataSourceImpl.loadConfig(org/embulk/config/DataSourceImpl.java:220)
at org.embulk.standards.CsvFormatterPlugin.transaction(org/embulk/standards/CsvFormatterPlugin.java:91)
at org.embulk.spi.FileOutputRunner$RunnerControl$1.run(org/embulk/spi/FileOutputRunner.java:101)
at org.embulk.spi.util.Encoders$RecursiveControl.transaction(org/embulk/spi/util/Encoders.java:77)
at org.embulk.spi.util.Encoders.transaction(org/embulk/spi/util/Encoders.java:33)
at org.embulk.spi.FileOutputRunner$RunnerControl.run(org/embulk/spi/FileOutputRunner.java:98)