Skip to content

Instantly share code, notes, and snippets.

@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 / 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 [email protected]
default: node-pre-gyp info using [email protected] | 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 / 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 / gclb-memo.md
Last active July 2, 2019 15:39
GCLB仮設定表

GCLB設定表

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

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

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

@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 / 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 / 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 / filter-branch.fish
Created March 17, 2021 05:51
filter-branchするやつ
#!/bin/sh
git filter-branch -f --env-filter "GIT_AUTHOR_NAME='YOUR NAME'; GIT_AUTHOR_EMAIL='[email protected]'; GIT_COMMITTER_NAME='YOUR NAME'; GIT_COMMITTER_EMAIL='[email protected]';" HEAD
@mimikun
mimikun / html_practice.html
Last active June 12, 2022 08:24 — forked from machida/html_practice.html
HTMLの練習(このレシピにマークアップをしてみましょう)
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<title>カレーのレシピ</title>
</head>
<body>
<article>
<h1>カレーのレシピ</h1>
<p>