For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
gem 'mechanize', '>=0.9.0' | |
require 'mechanize' | |
### | |
# Log in to itunes connect, get the list of applications. | |
# | |
# Example: | |
# | |
# ITunesConnect.new do |client| | |
# client.login '[email protected]', 'password' |
ctrl-z | |
bg | |
touch /tmp/stdout | |
touch /tmp/stderr | |
gdb -p $! | |
# In GDB | |
p dup2(open("/tmp/stdout", 1), 1) | |
p dup2(open("/tmp/stderr", 1), 2) |
# I cannot credit the original author | |
class Haversine | |
#EARTH_RADIUS = 3963.19 # miles | |
EARTH_RADIUS = 6371 # kilometers | |
RADIAN_PER_DEGREE = Math::PI / 180.0 | |
def self.distance(lat1, lng1, lat2, lng2) | |
lat1_radians = lat1 * RADIAN_PER_DEGREE | |
lat2_radians = lat2 * RADIAN_PER_DEGREE |
For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt