Skip to content

Instantly share code, notes, and snippets.

@uberbrady
Created October 23, 2017 21:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uberbrady/9837bad518a20d53beb2400b7d3b9c28 to your computer and use it in GitHub Desktop.
Save uberbrady/9837bad518a20d53beb2400b7d3b9c28 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
# a=[]
require 'tempfile'
f=Tempfile.open
1_000_000.times do |what|
# a+=["froopty@blorp.norb"]
f.write("froopty@blorp.norb#{what}\n")
p "ten thousand: #{what}" if what % 10_000 == 0
end
p "Done?"
f.close
p f
sleep 60
#p "A length is: #{a.count}"
p a[brady@Bradys-mbp tmp]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment