アカウントID | インスタンス | アカウント種別 | 備考 |
---|---|---|---|
mitarashi_dango | mastodon.matcha-soft.com | メインアカウント | お一人様インスタンス |
mitarashi_dango | friends.nico | サブアカウント | LTLメイン運用 |
mitarashi_dango | pawoo.net | サブアカウント | |
mitarashi_dango | music.pawoo.net | サブアカウント | |
mitarashi_dango | mstdn.jp | サブアカウント | |
mitarashi_dango | mastodon.cloud | サブアカウント |
I hereby claim:
- I am mitarashidango on github.
- I am mitarashi_dango (https://keybase.io/mitarashi_dango) on keybase.
- I have a public key ASBFdPB7ztJefAiZJ0F4w7qGum3zzvjh4lveG0sg7sFF1go
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time_ago = ENV.fetch('NUM_DAYS') { 7 }.to_i.days.ago | |
MediaAttachment.where.not(remote_url: '').where.not(file_file_name: nil).where('created_at < ?', time_ago).find_each do |media| | |
if Account.where(id: Favourite.select('account_id').where(status_id: media.status_id)).where(domain: nil).count == 0 | |
media.file.destroy | |
media.save | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ELASTICSEARCH_DIR=/usr/share/elasticsearch | |
cd $ELASTICSEARCH_DIR | |
systemctl stop elasticsearch | |
PLUGIN_LIST="$(bin/elasticsearch-plugin list -s)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
psql -t -c "SELECT domain FROM accounts WHERE domain <> '' GROUP BY domain ORDER BY domain ASC" "mastodon" | awk '{ sub(/^[ \t]+/, "") }1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:window.open("https://shikorism.net/checkin?link="+encodeURIComponent(location.href),"_blank","scrollbars=yes,resizable=yes,width=500,height=360"); |