This account is not set to public on notestock.
This account is not set to public on notestock.
Rubyの更新してる間にいっぱいマージされてたよ
https://gist.github.com/zunda/8534b47a194fef1b235b2d5f3d20279f
$ git merge --no-edit master
Auto-merging streaming/index.js
CONFLICT (content): Merge conflict in streaming/index.js
Auto-merging README.md
Auto-merging Gemfile.lock
CONFLICT (content): Merge conflict in Gemfile.lock
Auto-merging Gemfile
Automatic merge failed; fix conflicts and then commit the result.
ですよねー
4d1eaf3e6eでstreaming/index.jsにどっちゃり変更が入ってる。機能の変更とフォーマットの変更と分けられてるとうれしいのかもね。
\Master?/ \ますたー/
Merged mastodon/mastodon at fe71548844715d796b9a6d2dd5234f70cf080f13.
このスクリプト最後に/api/v1/instanceからコードのハッシュの確認をするんだけどdynoを再起動しただけじゃハッシュが更新されないことがあるのはきっとRailsがキャッシュしてくれてるのわね。そのうちなんとかしよう (どうやって)
シェルスクリプトは実行されながら読み込まれることを知ったので自己書き換え無限ループ?スクリプトができちゃった
https://twitter.com/zundan/status/1475884810946056193
#!/bin/sh
sleep 1; printf 'BABEL '; tail -1 $0 >> $0
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.
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.
ループなしで級数を求めるスクリプトもできた (止まらない)
#!/bin/sh
s=0
i=1
echo $s; s=$((s+i)); i=$((i+1)); sleep 1; tail -1 $0 >> $0
メモリぎゅうぎゅうでは発動できないワザだったw
2021-12-29T00:06:00.939281+00:00 heroku[web.1]: Process running mem=1219M(238.3%)
2021-12-29T00:06:00.940863+00:00 heroku[web.1]: Error R15 (Memory quota vastly exceeded)
2021-12-29T00:06:00.942467+00:00 heroku[web.1]: Stopping process with SIGKILL
2021-12-29T00:06:01.138862+00:00 heroku[web.1]: Process exited with status 137
2021-12-29T00:06:01.208527+00:00 heroku[web.1]: State changed from up to crashed
ほえ
2021-12-29T00:23:06.024577+00:00 app[web.1]: ERR! Redis Client Error! Error: Socket closed unexpectedly
2021-12-29T00:23:06.024605+00:00 app[web.1]: ERR! Redis Client Error! at Socket.<anonymous> (/app/node_modules/@node-redis/client/dist/lib/client/socket.js:176:118)
2021-12-29T00:23:06.024653+00:00 app[web.1]: ERR! Redis Client Error! at Object.onceWrapper (node:events:510:26)
2021-12-29T00:23:06.024687+00:00 app[web.1]: ERR! Redis Client Error! at Socket.emit (node:events:390:28)
2021-12-29T00:23:06.024724+00:00 app[web.1]: ERR! Redis Client Error! at TCP.<anonymous> (node:net:687:12)
This account is not set to public on notestock.
@mayaeh 弊ぼっちでは https://gist.github.com/zunda/8534b47a194fef1b235b2d5f3d20279f にあるコミットをマージしてからストリーミングのnodeブロセスが下記のようなエラーを記録するようになりましたが、今のところノーティフィケーションの機能自体はこれまで通り動いてるように見えます。謎だ。
ERR! Redis Client Error! Error: Socket closed unexpectedly
at Socket.<anonymous> (/app/node_modules/@node-redis/client/dist/lib/client/socket.js:176:118)
at Object.onceWrapper (node:events:510:26)
at Socket.emit (node:events:390:28)
at TCP.<anonymous> (node:net:687:12)
This account is not set to public on notestock.