Skip to content

Instantly share code, notes, and snippets.

# Rails production setup via SQLite3 made durable by https://litestream.io/
# Copy this to Dockerfile on a fresh rails app. Deploy to fly.io or any other container engine.
#
# try locally: docker build . -t rails && docker run -p3000:3000 -it rails
#
# in production you might want to map /data to somewhere on the host,
# but you don't have to!
#
FROM ruby:3.0.2
@diachedelic
diachedelic / deep-link-from-browser.js
Last active April 28, 2024 12:51
Deep link to a native app from a browser, with a fallback
@mpppk
mpppk / clean_architecture.md
Last active April 30, 2024 14:19
クリーンアーキテクチャ完全に理解した

2020/5/31追記: 自分用のメモに書いていたつもりだったのですが、たくさんのスターを頂けてとても嬉しいです。
と同時に、書きかけで中途半端な状態のドキュメントをご覧いただくことになっており、大変心苦しく思っています。

このドキュメントを完成させるために、今後以下のような更新を予定しています。

  • TODO部分を埋める
  • 書籍を基にした理論・原則パートと、実装例パートを分割
    • 現在は4層のレイヤそれぞれごとに原則の確認→実装時の課題リスト→実装例という構成ですが、同じリポジトリへの言及箇所がバラバラになってしまう問題がありました。更新後は、実装時の課題リストを全て洗い出した後にまとめて実装を確認する構成とする予定です。

2021/1/22追記:

非破壊 TypeSctript

mizchi / TypeScript Meetup 2


About

  • mizchi / 竹馬光太郎
  • フロントエンドと Node.js
@oieioi
oieioi / Dockerfile
Last active April 18, 2019 05:06
CircleCI の ruby:2.5.3-node-browser で日本語表示できるようにするやつ
FROM circleci/ruby:2.5.3-node-browsers
RUN sudo apt-get update && sudo apt-get install -y locales locales-all
RUN sudo update-locale LANG=ja_JP.UTF-8 LANGUAGE="ja_JP:ja"
RUN . /etc/default/locale
RUN sudo apt-get install fonts-ipafont-gothic fonts-ipafont-mincho
RUN sudo fc-cache -fv;
@giannisp
giannisp / gist:ebaca117ac9e44231421f04e7796d5ca
Last active March 1, 2024 14:39
Upgrade PostgreSQL 9.6.5 to 10.0 using Homebrew (macOS)
After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work.
The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0."
Database files have to be updated before starting the server, here are the steps that had to be followed:
# need to have both 9.6.x and latest 10.0 installed, and keep 10.0 as default
brew unlink postgresql
brew install postgresql@9.6
brew unlink postgresql@9.6
brew link postgresql
@doitian
doitian / rails-cookie-decrypt.go
Created September 23, 2017 07:30
rails session encrypt
@masfj
masfj / spotlight-reload.org
Created August 21, 2017 06:37
Spotlightが/Applications内の.appを正しく表示しなくなった時の対応

ターミナル上で以下のコマンドを叩く

sudo mdutil -a -i off
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist 
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist 
sudo mdutil -a -i on
function ghq-fzf() {
local selected_dir=$(ghq list | fzf --query="$LBUFFER")
if [ -n "$selected_dir" ]; then
BUFFER="cd $(ghq root)/${selected_dir}"
zle accept-line
fi
zle reset-prompt
}
@tamamushi
tamamushi / docker-compose_setup4centos67.md
Last active March 3, 2019 15:16
CentOS6.7にdocker-composeをインストール

CentOS 6.7へのdocker-composeインストールメモ

docker-composeとdocker-engineとCentOSのバージョン関係

docker-compose docker-engine CentOS
1.7.0 1.9.1- 7.0
1.6.2 1.9.1- 7.0
1.5.2 1.7.1- 6.7