Skip to content

Instantly share code, notes, and snippets.

View muziyoshiz's full-sized avatar

Masahiro Muzi Yoshizawa muziyoshiz

View GitHub Profile
module Embulk
module Parser
class XxxParserPlugin < ParserPlugin
Plugin.register_parser("xxx", self)
def self.transaction(config, &control)
parser_task = config.load_config(Java::LineDecoder::DecoderTask)
# configuration code:
@sasasin
sasasin / aws-cli-exec-with-next-token.sh
Created March 9, 2023 03:07
AWS CLI の任意のコマンドを実行して .NextToken を追い掛けて全部取るやつ
#!/bin/bash
set -eo pipefail
# https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-pagination.html
AWS_CLI_COMMAND=$@
aws-cli-exec-with-next-token()
{
NEXT_TOKEN="$1"
if [ "${NEXT_TOKEN}" == "" ]; then