- Twitter: @mpapis
- Website or Blog: http://niczsoft.com
- Company: ... Open source
- Previous talk: http://www.youtube.com/watch?v=gYNht8H24ZQ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Automatically sets the wrappers for textmate's use | |
# Based on article posted: http://www.christopherirish.com/2010/06/28/how-to-setup-textmate-to-use-rvm/ | |
# Set up the TM_RUBY shell variable as described and remove the Builder as described and restart TextMate | |
# | |
# Make this script executable and you should be good to go! TextMate will stay in sync with rvm, which | |
# generally means the last project folder you switched into from terminal shell. | |
# | |
if [[ $TM_WRAPPING != "1" ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rvm/with" | |
Bundler.with_clean_env do | |
RVM.with "in ." do |r| | |
puts r.execute "bundle install" | |
puts r.execute "rake db:create db:migrate db:setup" | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nick ALL=NOPASSWD:/sbin/start foo,/sbin/stop foo,/sbin restart foo,/sbin/service foo start,/sbin/service foo stop,/sbin/service foo restart,/home/nick/.rvm/wrappers/foo/foreman |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rvm1/capistrano3" | |
after 'deploy:updating', 'deploy:bundle_install' | |
namespace :deploy do | |
task :bundle_install do | |
on roles(:app) do | |
within release_path do | |
execute :bundle, "install --quiet --system --without [:test, :development]" | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2013-10-05 01:53:57] env | |
current path: /Users/headius/.rvm/src/rbx-2.0.0 | |
command(8): env /Users/headius/.rvm/wrappers/ruby-2.0.0-p247@rubinius/ruby ./configure --prefix=/Users/headius/.rvm/rubies/rbx-2.0.0 --with-opt-dir=/usr/local/opt/libyaml --with-opt-dir=/usr/local/opt/readline --with-opt-dir=/usr/local/opt/libksba --with-opt-dir=/usr/local/opt/openssl | |
Checking gcc: found | |
Checking g++: found | |
Checking bison: found | |
Configuring LLVM... | |
Checking for existing LLVM library tree: not found. | |
Checking for 'llvm-config': not found | |
Checking for prebuilt LLVM package... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
OSX_VERS=$(sw_vers -productVersion | awk -F "." '{print $2}') | |
# Get Xcode CLI tools | |
# https://devimages.apple.com.edgekey.net/downloads/xcode/simulators/index-3905972D-B609-49CE-8D06-51ADC78E07BC.dvtdownloadableindex | |
TOOLS=clitools.dmg | |
if [ "$OSX_VERS" -eq 7 ]; then | |
DMGURL=http://devimages.apple.com/downloads/xcode/command_line_tools_for_xcode_os_x_lion_april_2013.dmg | |
elif [ "$OSX_VERS" -eq 8 ]; then | |
DMGURL=http://devimages.apple.com/downloads/xcode/command_line_tools_for_xcode_os_x_mountain_lion_april_2013.dmg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'bundler' | |
require 'bundler-unload' | |
ALL_GEMS = Bundler.rubygems.plain_specs | |
Bundler.require :default | |
require 'sinatra' | |
require 'yaml' | |
require 'multi_json' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RAILS_ROOT=/home/deployer/apps/arcsite/current | |
UNICORN=/home/deployer/.rvm/wrappers/arcsite/unicorn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if | |
__system_and_version_is SunOS 5.10 | |
then | |
if __rvm_which sudo >/dev/null 2>&1 | |
then sudo_path="" | |
else sudo_path=/opt/csw/bin/ | |
fi | |
else | |
sudo_path="" | |
fi |
NewerOlder