Skip to content

Instantly share code, notes, and snippets.

Avatar

Stephen Benjamin stbenjam

View GitHub Profile
@johnpmitsch
johnpmitsch / gist:48ba847ffc1dcbb83ac774eea42ae6fa
Last active Mar 16, 2018
subscription-manager on SUSE SLES12
View gist:48ba847ffc1dcbb83ac774eea42ae6fa
zypper addrepo https://download.opensuse.org/repositories/home:/kahowell/SLE_12_SP1/home:kahowell.repo
zypper addrepo https://download.opensuse.org/repositories/systemsmanagement:/spacewalk:/2.7/SLE_12_SP3/systemsmanagement:spacewalk:2.7.repo
zypper install subscription-manager
@pbock
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.