Skip to content

Instantly share code, notes, and snippets.


Stephen Benjamin stbenjam

View GitHub Profile
johnpmitsch / gist:48ba847ffc1dcbb83ac774eea42ae6fa
Last active Mar 16, 2018
subscription-manager on SUSE SLES12
View gist:48ba847ffc1dcbb83ac774eea42ae6fa
zypper addrepo
zypper addrepo
zypper install subscription-manager
pbock / buergerbot.rb
Last active Sep 28, 2020
Bürgerbot: Refreshes the Berlin Bürgeramt page until an appointment becomes available, then notifies you.
View buergerbot.rb
#!/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
You can’t perform that action at this time.