Skip to content

Instantly share code, notes, and snippets.

View unarist's full-sized avatar

unarist unarist

View GitHub Profile
@unarist
unarist / mastodon-add-abbr.user.js
Last active September 6, 2018 04:53
:don: - スラングにabbrつけるやつ
// ==UserScript==
// @name :don: - スラングにabbrつけるやつ
// @namespace https://github.com/unarist/
// @version 0.21.1
// @author unarist
// @match https://mstdn.maud.io/*
// @grant none
// @downloadURL https://gist.github.com/unarist/ce93c77eee6ff9bf51491ff06a3109d3/raw/mastodon-add-abbr.user.js
// @noframes
// ==/UserScript==
@unarist
unarist / mastodon-default-toot.user.js
Last active April 28, 2017 11:27
七森中☆Mastodon部 - うにーボタン
// ==UserScript==
// @name 七森中☆Mastodon部 - うにーボタン
// @namespace https://github.com/unarist/
// @version 0.1
// @description 何も入力せずにうにー!を押すとうにー!ってうにー!します。
// @author unarist
// @match https://yuruyuri.family/
// @match https://yuruyuri.family/web/*
// @downloadURL https://gist.github.com/unarist/bf89a5f054fb1d58a39067f61626b9c2/raw/mastodon-default-toot.user.js
// @grant none
@unarist
unarist / mastodon-emoji-guide.user.js
Last active May 23, 2017 12:56
Mastodon - Emoji Guide
// ==UserScript==
// @name Mastodon - Emoji Guide
// @namespace https://github.com/unarist/
// @version 0.3
// @description Add :shortname: as title attribute to emoji
// @author unarist
// @match https://*/web/*
// @require https://cdnjs.cloudflare.com/ajax/libs/emojione/2.2.7/lib/js/emojione.min.js
// @downloadURL https://gist.github.com/unarist/113400ddf6e8a16b907531e727bc0681/raw/mastodon-emoji-guide.user.js
// @grant none
@unarist
unarist / README.md
Last active May 8, 2017 13:41
mastodon - dockerで開発するあれ + patch
  • 依存関係いじらない限りはyarn/bundleもbuildに含めちゃえば楽なのではとか思ったけど、依存関係いじるのが面倒くさそうなのでやめた
  • volumes
    • gems,node_modules: nokogiriとか再ビルドするの時間かかるので、ぼちぼち使いまわしたい
    • assets,packs: フロント回りのキャッシュ。volumeで残す必要すらない気もするが、まあ。
    • system: db:resetと一緒に飛ばす想定
    • ↑この辺のコマンドをどこかに置いておきたくてとりあえずpackage.jsonに置いた
    • コード類はホストと同期したいのでbind
  • tmpfs
    • tmp: なかったかもしれない(ぉ
  • sleeping-beauty

Keybase proof

I hereby claim:

  • I am unarist on github.
  • I am unarist (https://keybase.io/unarist) on keybase.
  • I have a public key ASB9O3nHmnpmdwLlhiWhNQEuI5KYGMxOQUFVLHE0hwgsxQo

To claim this, I am signing this object:

@unarist
unarist / mastodon-timed-mute.user.js
Last active November 1, 2018 13:50
Mastodon - 期限付きミュート
// ==UserScript==
// @name Mastodon - 期限付きミュート
// @namespace https://github.com/unarist/
// @version 0.11
// @author unarist
// @match https://*/web/*
// @grant none
// @downloadURL https://gist.github.com/unarist/91da256246fb438811f2e1a05785abad/raw/mastodon-timed-mute.user.js
// ==/UserScript==
@unarist
unarist / mastodon-custom.css
Last active February 25, 2020 09:58
Mastodonの個人的なカスタマイズCSS集
/* CUSTOMS */
/* account media gallery */
.account-gallery__item {
width: 25%;
min-width: 120px;
}
/* enlarge custom emoji */
/* note: :only-child won't count text nodes */
@unarist
unarist / mastodon-autofocus.user.js
Last active May 23, 2017 12:54
Mastodon - 確認ダイアログのボタンに自動でフォーカス移動する
// ==UserScript==
// @name Mastodon - 確認ダイアログのボタンに自動でフォーカス移動する
// @namespace https://github.com/unarist/
// @version 0.3
// @author unarist
// @match https://*/web/*
// @grant none
// @downloadURL https://gist.github.com/unarist/89a640badf8b340db29c5f72fcaceb54/raw/mastodon-autofocus.user.js
// ==/UserScript==
// ==UserScript==
// @name :don: - n7m
// @namespace https://github.com/unarist/
// @version 0.1
// @author unarist
// @match https://mstdn.maud.io/web/*
// @grant none
// ==/UserScript==
// https://github.com/timrwood/n7m
diff --git a/config/initializers/ostatus.rb b/config/initializers/ostatus.rb
index 342996d..6f29ea3 100644
--- a/config/initializers/ostatus.rb
+++ b/config/initializers/ostatus.rb
@@ -16,7 +16,7 @@ Rails.application.configure do
config.x.alternate_domains = alternate_domains.split(/\s*,\s*/)
config.action_mailer.default_url_options = { host: web_host, protocol: https ? 'https://' : 'http://', trailing_slash: false }
- config.x.streaming_api_base_url = 'ws://localhost:4000'
+ config.x.streaming_api_base_url = ENV.fetch('STREAMING_API_BASE_URL') { "ws://localhost:4000" }