Skip to content

Instantly share code, notes, and snippets.

@zph
Created July 23, 2014 21:00
Show Gist options
  • Select an option

  • Save zph/840ba82fb96dca63cca5 to your computer and use it in GitHub Desktop.

Select an option

Save zph/840ba82fb96dca63cca5 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# vim: set ft=ruby:
# This file executes as a bash script, which turns around and executes Ruby via
# the line below. The -x argument to Ruby makes it discard everything before
# the second "!ruby" shebang. This allows us to work on Linux, where the
# shebang can only have one argument so we can't directly say
# "#!/usr/bin/env ruby --disable-gems". Thanks for that, Linux.
#
# If this seems confusing, don't worry. You can treat it as a normal Ruby file
#!/usr/bin/env ruby --disable-gems
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment