Skip to content

Instantly share code, notes, and snippets.

@ivanxuu
ivanxuu / puma.sh
Last active December 19, 2015 09:08 — forked from runlevel5/puma.sh
#! /bin/sh
### BEGIN INIT INFO
# Provides: pumacontrol
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Puma web server
@ivanxuu
ivanxuu / jruby_opts
Last active August 29, 2015 14:19
jruby options for faster startup time
vim ~/.rvm/hooks/after_use_jruby_custom
#!/usr/bin/env bash
\. "${rvm_path}/scripts/functions/hooks/jruby"
if [[ "${rvm_ruby_string}" =~ "jruby" ]]
then
jruby_options_append "-Xcompile.invokedynamic=false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -Xcompile.mode=OFF"
else
@ivanxuu
ivanxuu / chuleta.torquebox.md
Last active August 29, 2015 14:15
Torquebox

Cambia a jruby

$ rvm use jruby-9.0.0.0.pre1

Crea una nueva app

$ rails _4.1.9_ new <yourapp>

Use if you dont want minitest