Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@barttenbrinke
Created April 22, 2014 10:10
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 barttenbrinke/11172938 to your computer and use it in GitHub Desktop.
Save barttenbrinke/11172938 to your computer and use it in GitHub Desktop.
Blendle invite generator
require 'open-uri'
(0..9).to_a.reverse.each do |first|
%w(A B C D E F G H I J K L M N O P Q R S T U V W X Y Z).each do |second|
(0..9).each do |third|
%w(A B C D E F G H I J K L M N O P Q R S T U V W X Y Z).each do |fourth|
puts '.'
(0..99).each do |fifth|
fifth = "0#{fifth}" if fifth < 10
try_code = "#{first}#{second}#{third}#{fourth}#{fifth}" #7T2Z03
response = open("https://ws.blendle.nl/signup_code/#{try_code}").read
puts try_code if response != "{\n \"valid\": false\n}"
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment