Skip to content

Instantly share code, notes, and snippets.

View diogomonica's full-sized avatar

Diogo Mónica diogomonica

View GitHub Profile
require 'rubygems'
require 'mechanize'
FIRST_NAME = 'FIRST_NAME'
LAST_NAME = 'LAST_NAME'
PHONE = 'PHONE'
EMAIL = 'EMAIL@provider.com'
PARTY_SIZE = 2
SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' }
{"claims":[{"timestamp":1578964683,"type":"ACCOUNT","address":"0xf5E4574972b165C499debEe15926205398Bc2Cd7"}],"meta":{"address":"0x41bC59382529AA1f128E1b52b7170E284260C47F","signature":"0x54017bd82dc0a9eee8b82472baa3bcfdf38edb309193afed30bfc4c7ac1f04614c2054a6302707d916d331200e3a0b0fe94160c1cca2fdd4e0d0cf306fb1f6421c"}}
{"claims":[{"url":"http://165.227.241.2","timestamp":1578964510,"type":"ATTESTATION_SERVICE_URL"},{"timestamp":1578964518,"type":"ACCOUNT","address":"0x41bC59382529AA1f128E1b52b7170E284260C47F"}],"meta":{"address":"0xf5E4574972b165C499debEe15926205398Bc2Cd7","signature":"0x6ae86b713c67f69cb1c77bffd768c31d4e0015728350e0dc532540c600c42c9d5f6b16bd3f4a9be444ea0cce493323d82c9084502b9e6c64c7adc772526dab421c"}}
{"claims":[{"url":"http://165.227.241.2/","timestamp":1578963716,"type":"ATTESTATION_SERVICE_URL"},{"timestamp":1578963735,"type":"ACCOUNT","address":"0x41bC59382529AA1f128E1b52b7170E284260C47F"}],"meta":{"address":"0xf5E4574972b165C499debEe15926205398Bc2Cd7","signature":"0xdf8a2c0671979119fbc47d5bc6f28b9831ecb916e7d1ed799a3c7154eb79559971579d2e516150ebe77ebd58147ff953062ed524f93f53dedd829809c08cf3aa1b"}}
{"claims":[{"url":"http://138.197.212.86","timestamp":1578956745,"type":"ATTESTATION_SERVICE_URL"},{"timestamp":1578956766,"type":"ACCOUNT","address":"0x41bC59382529AA1f128E1b52b7170E284260C47F"}],"meta":{"address":"0xf5E4574972b165C499debEe15926205398Bc2Cd7","signature":"0x7dd557bddddc3a6fff803fb7f4d0826d87cabcaa401591ad72d2117ec052b2ee570fc5e551add0720bf5bb62966540960e892f61c62d196be499f8c70e67e9d91c"}}

CELO_VALIDATOR_GROUP_ADDRESS=41bc59382529aa1f128e1b52b7170e284260c47f CELO_VALIDATOR_ADDRESS=f5e4574972b165c499debee15926205398bc2cd7

root@vultr:/var/lib/docker/swarm/certificates# openssl x509 -in swarm-node.crt -text
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
10:79:9c:09:dc:d2:c6:f3:c7:b7:40:bc:1e:c5:0c:d1:08:ae:63:90
Signature Algorithm: ecdsa-with-SHA256
Issuer: CN=swarm-ca
Validity
Not Before: Apr 28 15:56:00 2017 GMT
require 'rubygems'
require 'mechanize'
require 'pry'
def start_url()
return "https://booknow.appointment-plus.com/6gj719v2/"
end
url = start_url()
agent = Mechanize.new { |agent|
#! /bin/bash
url="http://rez.urbanspoon.com/b/widget/2086?background=ebf3fd&border=bbd4f1&header=000&link=0144a7&locale=en&source=selfhost&text=000"
hash=`cat /tmp/state_bird`
`curl $url | md5sum | awk '{print $1}' > /tmp/state_bird`
newhash=`cat /tmp/state_bird`
if [[ "$hash" != "$newhash" ]]; then echo "Reservations page just changed: http://statebirdsf.com/reservations/ - $newhash" | mail -s Reservations diogo.monica@gmail.com; fi
require 'rubygems'
require 'nokogiri'
ATTRIBUTES = ['accelx', 'accely', 'accelz', 'altitude',
'depth', 'heading', 'lat', 'long', 'pitch',
'pitchrate', 'roll', 'rollrate', 'yawrate']
f = File.open(ARGV[0])
doc = Nokogiri::XML(f)
f.close