Mastodon の API を叩くには以下の手順を踏む必要がある:
- OAuth2 クライアントを登録する
- アクセストークンを取得する
- アクセストークンを
Authorization
ヘッダに指定して API にアクセスする
Mastodon の Apps API に登録情報を送ってクライアントを払い出してもらう(一度だけやれば OK).
echo 192.168.3.{1..254} | xargs -P256 -n1 ping -s1 -c1 -W1 | grep ttl |
help | |
prefix+? | |
起動 | |
% tmux | |
or | |
% tmux new-session | |
セッションの確認 | |
% tmux ls |
{ | |
"editor.fontFamily": "'CamingoCode', 'Ricty Diminished'", | |
"editor.fontSize": 14, | |
"editor.tabSize": 2, | |
"editor.formatOnType": true, | |
"editor.cursorBlinking": "smooth", | |
"editor.renderWhitespace": "boundary", | |
"editor.renderControlCharacters": true, | |
"editor.renderIndentGuides": true, | |
"editor.renderLineHighlight": "all", |
javascript:$("img.avatar").attr("src", "https://pbs.twimg.com/profile_images/903950953459490816/1_wK5kUp_400x400.jpg") |
$ ps auxf |
ruby -run -e httpd . -p 8000 |
curl wttr.in/kawagoe |
((abs .) . (+)) (-3) 2 |
// bool*2-1 | |
let ary = [1,2,3]; | |
ary.sort((a, b) => (a>b)*2-1); // 小さい順 | |
console.log(ary); | |
ary.sort((a, b) => a-b); // 小さい順 | |
console.log(ary); |