Skip to content

Instantly share code, notes, and snippets.

View sorinstanila's full-sized avatar

Sorin Valer Stanila sorinstanila

View GitHub Profile
@sorinstanila
sorinstanila / buergerbot.rb
Created December 21, 2015 20:25 — forked from pbock/buergerbot.rb
Bürgerbot: Refreshes the Berlin Bürgeramt page until an appointment becomes available, then notifies you.
#!/usr/bin/env ruby
require 'watir-webdriver'
def log (message) puts " #{message}" end
def success (message) puts "+ #{message}" end
def fail (message) puts "- #{message}" end
def notify (message)
success message.upcase
system 'osascript -e \'Display notification "Bürgerbot" with title "%s"\'' % message
rescue StandardError => e
@sorinstanila
sorinstanila / alice&bob&chuck_usefull_commands
Last active November 25, 2015 11:34 — forked from tsergium/alice&bob_usefull_commands
Alice & Bob&Chuck Usefull Commands
Chuck
==========
* Run migrations:
php application/cli.php intcart_dev dev admin migration execute
Alice & Bob Usefull Commands