こわくないConsul
事前に、ワークショップ用のサンプルプロジェクトをチェックアウトし、VMの作成だけしておきましょう。 --no-provision
でお願いします!
---
author: @monochromegane Miyake Yusuke
created_for: RailsGirls Fukuoka 1st on 2015-07-24,25
---
やわらかRubyはCC BY 4.0 で提供します。 | |
詳細: https://creativecommons.org/licenses/by/4.0/deed.ja | |
This work is licensed under a Creative Commons Attribution 4.0 International License. | |
See also: https://creativecommons.org/licenses/by/4.0/deed |
問Y-1
クラス(モジュール)にはancestorsという、そのクラスの親を一覧するメソッドがあります。以下のインスタンスについて、その所属するクラスのancestorsを表示してください。
・String 例: "aaa"
・Array 例: [1, 2, 3]
・自作のクラス
また、これらに共通するクラス/モジュールを表示してください
require 'fiddle/import' | |
module Dupper | |
extend Fiddle::Importer | |
dlload 'libc.so.6' | |
extern 'int dup2(int oldfd, int newfd);' | |
end | |
require 'pty' | |
master, tty = PTY.open |
function peco-git-checkout () { | |
local selected_branch=$(git branch --list --no-color | colrm 1 2 | peco) | |
if [ -n "$selected_branch" ]; then | |
BUFFER="git checkout ${selected_branch}" | |
zle accept-line | |
fi | |
} | |
zle -N peco-git-checkout | |
bindkey '^[;^[c' peco-git-checkout |
## CONTAINER RUNTIME MEETUP #3 working environment | |
$ lsb_release -a | |
No LSB modules are available. | |
Distributor ID: Ubuntu | |
Description: Ubuntu 20.10 | |
Release: 20.10 | |
Codename: groovy | |
$ uname -a | |
Linux ubuntu-groovy 5.8.0-38-generic #43-Ubuntu SMP Tue Jan 12 12:42:13 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux | |
$ runc -v |
bpf(BPF_MAP_CREATE, {map_type=BPF_MAP_TYPE_ARRAY, key_size=4, value_size=32, max_entries=1, map_flags=0, inner_map_fd=0, map_name="", map_ifindex=0, btf_fd=0, btf_key_type_id=0, btf_value_type_id=0}, 120) = 4 | |
bpf(BPF_PROG_LOAD, {prog_type=BPF_PROG_TYPE_SOCKET_FILTER, insn_cnt=5, insns=0x7ffffd20c790, license="GPL", log_level=0, log_size=0, log_buf=NULL, kern_version=KERNEL_VERSION(0, 0, 0), prog_flags=0, prog_name="", prog_ifindex=0, expected_attach_type=BPF_CGROUP_INET_INGRESS, prog_btf_fd=0, func_info_rec_size=0, func_info=NULL, func_info_cnt=0, line_info_rec_size=0, line_info=NULL, line_info_cnt=0, attach_btf_id=0, attach_prog_fd=0}, 120) = -1 EPERM (Operation not permitted) |