Skip to content

Instantly share code, notes, and snippets.

@loe
Created February 10, 2009 18:10
Show Gist options
  • Save loe/61507 to your computer and use it in GitHub Desktop.
Save loe/61507 to your computer and use it in GitHub Desktop.
tf = Tempfile.new('gateway', '/data/nginx_tmp')
path = tf.path # Gets us a random filename.
tf.close!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment