- title: 一晩でKubernetesを覚えて帰ろう。ワンナイトBootCamp! cndjp#10 https://cnd.connpass.com/event/123046/
- date: 2019-03-25
- place: Oracle Corp.
- tags: cndjp
- categories: study, meetup
個人的なメモ書きで内容を保証するものではありません
| $ jot 100 | awk '$1%3==0&&$1%15!=0{print "Fizz"} $1%5==0&&$1%15!=0{print "Buzz"} $1%15==0 {print "FizzBuzz"} $1%3!=0&&$1%5!=0{print $1 }' | tr ' ' '\n' |
| #!/bin/env ruby | |
| #encoding:UTF-8 | |
| require "twitter" | |
| # アプリケーションキー(consumer key/secret)の読み込み | |
| Twitter.configure do |cnf| | |
| cnf.consumer_key = "XXXX" | |
| cnf.consumer_secret = "XXXX" | |
| end |
| % ruby -e 'while (1); end' |
| ruby -e loop{} |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| int main() { | |
| char *p; | |
| unsigned long i = 1073741824; | |
| // 文字列変数に1GB(1073741824 B)のメモリを確保し続ける | |
| // メモリを確保できなくなるとmallocはnullを返すため、nullが返されるまで繰り返す | |
| do { |
| … | |
| module TestApp | |
| class Application < Rails::Application | |
| … | |
| ### モジュール自動ロードPathの指定を追記 | |
| config.autoload_paths += %W(#{config.root}/lib) | |
| … | |
| end | |
| end |
| module Hoge | |
| def hoge_module_method | |
| 処理内容 | |
| end | |
| end |
| #!/bin/env ruby | |
| #encoding:UTF-8 | |
| require "twitter" | |
| # アプリケーションキー(consumer key/secret)の読み込み | |
| # OAuth アクセストークンの読み込み | |
| @client = Twitter::REST::Client.new do | cnf | | |
| cnf.consumer_key = "****************************************" | |
| cnf.consumer_secret = "****************************************" | |
| cnf.access_token = "****************************************" |
| ### Localization | |
| d-i debian-installer/locale string en_US | |
| d-i console-keymaps-at/keymap select jp | |
| d-i console-setup/ask_detect boolean false | |
| # Keyboard selection. | |
| d-i keyboard-configuration/layoutcode string jp | |
| d-i keyboard-configuration/modelcode jp106 | |
| ### Network configuration |
個人的なメモ書きで内容を保証するものではありません