Skip to content

Instantly share code, notes, and snippets.

@ylansegal
ylansegal / update-rbenv-rubygems.sh
Created Aug 30, 2017 — forked from gshutler/update-rbenv-rubygems.sh
Update Rubygems for all rbenv rubies
View update-rbenv-rubygems.sh
#! /usr/bin/env bash
set -e
eval "$(rbenv init -)"
for version in `rbenv whence gem`; do
rbenv shell "$version"
echo "Updating rubygems for $version"
gem update --system --no-document --quiet
@ylansegal
ylansegal / 0_reuse_code.js
Created May 16, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ylansegal
ylansegal / README.md
Created Jun 11, 2013 — forked from Dehalion/README.md
BTSync Setup
View README.md

####Go to temp dir $ cd /tmp ####Download your version of btsync i386 or x64 $ curl http://btsync.s3-website-us-east-1.amazonaws.com/btsync_i386.tar.gz -o btsync.tar.gz # i386 $ curl http://btsync.s3-website-us-east-1.amazonaws.com/btsync_x64.tar.gz -o btsync.tar.gz # x64 ####Then unpack this shit $ tar -xf btsync.tar.gz ####And move to your local bin $ sudo mv btsync /usr/local/bin/ ####Create a user and a group named btsync and give it a home folder

@ylansegal
ylansegal / gist:4272448
Created Dec 12, 2012 — forked from fantactuka/gist:1887133
Sass compilation -> Programatically
View gist:4272448
require "sass"
require "compass"
def compile_sass(sass_file)
sass_dir = File.dirname(sass_file)
compass_dir = File.join(Compass.base_directory, "frameworks/compass/stylesheets")
css_dir = File.join(File.dirname(__FILE__), 'css')
Sass.compile(File.read(sass_file), :syntax => :scss, :load_paths => [sass_dir, compass_dir, css_dir])
end