Skip to content

Instantly share code, notes, and snippets.

View civitaspo's full-sized avatar
❄️

Takahiro Nakayama civitaspo

❄️
View GitHub Profile
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
in:
type: dynamodb
region: us-east-1
scan:
total_segment: 4
table: embulk-input-dynamodb_example
auth_method: assume_role
role_arn: arn:aws:iam::xxxxxxxxxxxxxxxx:role/civitaspo-dynamodb-full-access
role_session_name: unko
HashMap<String, String> map = Maps.newHashMap();
systemConfig
.getKeys()
.stream()
.filter((key) ->
key.startsWith("database.jdbc.")
)
.forEach((key) ->
map.put(key.replace("database.jdbc.", ""), systemConfig.get(key, String.class))
);
@civitaspo
civitaspo / stacktrace
Created June 4, 2019 02:54
digdag `Failed to process variables` error
io.digdag.core.agent.OperatorManager: Task failed with unexpected error: Failed to process variables
java.lang.RuntimeException: Failed to process variables
at io.digdag.core.agent.OperatorManager.runWithWorkspace(OperatorManager.java:204)
at io.digdag.core.agent.OperatorManager.lambda$runWithHeartbeat$2(OperatorManager.java:137)
at io.digdag.core.agent.ExtractArchiveWorkspaceManager.withExtractedArchive(ExtractArchiveWorkspaceManager.java:77)
at io.digdag.core.agent.OperatorManager.runWithHeartbeat(OperatorManager.java:135)
at io.digdag.core.agent.OperatorManager.run(OperatorManager.java:119)
at io.digdag.core.agent.MultiThreadAgent.lambda$null$0(MultiThreadAgent.java:127)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
#!/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)
@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)
[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 / 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}
@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 {