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
入力した CIDR のネットワーク・アドレスを表示する Alfred ワークフローを作った
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
lorentzca
November 12, 2017
Programming
1.5k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
入力した CIDR のネットワーク・アドレスを表示する Alfred ワークフローを作った
FFLT の資料です。
lorentzca
November 12, 2017
Transcript
13 slides
ೖྗͨ͠ 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
More Decks by lorentzca
See All by lorentzca
Continuous Vulnerability scanning on CircleCI
lorentzca
1
3.4k
Other Decks in Programming
See All in Programming
Enforcing Your Architecture with Unit Tests in the AI Era (Swift Connection X)
steliosf
PRO
1
190
ローカルLLMの基本と近況 2611 / Local LLM basics and recent situation 2611
kishida
3
620
LLM 101
dalinaum
0
520
AI時代のIaC入門 〜なぜインフラをコードで管理したいのか?〜 / Introduction to IaC in the AI Era
akihisaikeda
6
1.6k
社内AIエージェント「Askワンバン」における コストチューニングの取り組み
t0yohei
0
170
Kawaiicon: Kubernetes, it's no longer cool, but let's secure it anyway!
barnbarn
0
140
Goコンパイラを作ってGoをもっと理解する / Build a Go compiler to better understand Go
ikura_hamu
0
130
[Kotlin Fest 2026] eBPF Tracing for Kotlin
takehaya
1
390
あなたはMCPの機能を、まだ知らない。
4geru
1
700
[DroidKnights 2026] Workflow AX: From Auto-Documented Policies to E2E Testing
raeminkang
0
600
私なりのハーネスエンジニアリング ~独自の言語処理系の開発を通して~
seosoft
0
230
Secure Your Coding Agent Like It’s Malware (v1.5) 🇬🇧 @Code.talks 2026
richargh
0
190
Featured
See All Featured
Tell your own story through comics
letsgokoyo
1
1.1k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
2
400
Building Better People: How to give real-time feedback that sticks.
wjessup
371
20k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.6k
Mobile First: as difficult as doing things right
swwweet
225
10k
Git: the NoSQL Database
bkeepers
PRO
433
67k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.9k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
360
Building Adaptive Systems
keathley
44
3.3k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k