Skip to content

Instantly share code, notes, and snippets.

View mtheoryx's full-sized avatar
🐳
Making happy little clouds

David Poindexter mtheoryx

🐳
Making happy little clouds
View GitHub Profile
@mtheoryx
mtheoryx / gist:2126575
Created March 19, 2012 20:19
even better! thanks deryl!
rvm all do ruby --version | ruby -e 'puts STDIN.readlines.to_s.split[1]'
@mtheoryx
mtheoryx / gist:2140430
Created March 20, 2012 19:43
used to work?
CSV.open(data_source, 'r', ?, , ?\r) do |row|
@@url_list << row
end
@mtheoryx
mtheoryx / gist:2140439
Created March 20, 2012 19:44
CSV arg error
/Users/davpoind/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/csv.rb:1342:in `initialize': wrong number of arguments (4 for 1..3) (ArgumentError)
@mtheoryx
mtheoryx / gist:2142561
Created March 20, 2012 23:40
bash echo rvm current, reusable
rvm current do ruby --version | cut -d'@' -f1 | cut -d'-' -f2-3
@mtheoryx
mtheoryx / gist:2151530
Created March 21, 2012 19:14
bash alias function for rvm
## Generic template for new gemset and directory with .rvmrc
function rvmnew() {
# Paramter: gemset name to create
mkdir "$1" && cd "$1"
ruby=`rvm current | awk -F '[@-]' '{print $2"-"$3}'`
rvm --create use --rvmrc "${ruby}"@"$1" && rvm reload
}
make[2]: *** [tcltklib.o] Error 1
make[1]: *** [ext/tk/all] Error 2
make: *** [build-ext] Error 2
@mtheoryx
mtheoryx / gist:2973521
Created June 22, 2012 15:35
Maven build error
[INFO] ------------------------------------------------------------------------
[INFO] Building Sakai Kaltura Integration (plugin/tool)
[INFO] task-segment: [clean, install, sakai:deploy]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] [svn-revision-number:revision {execution: default}]
[INFO] inspecting /opt/oncourse-src/kaltura
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
# Tomcat
function tomcat () {
# starting or stopping?
case "$1" in
"start")
#what sakai.properties file for chosen db?
case "$2" in
"local")
cd /opt/props && git checkout 'local'
echo "using MySQL-configured branch"
<title>We're hard at work fixing this issue. Cheers!</title>
###############################################################################
#
# ONC-4717 - Go.IU Integration
#
###############################################################################
# @TODO: put in oncourse.properties
shortenedurl.resources.enabled=true
# @TODO: put in sakai.properties