Skip to content

Instantly share code, notes, and snippets.

@zerowidth
Last active January 4, 2016 10:08
Show Gist options
  • Save zerowidth/8606364 to your computer and use it in GitHub Desktop.
Save zerowidth/8606364 to your computer and use it in GitHub Desktop.
stripe ctf level 3 loves ruby
#!/bin/sh
set -e
# Add or modify any build steps you need here
cd "$(dirname "$0")"
ruby --version
mkdir -p ./gems
gem install bundler --install-dir=./gems
export GEM_HOME=./gems
./gems/bin/bundler install
ruby test.rb
#!/bin/sh
set -eu
set -x
if `which bundle`;
then
ruby app.rb $@
else
GEM_HOME=./gems ruby app.rb $@
fi
require "rubygems"
require "bundler/setup"
require "sinatra/base"
STDERR.puts "ALL GOOD YO"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment