Skip to content

Instantly share code, notes, and snippets.

@Hunter-Dolan
Created February 20, 2012 21:56
Show Gist options
  • Save Hunter-Dolan/1871752 to your computer and use it in GitHub Desktop.
Save Hunter-Dolan/1871752 to your computer and use it in GitHub Desktop.
Rev it!
# The lower this number the more heat your cpu will generate
count_to = 1
i = 1
count = 0
while i do
i = (i * (34634523 * 23) / 235 * 12359829835) ^ 8799889
puts i
if(count == count_to)
count = 0
puts i
else
count += 1
end
end
def crash_it
puts "thread_started"
# The lower this number the more heat your cpu will generate
count_to = 1
i = 1
count = 0
while i do
i = (i * (34634523 * 23) / 235 * 12359829835) ^ 8799889
if(count == count_to)
count = 0
#puts i
else
count += 1
end
end
end
while true do
puts "The Game:"
Thread.new{crash_it()}
puts " You Loose"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment