Skip to content

Instantly share code, notes, and snippets.

tateisu tateisu

Block or report user

Report or block tateisu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
tateisu / gist:1616e73dec3602e1c673662873713320
Created Sep 19, 2019
View gist:1616e73dec3602e1c673662873713320
* 測定に使うソフト
* 無線LAN環境
NEC Aterm WG2600HP
View gist:cb0c9ee75ab9eae1b7138d8bc6c4a6b6
$ cat
rm $FILE
mknod $FILE p
read -t 3 <>$FILE answer
echo $? $answer
$ cat
View TestAsyncAlertDialog.kt
package jp.radiko.testasyncalertdialog
import android.os.Bundle
import android.widget.Button
import android.widget.Toast
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
tateisu /
Last active Mar 26, 2019
#!/usr/bin/perl --
use strict;
use warnings;
use feature qw(switch say);
use Math::BigFloat;
use Term::ReadLine;
use Getopt::Long;
# usage: ./ -v "9h15m + 10m - 20m * ( 0.5h / 15m ) * 0.5"
tateisu / gist:5d1db89783dd2607a7a7a7d98f25a1c8
Last active Mar 23, 2019
my app can get /users/@me/guilds, but can't get /guilds/{id}/channels . why?
View gist:5d1db89783dd2607a7a7a7d98f25a1c8
my app can get /users/@me/guilds, but can't get /guilds/{id}/channels . why?
$ perl
[{"owner": false, "permissions": 104324161, "icon": "423a112cd4b14ba6105051dcae0b7880", "id": "231908446830723072", "name": ""}, {"owner": false, "permissions": 104324161, "icon": null, "id": "305703658107043850", "name": "mastodon-jp"}, ...]
View gist:b9df6657960ab76666d823923fc87e4b
web_1 | [5db0aa14-ef8d-40e3-b9e9-e91f261cbac3] Rendering stream_entries/show.html.haml within layouts/public
web_1 | [5db0aa14-ef8d-40e3-b9e9-e91f261cbac3] Rendered stream_entries/_og_description.html.haml (3.2ms)
web_1 | [5db0aa14-ef8d-40e3-b9e9-e91f261cbac3] Rendered stream_entries/_og_image.html.haml (1.3ms)
web_1 | [5db0aa14-ef8d-40e3-b9e9-e91f261cbac3] Rendered stream_entries/_poll.html.haml (2.2ms)
web_1 | [5db0aa14-ef8d-40e3-b9e9-e91f261cbac3] Rendered stream_entries/_detailed_status.html.haml (17.5ms)
web_1 | [5db0aa14-ef8d-40e3-b9e9-e91f261cbac3] Rendered stream_entries/_status.html.haml (18.2ms)
web_1 | [5db0aa14-ef8d-40e3-b9e9-e91f261cbac3] Rendered stream_entries/show.html.haml within layouts/public (36.9ms)
web_1 | [5db0aa14-ef8d-40e3-b9e9-e91f261cbac3] method=GET path=/@tateisu/101695324967335706 format=html controller=StatusesController action=show status=500 error='ActionView::Template::Error: undefined method `account' for
tateisu /
Last active Feb 24, 2019
Removing local copies of unreferenced external posts

Removing local copies of unreferenced external posts

日本語 =>


SQL exapmle that deletes local copies of external posts flowing from the FTL or relays and that are not referenced long time by local users.

Note: It is "reduction" of data increase , not "to be able to operate infinitely with a fixed disk capacity".

tateisu / gist:3d98290f2b72d12ba5f1b977a0d5743c
Last active Feb 24, 2019
View gist:3d98290f2b72d12ba5f1b977a0d5743c


English =>


  • マストドンのインスタンスを運営していると、記録データが年々蓄積されていく。
  • 自分のインスタンスならローカルユーザ自身の投稿やローカルユーザが興味をもった外部の投稿を記録し続けないといけないのは理解できる。
  • しかし外部タンスの投稿について「もはやフォローされてない外部ユーザの投稿」「リレーで無条件に流れてくる外部ユーザの投稿」をもずっと記録し続ける理由はない。
  • 古い不要な投稿データを削除することで、記録データの増加を軽減できるのではないだろうか。サーバ維持費の増加を抑えられる。
View gist:d47dd733cba989adc138f1827236f709
> Task :apng:compileKotlin FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':apng:compileKotlin'.
> アクセスが拒否されました。
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
tateisu / gist:026dfb95a029484aed07d149743a6a63
Last active Jan 23, 2019
docker環境でのpostgreSQL 9.6 => 11 へのアップグレード
View gist:026dfb95a029484aed07d149743a6a63
# docker環境でのpostgreSQL 9.6 => 11 へのアップグレード
# を利用する
# リポジトリに (OLD)-to-(NEW) のフォルダがあるか事前に確認しておく
# (今回の場合は 9.6-to-11 )
# 作業フォルダの作成
mkdir postgres-upgrade-2 && cd postgres-upgrade-2
mkdir -p postgresql/9.6/data postgresql/11/data
You can’t perform that action at this time.