Skip to content

Instantly share code, notes, and snippets.

View marcellourbani's full-sized avatar

Marcello Urbani marcellourbani

  • Basis Technologies
  • London, UK
View GitHub Profile
@marcellourbani
marcellourbani / otpresponder
Last active August 31, 2022 22:14
Automated OTP responder based on fish shell - maybe not a great idea but convenient :)
#!/usr/bin/fish
while true
set resp (inotifywait /run/systemd/ask-password -e moved_to)
set file = (string split ' ' $resp)
set pfile "/run/systemd/ask-password/$file[4]"
if grep "$CHALLENGE_KEY" $pfile >/dev/null
set socket (grep -i socket $pfile | sed s/socket=//i)
set ticket (oathtool -b --totp "$OTP_KEY")
echo socket "$socket"
echo "$ticket" | /lib/systemd/systemd-reply-password 1 "$socket"
@marcellourbani
marcellourbani / ABAP trial license renewal.md
Last active September 7, 2025 08:28
ABAP trial renewal helper

ABAP trial license renewal helper

Why would anyone need this

There are several methods to update the license but:

  • the sapgui method fails to install telling me the system number doesn't match
  • the docker method works, but the installed license is invalid, the reason is explained below:

When I start my abap trial container based on the ABAPTRIAL_2022_SP01 official image I get a new hardware key: