Skip to content

Instantly share code, notes, and snippets.

@jimytc
jimytc / Dockerfile
Created February 10, 2022 10:21 — forked from tobi/Dockerfile
# 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
@jimytc
jimytc / rbenv_migrate_gems.sh
Created October 24, 2018 14:13 — forked from arashm/rbenv_migrate_gems.sh
migrate GEMs from rbenv cache to the newer version of ruby (without internet) Thanks to Austin Ziegler - http://stackoverflow.com/questions/13649241/copying-gems-from-previous-version-of-ruby-in-rbenv
#!/bin/sh
# if you're using ZSH, change the shebang above to "#!/bin/zsh -i"
if [ ${#} -ne 2 ]; then
echo >&2 Usage: $(basename ${0}) old-version new-version
exit 1
fi
home_path=$(cd ~; pwd -P)
old_version=${1}
@jimytc
jimytc / introrx.md
Created June 1, 2016 15:56 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing