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
Twitter専用のPCを作る / create a dedicated Twitter PC
Search
Arata
February 07, 2023
0
51
Twitter専用のPCを作る / create a dedicated Twitter PC
Arata
February 07, 2023
Tweet
Share
More Decks by Arata
See All by Arata
コードエディターのシンタックスハイライトの話
arata_nvm
0
130
LLVMのコード自動生成機構におけるコード記述を支援するツールの作成
arata_nvm
0
50
TableGenの言語サーバーをつくる
arata_nvm
0
540
pwn入門 / introduction to pwn
arata_nvm
1
2.2k
TableGenと和解せよ / make peace with TableGen
arata_nvm
0
110
sudo-rsのテストの話 / story of sudo-rs testing
arata_nvm
1
200
ソースコードリーディングはいいぞ / source code reading is good
arata_nvm
0
61
ネットワーク委員会活動報告 / network committee activity report
arata_nvm
0
19
日中の電子決済システムの比較と分析 / comparison and analysis of Japanese and Chinese electronic payment systems
arata_nvm
0
92
Featured
See All Featured
Docker and Python
trallard
44
3.4k
Code Review Best Practice
trishagee
68
18k
The Straight Up "How To Draw Better" Workshop
denniskardys
233
140k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.2k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.2k
Product Roadmaps are Hard
iamctodd
PRO
53
11k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
6
660
Thoughts on Productivity
jonyablonski
69
4.7k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
50k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
Site-Speed That Sticks
csswizardry
7
590
Transcript
Twitter専用のPCを作る @Arata
Q. 新しいPCを買って何をする?
Q. 新しいPCを買って何をする? A. Twitter
Q. 新しいスマホを買って何をする?
Q. 新しいスマホを買って何をする? A. Twitter
Twitterができれば {Windows, macOS} いらなくね?
Twitter専用のPCを作る @Arata 再掲
どうやって作るのか UEFIを使う
どうやって作るのか UEFIを使う
UEFI is 何 PCの電源を入れると、最初に起動するもの https://ja.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface
UEFIの機能 • コンピューターの初期化 ◦ どんなハードウェアが接続されているか • メモリの管理 • ファイルシステム •
ネットワーク
UEFIの機能 • コンピューターの初期化 ◦ どんなハードウェアが接続されているか • メモリの管理 • ファイルシステム •
ネットワーク
OSがなくてもインターネットが使える → Twitterができる
まずはTwitter APIの申請から
まずはTwitter APIの申請から
まずはTwitter APIの申請から
UEFIからTwitter APIを叩く やるだけ
UEFIからTwitter APIを叩く 1. UEFIの仕様書を読む 2. 仕様に従ってコードを書く 3. ビルドする 4. PCで動かす
HTTPでリクエストを飛ばす手順 1. gBS->LocateHandle() でハンドラを取得する 2. gBS->HandleProtocol() でハンドラからプロトコルを取 得する 3. プロトコルのもつインターフェースを呼び出す
HTTPでリクエストを飛ばす手順 1. gBS->LocateHandle() でハンドラを取得する 2. gBS->HandleProtocol() でハンドラからプロトコルを取 得する 3. プロトコルのもつインターフェースを呼び出す
大変なところ • 登場する仕様が多い ◦ UEFI ◦ Twitter API ◦ OAuth
1.0 ◦ JSON • UEFIが標準で日本語に対応していない ◦ 💪力💪でなんとかする
完成したもの
その後 • Twitterで反応をもらえた
その後 • Twitterで反応をもらえた
その後 • Twitterで反応をもらえた
その後 • Twitterで反応をもらえた
その後 • Twitterで反応をもらえた • 海外のニュースサイトに記事ができた
その後 • Twitterで反応をもらえた • 海外のニュースサイトに記事ができた
その後 • Twitterで反応をもらえた • 海外のニュースサイトに記事ができた • GitHubでスターをたくさんもらえた
その後 • Twitterで反応をもらえた • 海外のニュースサイトに記事ができた • GitHubでスターをたくさんもらえた
まとめ • OSが必要ないTwitterクライアントを作った • 世界中のオタクたちに補足された