improve some snippets
minor improvements on ruby setup