Skip to content

Instantly share code, notes, and snippets.

Avatar

Naoki Kosaka yukimochi

View GitHub Profile
@yukimochi
yukimochi / Caddyfile.caddy1
Last active Aug 27, 2021
For Mastodon Caddy Setting file. (Based on official Nginx configuration example) [Last Update: Mar 07, 2021]
View Caddyfile.caddy1
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"
}
@yukimochi
yukimochi / main.go
Last active Jul 21, 2020
Check All subscriber in Activity-Relay
View main.go
package main
import (
"encoding/json"
"fmt"
"os"
"strings"
"time"
"github.com/go-redis/redis"
@yukimochi
yukimochi / .gitignore
Last active Jul 24, 2019
Automated Patreon patrons listing tool.
View .gitignore
# 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 / readme.md
Last active Jun 20, 2019
YouTube Live -> VRChat-OSC-Bridge SuperChat Notifier.
View readme.md

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 に送信されます。

メッセージ内容

View keybase.md

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 / migrate.go
Created Dec 22, 2018
Sidekiq relay to YUKIMOCHI Relay
View migrate.go
package main
import (
"fmt"
"os"
"strings"
"github.com/go-redis/redis"
)