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
0
1.3k
入力した CIDR のネットワーク・アドレスを表示する Alfred ワークフローを作った
FFLT の資料です。
lorentzca
November 12, 2017
Tweet
Share
More Decks by lorentzca
See All by lorentzca
Continuous Vulnerability scanning on CircleCI
lorentzca
1
3k
Other Decks in Programming
See All in Programming
Java Webフレームワークの現状 / java web framework at burikaigi
kishida
9
2.2k
Pulsar2 を雰囲気で使ってみよう
anoken
0
240
GitHub Actions × RAGでコードレビューの検証の結果
sho_000
0
260
データの整合性を保つ非同期処理アーキテクチャパターン / Async Architecture Patterns
mokuo
47
17k
『GO』アプリ データ基盤のログ収集システムコスト削減
mot_techtalk
0
120
もう僕は OpenAPI を書きたくない
sgash708
5
1.6k
Honoをフロントエンドで使う 3つのやり方
yusukebe
7
3.3k
Amazon S3 TablesとAmazon S3 Metadataを触ってみた / 20250201-jawsug-tochigi-s3tables-s3metadata
kasacchiful
0
160
Bedrock Agentsレスポンス解析によるAgentのOps
licux
3
840
仕様変更に耐えるための"今の"DRY原則を考える / Rethinking the "Don't repeat yourself" for resilience to specification changes
mkmk884
0
170
Writing documentation can be fun with plugin system
okuramasafumi
0
120
2024年のkintone API振り返りと2025年 / kintone API look back in 2024
tasshi
0
220
Featured
See All Featured
Practical Orchestrator
shlominoach
186
10k
Into the Great Unknown - MozCon
thekraken
35
1.6k
GraphQLとの向き合い方2022年版
quramy
44
13k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
4
410
The Power of CSS Pseudo Elements
geoffreycrofte
75
5.5k
Testing 201, or: Great Expectations
jmmastey
42
7.2k
Side Projects
sachag
452
42k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.7k
Writing Fast Ruby
sferik
628
61k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
27
1.9k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
9
440
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