Skip to content

Instantly share code, notes, and snippets.

Hiroyuki Sato hiroyuki-sato

View GitHub Profile
@hiroyuki-sato
hiroyuki-sato / gist:481d6b09d95f48a332375d2c7c68bebc
Last active Jul 10, 2020
Embulk & Digdag tech talk in Japan Jully, 2020.
View gist:481d6b09d95f48a332375d2c7c68bebc

Embulk & Digdag Online Meetup 2020

Embulk

Digdag

@hiroyuki-sato
hiroyuki-sato / embulk.md
Last active Jul 9, 2020
embulk-input-postgresql`のtimestamp without time zoneカラムの動作
View embulk.md

embulk-input-postgresqlのtimestamp without time zoneカラムの動作

  • postgrsql.conf内に書いたtimezoneの影響は受けない
  • embulkを実行するホストのタイムゾーンに影響する
create table timezone_test (
  id int not null,
View embulk.md
in:
  type: file
  path_prefix: /private/tmp/hoge/csv/sample_
  decoders:
  - {type: gzip}
  parser:
    charset: UTF-8
    newline: LF
    type: csv
View embulk.md
in:
  type: file
  path_prefix: hoge/csv/sample_
  decoders:
  - {type: gzip}
  parser:
    charset: UTF-8
    newline: LF
View named.8.txt
@INDOT_U@NAMED(@SYS_OPS_EXT_U@) @INDOT_U@NAMED(@SYS_OPS_EXT_U@)
NAME
@INDOT@named − Internet domain name server
SYNOPSIS
@INDOT@named [ −d debuglevel ] [ −p port#[/localport#] ] [{−b} bootfile
] [ −q ] [ −r ]
@hiroyuki-sato
hiroyuki-sato / file.txt
Created Jun 6, 2020
cloud /etc/netplan/50-cloud-init.yaml
View file.txt
# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
View gist:48ea6291a8560980875b43af3440e471
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "resolvectl status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs must not access this file directly, but only through the
View gist:f9d6d642a3dbce9d0b7a123e853668dd
show version
Unknown kernel version: vmlinuz-5.4.0-1009-aws
Boot via: disk
Hypervisor: Xen hvm
HW model: HVM domU
HW S/N: ec2f11e7-f4c6-deb4-e3bb-8043920f5915
HW UUID: ec2f11e7-f4c6-deb4-e3bb-8043920f5915
Uptime: 12:14:24 up 15 min, 1 user, load average: 0.00, 0.02, 0.04
View test.md
use ExtUtils::MakeMaker;
WriteMakefile(
    'NAME'		=> 'MeCab',
    'CC'                => `mecab-config --cxx`,
    'LD'                => `mecab-config --cxx`,
    'INC'               => `mecab-config --cflags`,
    'LIBS'              => `mecab-config --libs`,
    'VERSION'	        => `mecab-config --version`,
    'OBJECT'            => 'MeCab_wrap.o'
@hiroyuki-sato
hiroyuki-sato / digdag.md
Created May 19, 2020
digdag server example
View digdag.md
timezone: UTC

_export:
  rb:
    require: scripts/myclass

+setup:
  rb>: MyClass.print_time
  label: start
You can’t perform that action at this time.