Skip to content

Instantly share code, notes, and snippets.

View yukimochi's full-sized avatar

Naoki Kosaka yukimochi

View GitHub Profile
@yukimochi
yukimochi / Caddyfile.caddy1
Last active August 3, 2023 11:19
For Mastodon Caddy Setting file. (Based on official Nginx configuration example) [Last Update: Mar 07, 2021]
https://yourdomain.example.com/ {
log / /var/log/caddy/mastodon.log "{combined}" {
rotate_age 90
}
root /home/mastodon/live/public
gzip
header / {
Strict-Transport-Security "max-age=31536000"
}

Keybase proof

I hereby claim:

  • I am yukimochi on github.
  • I am yukimochi (https://keybase.io/yukimochi) on keybase.
  • I have a public key ASBbenCKA45qBIfWbHktXag5fJOgQdnuQs4AfVZLIC-NWQo

To claim this, I am signing this object:

@yukimochi
yukimochi / readme.md
Last active November 7, 2021 15:05
YouTube Live -> VRChat-OSC-Bridge SuperChat Notifier.

YouTube Live -> VRChat-OSC-Bridge SuperChat Notifier.

VRChat にスパチャが過去1秒間に発生したかをOSCメッセージで毎秒送信するブックマークレット (VRChat OSC Bridge 専用ツール)

説明

VRChat OSC Bridge が起動している状態で、 YouTube Live のコメント欄をポップアウトし、そのウィンドウに対して spc_to_osc.min.jsjavascript: 以降のコードを入力します。

実行すると、 所定のOSCメッセージが毎秒 /VRC_OSC/SPC に送信されます。

メッセージ内容

@yukimochi
yukimochi / main.go
Last active February 26, 2023 14:28
Check All subscriber in Activity-Relay
package main
import (
"encoding/json"
"fmt"
"os"
"strings"
"time"
"github.com/go-redis/redis"
@yukimochi
yukimochi / migrate.go
Created December 22, 2018 15:11
Sidekiq relay to YUKIMOCHI Relay
package main
import (
"fmt"
"os"
"strings"
"github.com/go-redis/redis"
)
@yukimochi
yukimochi / .gitignore
Last active July 24, 2019 09:00
Automated Patreon patrons listing tool.
# Created by https://www.gitignore.io/api/node,visualstudiocode
# Edit at https://www.gitignore.io/?templates=node,visualstudiocode
### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
@yukimochi
yukimochi / index,js
Last active January 5, 2024 01:45
Misskey.io の自分のフォロイーの投稿を自分の Mastodon サーバーに同期的に挿入するやつ (取扱注意)
const WebSocket = require("ws");
const MISSKEYIO_APIKEY = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
const MASTODON_APIKEY = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
const MASTODON_DOMAIN = "https://mastodon.example.com";
async function push(postUrl) {
const params = {
q: postUrl,
type: "statuses",