Skip to content

Instantly share code, notes, and snippets.

View civitaspo's full-sized avatar
❄️

Takahiro Nakayama civitaspo

❄️
View GitHub Profile
require 'java'
class Error < Java::JavaLang::RuntimeException; end
class Error1 < Error; end
class Error2 < Error; end
class Error3 < Error; end
def err1
raise Error1.new("err")
end
This file has been truncated, but you can view the full file.
2017-05-26 18:37:42.191 +0900 [DEBUG] (0062:task-0018): embulk-input-hdfs: createDecompressedInputStream: hdfs://main/data/current/pf/promo/launch_tracking/2016-03-14/m/merged-m-00018.gz
2017-05-26 18:37:42.239 +0900 [DEBUG] (0062:task-0018): embulk-input-hdfs: CompressionCodec: org.apache.hadoop.io.compress.GzipCodec@41fb0731: hdfs://main/data/current/pf/promo/launch_tracking/2016-03-14/m/merged-m-00018.gz
2017-05-26 18:37:42.254 +0900 [DEBUG] (0062:task-0018): BlockReaderFactory(fileName=/data/current/pf/promo/launch_tracking/2016-03-14/m/merged-m-00018.gz, block=BP-1490112602-10.54.10.205-1412742243656:blk_3118474030_1104363250399): PathInfo{path=, state=UNUSABLE} is not usable for short circuit; giving up on BlockReaderLocal.
2017-05-26 18:37:42.270 +0900 [DEBUG] (0062:task-0018): SASL client skipping handshake in unsecured configuration for addr = /10.54.10.149, datanodeId = 10.54.10.149:50010
2017-05-26 18:37:42.367 +0900 [WARN] (0062:task-0018): doFlush:start:buffer: org.embulk.exec.PooledBufferAllocat
$ ruby test.rb
UTF-8
test_b.rb:8:in `include?': incompatible character encodings: UTF-8 and Windows-31J (Encoding::CompatibilityError)
from test_b.rb:8:in `block in <main>'
from test_b.rb:5:in `open'
from test_b.rb:5:in `<main>'
@civitaspo
civitaspo / magic_comment_frozen_string_literal_after_encoding.log
Created July 10, 2017 04:48
if `frozen_string_literal: true` is before `encoding: cp932`, `encoding: cp932` doesn't work.
#<Encoding:Windows-31J>
@civitaspo
civitaspo / build.gradle
Created July 13, 2017 05:44
javadoc を gh-pages で運用する
plugins {
id "java"
id "checkstyle"
}
group 'io.github.civitaspo'
version '0.0.1'
sourceCompatibility = 1.8
repositories {
@civitaspo
civitaspo / build.gradle
Created July 13, 2017 05:44
javadoc を gh-pages で運用する
plugins {
id "java"
id "checkstyle"
}
group 'io.github.civitaspo'
version '0.0.1'
sourceCompatibility = 1.8
repositories {
@civitaspo
civitaspo / test.dig
Created October 11, 2017 01:06
Exported variables are always evaluated as String.class .
_export:
a:
b: []
+test:
_export:
c:
d: ${a.b}
e: ${a}
#!/usr/bin/env bash
if [ -n "$1" ]; then
cat <<EOS
[NAME] $(basename $0) -- A Tool To Start Session With AWS Sessios Manager
[SYNOPSIS]
$(basename $0)
[NOTE]
- 'session-manager-plugin' has to be installed (See. https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html).
EOS
@civitaspo
civitaspo / log
Last active February 8, 2019 15:47
[~] digdag run t.dig --no-save
2019-02-08 23:42:29 +0900: Digdag v0.9.31
2019-02-08 23:42:35 +0900 [WARN] (main): Using a new session time 2019-02-08T00:00:00+00:00.
2019-02-08 23:42:35 +0900 [INFO] (main): Starting a new session project id=1 workflow name=t session_time=2019-02-08T00:00:00+00:00
2019-02-08 23:42:36 +0900 [INFO] (0016@[0:default]+t+type-check): rb>: run
String
TrueClass
Success.
* Use --session <daily | hourly | "yyyy-MM-dd[ HH:mm:ss]"> to not reuse the last session time.
* Use --rerun, --start +NAME, or --goal +NAME argument to rerun skipped tasks.
#!/usr/bin/env bash
if [ -n "$1" ]; then
cat <<EOS
[NAME] $(basename $0) -- A Tool To Start Session With AWS Sessios Manager
[SYNOPSIS]
$(basename $0)