Skip to content

Instantly share code, notes, and snippets.

View koehler8's full-sized avatar

Chris Koehler koehler8

  • Los Angeles, CA
View GitHub Profile
@koehler8
koehler8 / OpenSSL.java
Created December 1, 2011 19:16
OpenSSL Encryption
/*
* $HeadURL: http://juliusdavies.ca/svn/not-yet-commons-ssl/tags/commons-ssl-0.3.11/src/java/org/apache/commons/ssl/OpenSSL.java $
* $Revision: 144 $
* $Date: 2009-05-25 11:14:29 -0700 (Mon, 25 May 2009) $
*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
while true
sleep(10)
response = RestClient.get('https://play.google.com/store/devices/details/Nexus_6_64GB_Midnight_Blue?id=nexus_6_blue_64gb')
alert = "#{Time.now()} BLUE 64"
if response.include? 'We are out of inventory. Please check back soon.'
alert += ' STILL OUT...'
else
alert += '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! AVAILABLE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
end
puts alert