Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
入力した CIDR のネットワーク・アドレスを表示する Alfred ワークフローを作った
Search
lorentzca
November 12, 2017
Programming
1.5k
0
Share
入力した CIDR のネットワーク・アドレスを表示する Alfred ワークフローを作った
FFLT の資料です。
lorentzca
November 12, 2017
More Decks by lorentzca
See All by lorentzca
Continuous Vulnerability scanning on CircleCI
lorentzca
1
3.2k
Other Decks in Programming
See All in Programming
WebAssembly を読み込むベストプラクティス 2026年春版 / Best Practices for Loading WebAssembly (Spring 2026)
petamoriken
4
970
CursorとClaudeCodeとCodexとOpenCodeを実際に比較してみた
terisuke
1
510
Spec Driven Development | AI Summit Vilnius
danielsogl
PRO
1
120
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
330
PicoRuby for IoT: Connecting to the Cloud with MQTT
yuuu
2
710
「Linuxサーバー構築標準教科書」を読んでみた #ツナギメオフライン.7
akase244
0
1.4k
Claude Code × Gemini × Ebitengine ゲーム制作素人WebエンジニアがGoでゲームを作った話
webzawa
0
210
t *testing.T は どこからやってくるの?
otakakot
1
860
2026年のソフトウェア開発を考える(2026/05版) / Software Engineering Scrum Fest Niigata 2026 Edition
twada
PRO
18
7.9k
AI時代のPhpStorm最新事情 #phpcon_odawara
yusuke
0
240
의존성 주입과 모듈화
fornewid
0
150
セグメントとターゲットを意識するプロポーザルの書き方 〜採択の鍵は、誰に刺すかを見極めるマーケティング戦略にある〜
m3m0r7
PRO
0
700
Featured
See All Featured
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.2k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.1k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
520
Crafting Experiences
bethany
1
130
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
290
The Art of Programming - Codeland 2020
erikaheidi
57
14k
AI: The stuff that nobody shows you
jnunemaker
PRO
6
610
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.3k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
340
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.5k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
170
Transcript
ೖྗͨ͠ CIDR ͷωοτϫʔΫɾΞ υϨεΛදࣔ͢Δ Alfred ϫʔΫϑ ϩʔΛ࡞ͬͨ @lorentzca
࡞ͬͨత • Alfred ͷϫʔΫϑϩʔΛͳΜ͔͠Β࡞Γ͍ͨ • Go ͰͳΜ͔͠Β࡞Γ͍ͨ • ঁͷࢠ͔Β CIDR
ͷωοτϫʔΫɾΞυϨεΛฉ͔Εͨࡍʹଈ ࠲ʹ͍͑ͨ(Πέϝϯ)
Alfred ͷϫʔΫϑϩʔͷ͘͠Έ Ϣʔβ͕ͳΜ͔ೖྗ͢Δ → ͳΜ͔ͷॲཧΛ͢Δ → Ξτϓοτ ͢Δ
Ϣʔβ͕ͳΜ͔ೖྗ͢Δ
Ϣʔβ͕ͳΜ͔ೖྗ͢Δ Alfred Ͱ {query} ͱͯ͠ࢀরͰ͖Δɻ
ͳΜ͔ͷॲཧΛ͢Δ Alfred ͷ Script Filter Λ͏ͱҙͷίʔυΛͬͯ݁ՌΛ Alfred ʹ͢͜ͱ͕ग़དྷΔ • ࠓճͷ߹Ϣʔβʔ͕ೖྗͨ͠
CIDR ΛҾͱͯ͠ Go Ͱ࡞ ͬͨπʔϧʹ͠ɺ • ωοτϫʔΫɾΞυϨεΛ json Ͱฦ͢ ॲཧΛߦ͏ ※ Go ͷ net ύοέʔδΛ༻ͯ͠ CIDR ͷॲཧΛ͍ͯ͠Δɻ
ͳΜ͔ͷॲཧΛ͢Δ Script FilterͰ࡞ͨ͠σʔλΛ Alfred ͢ࡍͷϑΥʔϚοτ json ͔ xml ΛબΔɻjson
Alfred 3 ͔ΒରԠͨ͠ɻ ! json ܗࣜͷϑΥʔϚοτͷྫҎԼ(࠷ݶඞཁͳͷ {"items": [{"title": "hoge"}]} )ɻ {"items": [ { "title": "hoge", "arg": "hoge" } ]} ※ arg ͕ॏཁɻ
Ξτϓοτ͢Δ arg Φϓγϣϯ͕͋ΔͱɺͦͷσʔλΛ࣍ͷϑϩʔʹΈࠐΊ Δɻ • ΫϦοϓϘʔυʹίϐʔ • ௨ηϯλʔʹ௨ • etc...
Alfred ͰΈΔͱ͜Μͳײ͡
σϞ
·ͱΊ • Alfred ॊೈʹ৭ʑग़དྷΔ ! • ͖ͳεΫϦϓτΛͬͯͳΜ͔͢Δࡍʹɺ Script Filter Λ
͏͜ͱͱ json ϑΥʔϚοτ Λ͏͜ͱɺ arg Φϓγϣϯ Λ ͏͜ͱ͕ॏཁ • ωοτϫʔΫɾΞυϨεҎ֎දࣔͰ͖ΔΑ͏ʹ͍ͨ͠
Ռ GitHub - lorentzca/alfred-ipv4-network-workflow: Get ipv4 netowrk.
ࢀߟϦϯΫ Go • net - The Go Programming Language •
json - The Go Programming Language Alfred • Features Overview - Alfred Help and Support • Script Filter - Workflow Input Objects - Alfred Help and Support • Script Filter JSON Format - Workflow Input Objects - Alfred