Skip to content

Instantly share code, notes, and snippets.

@GolgothaX
GolgothaX / gist:4550040
Created January 16, 2013 19:29
/usr/sbin/envarrs
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@GolgothaX
GolgothaX / gist:4550037
Created January 16, 2013 19:29
/Users/admin/.rvm/environments/ruby-1.8.7-p357@global
export PATH ; PATH="/Users/admin/.rvm/gems/ruby-1.8.7-p357@global/bin:/Users/admin/.rvm/gems/ruby-1.8.7-p357@global/bin:/Users/admin/.rvm/rubies/ruby-1.8.7-p357/bin:/Users/admin/.rvm/bin:$PATH"
export rvm_env_string ; rvm_env_string='ruby-1.8.7-p357@global'
export rvm_path ; rvm_path='/Users/admin/.rvm'
export rvm_ruby_string ; rvm_ruby_string='ruby-1.8.7-p357'
export rvm_gemset_name ; rvm_gemset_name='global'
export RUBY_VERSION ; RUBY_VERSION='ruby-1.8.7-p357'
export GEM_HOME ; GEM_HOME='/Users/admin/.rvm/gems/ruby-1.8.7-p357@global'
export GEM_PATH ; GEM_PATH='/Users/admin/.rvm/gems/ruby-1.8.7-p357@global'
export MY_RUBY_HOME ; MY_RUBY_HOME='/Users/admin/.rvm/rubies/ruby-1.8.7-p357'
export IRBRC ; IRBRC='/Users/admin/.rvm/rubies/ruby-1.8.7-p357/.irbrc'
@GolgothaX
GolgothaX / gist:4550031
Created January 16, 2013 19:28
/Users/admin/.rvm/wrappers/ruby-1.8.7-p357@global/ruby
#!/usr/bin/env bash
if [[ -s "/Users/admin/.rvm/environments/ruby-1.8.7-p357@global" ]]
then
source "/Users/admin/.rvm/environments/ruby-1.8.7-p357@global"
exec ruby "$@"
else
echo "ERROR: Missing RVM environment file: '/Users/admin/.rvm/environments/ruby-1.8.7-p357@global'" >&2
exit 1
fi
@GolgothaX
GolgothaX / gist:4540130
Created January 15, 2013 17:02
envvars rbconfig
admins-MacBook-Pro-3:~ admin$ . /usr/sbin/envvars
admins-MacBook-Pro-3:~ admin$ which ruby
/Users/admin/.rvm/rubies/ruby-1.8.7-p357/bin/ruby
admins-MacBook-Pro-3:~ admin$ ruby -rrbconfig -e 'puts RbConfig::CONFIG.sort.map{|k,v| "#{k}: #{v}" }'
ALLOCA:
AR: ar
ARCHFILE:
ARCH_FLAG:
AS: as
ASFLAGS:
@GolgothaX
GolgothaX / gist:4540102
Created January 15, 2013 16:57
system rbconfig
admins-MacBook-Pro-3:~ admin$ rvm system do ruby -rrbconfig -e 'puts RbConfig::CONFIG.sort.map{|k,v| "#{k}: #{v}" }'
ALLOCA:
AR: ar
ARCHFILE:
ARCH_FLAG:
AS: as
ASFLAGS:
CC: xcrun cc
CCDLFLAGS: -fno-common
CFLAGS: -arch i386 -arch x86_64 -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common
@GolgothaX
GolgothaX / gist:4539654
Created January 15, 2013 15:56
rbconfig
admins-MacBook-Pro-3:~ admin$ /Users/admin/.rvm/wrappers/ruby-1.8.7-p357@global/ruby -e 'require "rbconfig"; puts RbConfig::CONFIG.sort.map{|k,v| "#{k}: #{v}" }'
ALLOCA:
AR: ar
ARCHFILE:
ARCH_FLAG:
AS: as
ASFLAGS:
CC: /usr/local/bin/gcc-4.2
CCDLFLAGS: -fno-common
CFLAGS: -g -O2 -fno-common -pipe -fno-common
@GolgothaX
GolgothaX / rvm info
Created January 11, 2013 22:30
ruby 1.8.7-p357 rvm info
admins-MacBook-Pro-3:~ admin$ rvm info
ruby-1.8.7-p357@global:
system:
uname: "Darwin admins-MacBook-Pro-3.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64"
system: "osx/10.7/x86_64"
bash: "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin11)"
zsh: "/bin/zsh => zsh 4.3.11 (i386-apple-darwin11.0)"