Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Rubyを使った開発環境構築の自動化
Search
Takashi Kokubun
August 29, 2015
Programming
9.7k
4
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Rubyを使った開発環境構築の自動化
TokyuRuby会議09 LT #tqrk09
Takashi Kokubun
August 29, 2015
Transcript
31 slides
։ൃڥߏஙͷࣗಈԽ @k0kubun
ࣗݾհ
։ൃڥߏஙͷࣗಈԽ
ڈͷࢲͷ։ൃڥ • ࣗͷMacbook Air
ڈͷࢲͷ։ൃڥ • ࣗͷMacbook Air • ࣗͷiMac
ڈͷࢲͷ։ൃڥ • ࣗͷMacbook Air • ࣗͷiMac • ݚڀࣨͷMacbook Pro
ڈͷࢲͷ։ൃڥ • ࣗͷMacbook Air • ࣗͷiMac • ݚڀࣨͷMacbook Pro •
όΠτઌͷMacbook Pro
YosemiteϦϦʔε • ແݶ Yak shavingͷ͡·Γ
YosemiteϦϦʔε • 4YosemiteΞοϓάϨʔυ໘ • શ෦ΫϦʔϯΠϯετʔϧ͢ΕΑ͘Ͷʁ • ίϚϯυҰൃͰsetup͍ͨ͠
ଞͷਓͷίϚϯυҰൃsetup • holman/dotfiles ˒3212 • ͦͦσϑΥϧτͩͱgitͳ͍ $ git clone https://github.com/holman/
dotfiles.git ~/.dotfiles && cd ~/.dotfiles && script/bootstrap
ଞͷਓͷίϚϯυҰൃsetup • mathyasbynens/dotfiles ˒12335 • ֮͑ΒΕΔΘ͚ͳ͍ • ίϐϖͷͨΊʹϒϥβ։͘ͷ͕໘ $ cd;
curl -#L https://github.com/mathiasbynens/ dotfiles/tarball/master | tar -xzv --strip- components 1 -- exclude={README.md,bootstrap.sh,LICENSE-MIT.txt}
k0kubun/rebuild Development environment bootstrap automation toolkit for OSX https://github.com/k0kubun/rebuild
k0kubun/rebuild
k0kubun/rebuild • rebuild k0kubun/dotfiles ͢Δ͚ͩ • gitͷશࣗಈΠϯετʔϧ • GUIૢ࡞ͷͨΊͷΞΫηγϏϦςΟऔಘ •
AppleScriptͰGUIૢ࡞ • dotfilesͷinstall.shΛΒͤΔ
install.shͲ͏͢Δ͔ • ࣮ࡍʹࢼͨ͠Ҋͨͪ • ryotarai/itamae • r7kamura/serverkit • γΣϧεΫϦϓτखॻ͖
itamae • Macͩͱ͏·͘ಈ͔ͳ͔ͬͨͷͰͨ͠ • itamae-plugin-resource-cask ͱ͔࡞ͬͨ • ͜ΕΛ͍͍ͪͪ࡞Δͷ͕໘
serverkit • MacڥߏஙͷϓϥάΠϯ͕ॆ࣮ͯ͠Δ • ͦΕҎ֎ͷ͜ͱΔͱ͖ • ͕ΜͬͯࣗͰϓϥάΠϯ࡞Δ • YAMLʹγΣϧεΫϦϓτॻ͘
ҙͷεΫϦϓτΛ࣮ߦ͢Δྫ execute "gem install rebuild" do not_if "gem list |
grep -q rebuild" end - type: command script: gem install rebuild check_script: "gem list | grep -q rebulid" • itamae • serverkit if gem list | grep -q rebuild; then gem install rebuild fi • γΣϧεΫϦϓτ
݁: Ruby͏ݹ͍ɺ ɹɹ ࣌γΣϧεΫϦϓτ • αʔόʔͱҧͬͯϩʔΧϧͩͱ͍Ζ͍ΖΓ͍ͨ • Ruby DSL͔YAML͔shͦͷ··͔ͷΈͷ •
ʹͱͬͯshͦͷ··͕ಡΈ͔ͬͨ͢
ϩʔΧϧͰ͍Ζ͍ΖΔྫ
k0kubun/karabiner-dsl Lightweight keyremap configuration DSL for Karabiner https://github.com/k0kubun/karabiner-dsl
k0kubun/karabiner-dsl • MacͷΩʔόΠϯυΛRubyͷDSLͰهड़Ͱ͖Δ • DSLΛղੳͯ͠XMLΛు͖KarabinerʹಡΈࠐ·ͤΔ • ૉͷKarabinerͷઃఆϑΝΠϧॻ͘ͷਏ͍
͜͏͍͏XMLΛ <?xml version="1.0"?> <root> <item> <name>Application shortcuts</name> <identifier>remap.application_shortcuts</identifier> <autogen>__KeyToKey__ KeyCode::O,
VK_CONTROL, KeyCode::VK_OPEN_URL_APP_YoruFukurou</autogen> <autogen>__KeyToKey__ KeyCode::U, VK_CONTROL, KeyCode::VK_OPEN_URL_APP_Google_Chrome</autogen> <autogen>__KeyToKey__ KeyCode::H, VK_CONTROL, KeyCode::VK_OPEN_URL_APP_iTerm</autogen> </item> <vkopenurldef> <name>KeyCode::VK_OPEN_URL_APP_YoruFukurou</name> <url type="file">/Applications/YoruFukurou.app</url> </vkopenurldef> <vkopenurldef> <name>KeyCode::VK_OPEN_URL_APP_Google_Chrome</name> <url type="file">/Applications/Google Chrome.app</url> </vkopenurldef> <vkopenurldef> <name>KeyCode::VK_OPEN_URL_APP_iTerm</name> <url type="file">/Applications/iTerm.app</url> </vkopenurldef> </root>
͜ͷDSL͔ΒੜՄೳ item "Application shortcuts" do remap "C-o", to: invoke("YoruFukurou") remap
"C-u", to: invoke("Google Chrome") remap "C-h", to: invoke("iTerm") end
ϖΞϓϩ࣌ʹൃ͢Δઃఆτοϓ5 • ࢲͷઃఆΛྫʹDSLͷॻ͖ํΛհ͠·͢
5Ґ: ࠨCommand͕Control Ωʔʹͳ͍ͬͯΔ • MySQLͷग़ྗΛίϐʔ͠Α͏ͱͯ͠ ʮmysql> Ctrl-C -- exit!ʯ item
"Command_L to Control_R" do remap "Cmd_L", to: "Ctrl_R" end
4Ґ: Control+HΛԡ͢ͱiTerm ্ཱ͕͕ͪΔ • ϒϥβͰจࣈΛফͦ͏ͱC-h͢ΔͱγΣϧ͕ ༙͍ͯ͘Δ item "Application shortcuts" do
remap "C-h", to: invoke("iTerm") end
3Ґ: Command+LΛԡ͢ͱCapsLock͞ΕΔ • ϒϥβͰΞυϨεόʔʹϑΥʔΧε͠Α͏ͱ ͢Δͱͳ͔ͥCapsLock͞ΕΔ item "CapsLock ON", config_not: "notsave.private_capslock_on"
do remap "Cmd-L", to: ɹɹ ["capslock","VK_CONFIG_FORCE_ON_notsave_private_capslock_on"] end item "CapsLock OFF", config_only: "notsave.private_capslock_on" do remap "Cmd-L", to: ["capslock", "VK_CONFIG_FORCE_OFF_notsave_private_capslock_on"] end
2Ґ: Control+OͰHipChatཱ͕ ্͕ͪΔ • vimͰҎલͷΧʔιϧҐஔʹΖ͏ͱ͢Δͱͳ ͔ͥHipChat͕ݱΕΔ item "Application shortcuts" do
if ENV['WORK_PC'] == 'true' remap "C-o", to: invoke("HipChat") else yorufukurou = system('ls /Applications | grep -q YoruFukurou') ? 'YoruFukurou' : 'Night Owl' remap "C-o", to: invoke(yorufukurou) end end
1Ґ: Control+UͰGoogle Chrome ্ཱ͕͕ͪΔ • γΣϧʹೖྗͨ͠ͷΛফͦ͏ͱ͢Δͱͳ͔ͥ ϒϥβ͕ग़ͯ͘Δ item "Application shortcuts"
do remap "C-u", to: invoke("Google Chrome") end
͓ΘΓ • ڥߏஙࣗಈԽͯ͜͠㽉㽉㽉
More Decks by Takashi Kokubun
See All by Takashi Kokubun
Lightning-Fast Method Calls with Ruby 4.1 ZJIT / RubyKaigi 2026
k0kubun
3
4.1k
一度始めたらやめられない開発効率向上術 / Findy あなたのdotfilesを教えて!
k0kubun
4
3.4k
ZJIT: The Ruby 4 JIT Compiler / Ruby Release 30th Anniversary Party
k0kubun
1
590
ZJIT: The Future of Ruby Performance / San Francisco Ruby Conference 2025
k0kubun
1
200
ZJIT: Building a New JIT Compiler for Ruby / REBASE 2025
k0kubun
0
190
Deoptimization: How YJIT Speeds Up Ruby by Slowing Down / RubyKaigi 2025
k0kubun
2
5k
YJIT Makes Rails 1.7x faster / RubyKaigi 2024
k0kubun
7
16k
Ruby JIT Hacking Guide / RubyKaigi 2023
k0kubun
2
11k
YJIT: Dive into Ruby's JIT compiler written in Rust / Rust.Tokyo 2022
k0kubun
2
2.4k
Other Decks in Programming
See All in Programming
AI時代のTerminal環境を UNIX哲学で設計・運用する
yasunori0418
1
350
はじめてのPLATEAU
nokonoko1203
1
650
作って学ぶSpring BootのAuto Configuration / JJUG Night Seminar 2026-10-19
rshindo
0
230
Web3Dライブラリを作ってVue Custom Rendererの仕組みを理解しよう / lets learn vue custom renderer by making 3d library
drumath2237
1
130
Next.js: The final boss of Web Performance
guaca
0
400
作れるエンジニアから、価値を届けるエンジニアへ
ryunakayama
1
280
느린 네트워크와 저사양 디바이스 사용자를 위한 웹뷰 로딩 시간 개선기
kmkim
1
230
学びを記事・スライド・Xへ高速展開する― AI-assisted Learning Loopで回すコンテンツ生成術
ochtum
0
210
[Kotlin Fest 2026] eBPF Tracing for Kotlin
takehaya
0
120
ビジネスロジックを堅牢に~Scala 3のドメインプリミティブ~
j5ik2o
0
160
Будущее локальных LLM – Алексей Голобурдин, PythoNN
sobolevn
0
120
Spec-Driven Development - Why Vaadin Is the Perfect Fit
simas
PRO
0
250
Featured
See All Featured
Building the Perfect Custom Keyboard
takai
2
960
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.8k
Optimising Largest Contentful Paint
csswizardry
37
4k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
1k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
380
How GitHub (no longer) Works
holman
316
150k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
70
69k
From π to Pie charts
rasagy
1
450
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
Between Models and Reality
mayunak
4
580
Joys of Absence: A Defence of Solitary Play
codingconduct
1
570