Skip to content

Instantly share code, notes, and snippets.

View yuriihabrusiev's full-sized avatar
🎯
Focusing

Yurii Habrusiev yuriihabrusiev

🎯
Focusing
View GitHub Profile
@yuriihabrusiev
yuriihabrusiev / Ruby Run.sublime-build
Created December 23, 2013 15:54
Sublime Text Ruby build system
{
"selector": "source.ruby",
"path": "$HOME/.rbenv/shims:$PATH",
"file_regex": "^(.*):([\\d]+):(.*) (.*)$",
"variants": [
{
"cmd": ["ruby", "-wv", "$file"],
"name": "Run"
},
{
@yuriihabrusiev
yuriihabrusiev / development.sh
Created November 7, 2013 15:12
Installing Ruby with rbenv on development and production boxes
#!/bin/bash
#
# Local Ruby with rbenv and ruby-build
## Update apt
sudo apt-get -y update
## Install git and curl
echo " ### INSTALLING GIT AND CURL ###"
sudo apt-get install -y git curl
@yuriihabrusiev
yuriihabrusiev / Dockerfile
Created April 5, 2024 14:49
Docked Rails
# Docked Rails
# Building:
# docker build -t docked-rails .
# Preparation:
# docker volume create ruby-bundle-cache
# alias docked='docker run --rm -it -v ${PWD}:/rails -u $(id -u):$(id -g) -v ruby-bundle-cache:/bundle -p 3030:3030 docked-rails'
# Usage: