- title: 一晩でKubernetesを覚えて帰ろう。ワンナイトBootCamp! cndjp#10 https://cnd.connpass.com/event/123046/
- date: 2019-03-25
- place: Oracle Corp.
- tags: cndjp
- categories: study, meetup
個人的なメモ書きで内容を保証するものではありません
AWSTemplateFormatVersion: "2010-09-09" | |
Description: SNS Topic and EventBridge for SpotInstance Intteruption Notify | |
Parameters: | |
Env: | |
Type: String | |
Default: dev | |
AllowedValues: | |
- dev | |
- stg |
log_format ltsv "time:$time_local" | |
"\thost:$remote_addr" | |
"\turi:$request_uri" | |
"\tmethod:$request_method" | |
"\tforwardedfor:$http_x_forwarded_for" | |
"\treq:$request" | |
"\tstatus:$status" | |
"\tsize:$body_bytes_sent" | |
"\treferer:$http_referer" | |
"\tua:$http_user_agent" |
use sampledb; | |
SELECT | |
table_name | |
, engine | |
, table_rows | |
, avg_row_length | |
, data_free | |
, floor((data_length+index_length)/1024/1024) as all_size_MB | |
, floor((data_length)/1024/1024) as data_size_MB |
$ ./slack-notify.sh test |
$ python -c 'while True: pass' |
個人的なメモ書きで内容を保証するものではありません
### 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 |
#!/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 = "****************************************" |
module Hoge | |
def hoge_module_method | |
処理内容 | |
end | |
end |
… | |
module TestApp | |
class Application < Rails::Application | |
… | |
### モジュール自動ロードPathの指定を追記 | |
config.autoload_paths += %W(#{config.root}/lib) | |
… | |
end | |
end |