Mastodonで健康維持に四苦八苦
おしごとしようね
6ca0de949 (upstream/main) Fix nil error when rendering featured hashtags on profile (#18808)
\Master?/ \ますたー/
Merged mastodon/mastodon at 6ca0de9494fe47d2c322335c3a257896140a22fb.
This account is not set to public on notestock.
This account is not set to public on notestock.
Pixel 4aちゃんが節電モードでもGoogleアシスタント起動することに気づいて便利なんだけどその分電池のもちが悪くなってないかい?
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
$ ed hello.txt
hello.txt: No such file or directory
i
Hello, World!
.
w
14
q
$ cat hello.txt
Hello, World!
ほいほい
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
おっ
$ heroku run tootctl media usage
Attachments: 4.06 GB (1020 MB local)
Custom emoji: 570 MB (156 KB local)
Preview cards: 14.1 GB
Avatars: 4.14 GB (7.05 KB local)
Headers: 8.82 GB (53.9 KB local)
Backups: 0 Bytes
Imports: 0 Bytes
Settings: 232 KB
This account is not set to public on notestock.
週1回media removeはしてると思うんだけどプレビューカードは消えないんだねえ (S3代が充分安くなったのであんまし緊急性を感じられていない←
This account is not set to public on notestock.
This account is not set to public on notestock.
USB-Aポートに潜るYubiKey Nanoはうまくすると爪の先でひっぱり出せるしうまくいかない時はラジオペンチでひっぱり出すよ
雨また来るっぽいのでプレビューカードの整理してみるね
$ heroku run:detached tootctl preview_cards remove
とりあえず週1回のコマンドを
tootctl media remove; tootctl preview_card s remove
にしておいた。さっきのやつは21分間走りつづけてるw
This account is not set to public on notestock.
@fujii_yuji 技術オタクなので未来ある技術を濫用して潰す人に未来はあって欲しくないなと思うのです。個人的に。
はいはーい、ちゅーもーく!! tootctlちゃんがpreview_cards removeを始めてから1時間が経っちゃいましたよ? #がんばえ
監視ちゅうてもdynoはひたすらS3にDELETEリクエストを送ってるだけなんだろうな
$ heroku pg:ps
pid | state | source | username | running_for | transaction_start | waiting | query
--------+---------------------+------------------+----------------+-----------------+-------------------------------+---------+---------------------------------------------------------------------------------------------------------------
443271 | idle in transaction | /app/bin/tootctl | ueitr171eckvel | 00:00:00.008159 | 2022-07-15 05:02:59.422846+00 | t | SELECT 1 AS one FROM "preview_cards" WHERE "preview_cards"."url" = $1 AND "preview_cards"."id" != $2 LIMIT $3
(1 row)
それぞれ消す間だけトランザクションを握ってる感じかな
This account is not set to public on notestock.
さて。晩ご飯は終わったけどtootctl preview_cards removeは終わらない。監視を中断してあとでログを確認しよう。run.7434で2022/07/14 17:30:55 -1000から走りはじめたよ。
SunOS 4.1.4についてきた素のviはタイポしてCtrl-\を送っちゃうとSIGQUITで律儀にさくっと終わってくれるたいへん素直な子でした #おっさんのジャンク記憶
2時間45分かけて弊ぼっち初のtootctrl preview_cards removeしました。
Removed 341389 preview cards (approx. 12 GB)
$ heroku run tootctl media usage
Running tootctl media usage on ⬢ zundan-mastodon... up, run.3120 (Hobby)
Attachments: 4.15 GB (1020 MB local)
Custom emoji: 570 MB (156 KB local)
Preview cards: 2.04 GB
Avatars: 4.14 GB (7.05 KB local)
Headers: 8.82 GB (53.9 KB local)
Backups: 0 Bytes
Imports: 0 Bytes
Settings: 232 KB
減ったねえ!!
@mazzo 記事をありがとうございます!! 最後に、
> ドナルド・トランプ前大統領が立ち上げた独自SNS「TRUTH Social」がマストドンのコードを無断利用していたことが問題となったことがあった。トランプ氏はその後、独自SNSを作り直し、現在はiOSアプリを公開している。
とありますが、現在でもバックエンドはMastodon (ハワイ時間の7月13日に確かめた時には3.4.1)を利用しているように見えます。
https://mastodon.zunda.ninja/@zundan/108641627510558982
@mazzo あ、すみません。大事なことを書き忘れてました。Truth Socialは、しばらく前からAGPLに準拠して先のスクリーンショットのようにソースコードを公開しています。
Mastdonの検索機能は自分が見たことのあるポストを思い出すために用意してあるよ(ってオイゲンさんが言ってた気がするよ)