Skip to content

Instantly share code, notes, and snippets.

View mimikun's full-sized avatar
😷
Remember COVID-19

mimikun

😷
Remember COVID-19
View GitHub Profile
@mimikun
mimikun / enable-mastodon-stamps.user.css
Last active March 15, 2021 12:53
"stamp_"のプレフィックス付き絵文字をでかくするやつ
/* ==UserStyle==
@name enable-mastodon-tl-stamps
@namespace https://gist.github.com/mimikun/344f653e8a53f2a30a1ac38ffbc533c4
@version 1.1.0
@description stamp_のプレフィックス付き絵文字をでかくするやつ
@author mimikun
==/UserStyle== */
@-moz-document url-prefix("https://mstdn.mimikun.jp/web/") {
/*絵文字マージンゼロ*/
@mimikun
mimikun / matome-hide-comments.user.css
Last active March 9, 2021 05:38
まとめサイトのコメント非表示にするUserCSS
/* ==UserStyle==
@name matome-hide-comments
@namespace https://gist.github.com/mimikun/54094ec6aea43135c4b042f4813d678e
@version 1.0.0
@description まとめサイトのコメントを非表示にするやつ
@author mimikun
==/UserStyle== */
@-moz-document url-prefix("https://genshinnews.apexlegends-leaksnews.com/"),
url-prefix("https://apexlegends-leaksnews.com/"),
url-prefix("https://genshinnews.jp/"),
@mimikun
mimikun / Makefile
Created December 18, 2020 17:11
make cleanでMakefile以外を消すやつ
.PHONY: clean
clean:
@ls | grep -v -E "^Makefile" | xargs rm -rf
@mimikun
mimikun / gclb-memo.md
Last active July 2, 2019 15:39
GCLB仮設定表

GCLB設定表

ロードバランサ作る前にインスタンスグループを作る

動かすソフトウェアはwritefreely, Go言語製, デフォルトではlocalhost:8080で起動する
nginxをインストールしているが、この投稿に基づき、もしかしたら不要なのではないか?という考えが発生。
従って、nginxを一旦停止して検証を行っている。

インスタンスグループ作成

@mimikun
mimikun / count_up.sh
Last active March 7, 2019 13:02
カウントアップ
c=0; while true; do c=$(expr $c + 1); echo $c; sleep 1; done
@mimikun
mimikun / memo.txt
Created July 31, 2018 11:41
vagrant up メモ
default: warning Error running install script for optional dependency: "/vagrant/node_modules/node-zopfli: Command failed.
default: Exit code: 1
default: Command: node-pre-gyp install --fallback-to-build
default: Arguments:
default: Directory: /vagrant/node_modules/node-zopfli
default: Output:
default: node-pre-gyp info it worked if it ends with ok
default: node-pre-gyp info using node-pre-gyp@0.6.39
default: node-pre-gyp info using node@8.11.3 | linux | x64
default: node-pre-gyp info check checked for \"/vagrant/node_modules/node-zopfli/lib/binding/node-v57-linux-x64/zopfli.node\" (not found)
@mimikun
mimikun / error.txt
Created June 19, 2018 10:36
なんかエラーでた
sudo docker-compose run --rm web rails db:migrate
/usr/local/lib/ruby/2.4.0/fileutils.rb:230:in `mkdir': No space left on device @ dir_s_mkdir - tmp (Errno::ENOSPC)
from /usr/local/lib/ruby/2.4.0/fileutils.rb:230:in `fu_mkdir'
from /usr/local/lib/ruby/2.4.0/fileutils.rb:208:in `block (2 levels) in mkdir_p'
from /usr/local/lib/ruby/2.4.0/fileutils.rb:206:in `reverse_each'
from /usr/local/lib/ruby/2.4.0/fileutils.rb:206:in `block in mkdir_p'
from /usr/local/lib/ruby/2.4.0/fileutils.rb:191:in `each'
from /usr/local/lib/ruby/2.4.0/fileutils.rb:191:in `mkdir_p'
from /mastodon/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/store.rb:73:in `dump_data'
@mimikun
mimikun / README.md
Last active May 9, 2018 14:23
MastodonでcURL使ってaccess tokenを貰う方法

MastodonでcURL使ってaccess tokenを貰う方法

条件とか

  • 2FAを設定したアカウント
  • Mastodon v2.4.0 rc-1
  • macOS 10.13
  • zsh

いろいろ

Authorization Codeの期限、デフォでは10分なので早く作業する必要がある

@mimikun
mimikun / FetchLinkCardService_result.txt
Last active March 12, 2018 07:50
FetchLinkCardService.new.call(Status.find(99669788764590947))の実行結果
# はじめに
- VPSに入っている自分のインスタンスで動いているコードは、mimikun/masterブランチにあります。
- ローカルにあるmastodon git リポジトリ の git remote -vはこのようになっています。
```
origin git@github.com:mimikun/mastodon.git (fetch)
origin git@github.com:mimikun/mastodon.git (push)
unarist git@github.com:unarist/mastodon.git (fetch)
unarist git@github.com:unarist/mastodon.git (push)
upstream git@github.com:tootsuite/mastodon.git (fetch)
upstream git@github.com:tootsuite/mastodon.git (push)