Skip to content

Instantly share code, notes, and snippets.

View tamaina's full-sized avatar
🌀
Need to move out of my storage facility by the end of March.

tamaina tamaina

🌀
Need to move out of my storage facility by the end of March.
View GitHub Profile
@tamaina
tamaina / _redirects
Created December 19, 2023 11:37
joinmisskey redirect
/ https://misskey-hub.net/ 308
/ja-JP/ https://misskey-hub.net/ja/ 308
/en-US/ https://misskey-hub.net/en/ 308
/de-DE/ https://misskey-hub.net/ 308
/ko-KR/ https://misskey-hub.net/ko/ 308
/zh-TW/ https://misskey-hub.net/tw/ 308
/zh-CN/ https://misskey-hub.net/cn/ 308
/ru-RU/ https://misskey-hub.net/ 308
/it-IT/ https://misskey-hub.net/it/ 308
/es-ES/ https://misskey-hub.net/ 308
@tamaina
tamaina / PGroongaパッチについて.md
Last active December 12, 2023 09:34
Misske PGroonga Patch (for a29ff7b1fa45e01bc7c097e8d770a4c4eedf2a8f)

PGroongaパッチについて

導入方法

HiÐΞをご覧ください。(投げ銭もお待ちしております……) https://hide.ac/articles/DjGNSvW4G

説明

ノート全文検索、ユーザー検索をPGroongaでインデックスするようにします。

ILIKEの代わりに&@~を使用するため、AND/OR検索といったクエリー構文を利用できます。

@tamaina
tamaina / zerenshiki.md
Last active March 23, 2022 18:16
zerenshiki

親愛なる日本国民の皆様、ウクライナ大統領として、日本の国会において史上初のオンライン演説をする機会をいただき、大変光栄に思います。ウクライナと東京は8千㌔離れています。飛行機では15時間ほどです。しかし、自由を追求する心、生きたいと願う心、平和を希求する心、そういった私たちの心の距離はどうでしょうか。

2月24日、私には距離がまったくないように思いました。貴方方はすぐ助けに来てくださいました。心より感謝を申し上げます。ロシアが我が国の平和を破壊した時、私たちはすぐ、世界の本当の姿に気づかされました。それは、世界が、本当に戦争に反対し、本当に自由を守り、本当にグローバルな安全保障を支持し、本当に一つ一つの社会の調和に基づく発展を支持していることに気づかされました。そして、日本は、アジアにおいて、こうした価値観を共有する国々のリーダーであると気づきました。日本は、ロシアが始めたこの残虐な戦争を止めるために、ウクライナとヨーロッパの平和のために、すぐ行動を起こしてくださいました。これは、この地球に住む一人一人の人間にとって重要なことです。なぜなら、ウクライナが平和でなければ、誰一人、未来に希望を持つことができないからです。

皆様はチェルノブイリ原子力発電所をご存じでしょう。原発事故の影響で、地球の至るところで放射能の拡散が確認されました。周辺の半径30㌔は未だ立ち入り禁止区域になっています。周辺の森には使用済み核燃料や放射能に汚染された破片や機材が遺されたままになっています。

2月24日、放射能をまき散らしながら、ロシア軍の装甲車はやってきました。ロシア軍は武力によって原発を制圧したのです!想像してください。事故が起きた原発、破壊された原子炉を覆うシェルター、現在も稼働する核廃棄物貯蔵施設……ロシアはこのような場所をも戦場に変えたのです!そしてロシアは、立ち入り禁止区域を、我が国へ更なる攻撃を与えるために利用しています。彼らがどれほど原発を破壊したのか、どれほどの放射能を世界中に拡散したのか、判明するまでには何年もの研究が必要になることでしょう。

皆様、わが国にはまだ稼働している原発が4か所あります。原子炉の数は15基です。それがロシアからの攻撃の脅威に晒されています。既にロシアは、ヨーロッパ最大の原発であるサボロージェ原発を砲撃しました!危険物を取り扱う施設を含め、何百もの工場が破壊されました。ガス・石油パイ

@tamaina
tamaina / rewrite-to-compositon-api.md
Last active March 14, 2022 15:54
Misskey v12 Composition API 書き換え作業

この作業について

Options API(thisやdata()などを用いた記述)で書かれたVueコンポーネントをComposition API(setup()関数を用いた記述)に書き換えます。

簡便のため、<script setup>シュガー(=糖衣構文)を使用します。
詳しく知りたい方は<script setup>についてのvueのドキュメントを確認してください。

トップレベルで定義した変数や関数、importなどは、そのままtemplateタグ内で使用することができます。

ます、scriptタグにsetupを書き足し、もとのdefineComponentsはすべてコメントで囲います。 作業が終了した際は、コメントにした行は消去してください。

@tamaina
tamaina / Misskey Liveのコメント欄をOBSに表示する.md
Last active November 30, 2021 14:25
Misskey Liveのコメント欄をOBSに表示する

image

OBSでブラウザを挿入し、次のように設定します。

フォントはGenEi Univer SansNasuが指定されていますので、お好みで変えてください。

@tamaina
tamaina / mastodon-ip.md
Created August 30, 2021 13:38 — forked from cutiful/mastodon-ip.md
Detecting the real IP of a Cloudflare'd Mastodon instance

Detecting the real IP of a Cloudflare'd Mastodon instance

NB: This will not work for instances that proxy outgoing requests!

Reading the docs

I wanted to find a way to detect the real IP address of a Mastodon/Pleroma/Misskey/etc instance hosted behind Cloudflare. How to do that? Well, it's federated, which means I can probably get it to send a request to a server of mine! And how to do that? I tried reading the ActivityPub spec. The following caught my attention:

Servers should not trust client submitted content, and federated servers also should not trust content received from a server other than the content's origin without some form of verification.

@tamaina
tamaina / misskey.md
Created August 30, 2021 12:39
Docker Imageを使ったmisskeyの起動例

misskey設置例(docker image)

  • misskey の構築例です
  • Docker Hub で公開されているイメージを使用します
  • misskey/releaseTagsで最新のバージョンを確認する
  • 2021年8月 作成

凡例

  • から始まっているものは rootでの操作

@tamaina
tamaina / Univer-Han-Sans.css
Last active August 15, 2021 05:55
joinmisskeyのフォント設定を適用するカスタムCSS
/*!
* "GenEi Unvier Sans"is lisenced under the SIL Open Font License 1.1
* by https://okoneya.jp/font/download.html
*/
@font-face{font-family:GenEiUniverSans-w;font-weight:400;font-display:swap;src:url("https://cdn.jsdelivr.net/gh/tamaina/The-Japanese-Web-Fonts@v7.2.0/dist/GenEiUniverSans/GenEiUniverSans-R.latain.woff2") format("woff2");unicode-range:u+20-7e}
@font-face{font-family:GenEiUniverSans-w;font-weight:400;font-display:swap;src:url("https://cdn.jsdelivr.net/gh/tamaina/The-Japanese-Web-Fonts@v7.2.0/dist/GenEiUniverSans/GenEiUniverSans-R.latainExtended.woff2") format("woff2");unicode-range:u+a1-ac,u+ae-ef,u+f1-ff}
@font-face{font-family:GenEiUniverSans-w;font-weight:700;font-display:swap;src:url("https://cdn.jsdelivr.net/gh/tamaina/The-Japanese-Web-Fonts@v7.2.0/dist/GenEiUniverSans/GenEiUniverSans-B.latain.woff2") format("woff2");unicode-range:u+20-7e}
@font-face{font-family:GenEiUniverSans-w;font-weight:700;font-display:swap;src:url("https://cdn.jsdelivr.net/gh/tamaina/The-Japanese-Web-Fonts@v7.2.
@tamaina
tamaina / misskey dev.md
Last active March 1, 2021 04:21 — forked from syuilo/misskey dev.md
Thoughts on the current state of Misskey development [by syuilo]

Translated by DeepL and aqz/tamaina @aqz@c2.a9z.dev.
Source (Japanese): https://gist.github.com/syuilo/1a8cc608b2ab7451151e409029a943bb


Recently, I've been feeling the limitations of developing Misskey as an individual.
The reason for this is, in a nutshell, that I can no longer take time for development and maintenance due to my job.
The only time I can develop Misskey and its surrounding projects is during my days off, which makes it difficult for me to do the following things, and I feel the limit of my personal development.
If you say it's a matter of motivation, that's all right, but I'm often devastated mental at work, and I can't make as much progress as I'd like.

@tamaina
tamaina / installFFmpegIntoAmazonLinux.sh
Last active December 29, 2019 13:36
installFFmpegIntoAmazonLinux.sh
#!/bin/sh
sudo yum install -y autoconf automake bzip2 bzip2-devel cmake freetype-devel gcc gcc-c++ git libtool make mercurial pkgconfig zlib-devel
mkdir ~/ffmpeg_sources
cd ~/ffmpeg_sources
curl -O -L https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/nasm-2.14.02.tar.bz2
tar xjvf nasm-2.14.02.tar.bz2
cd nasm-2.14.02
./autogen.sh