Skip to content

Instantly share code, notes, and snippets.

View stbenjam's full-sized avatar
🙃

Stephen Benjamin stbenjam

🙃
View GitHub Profile
@johnpmitsch
johnpmitsch / gist:48ba847ffc1dcbb83ac774eea42ae6fa
Last active March 16, 2018 16:12
subscription-manager on SUSE SLES12
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 April 22, 2024 10:58
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