This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
from roadtools.roadlib.metadef.database import User | |
import roadtools.roadlib.metadef.database as database | |
session = database.get_session(database.init()) | |
pattern = r".*@example\.com$" | |
for user in session.query(User): | |
if user.mail and re.match(pattern, user.mail): | |
print(user.userPrincipalName) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
GO_VERSION="1.22.3" | |
GO_URL="https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz" | |
EXPECTED_CHECKSUM="8920ea521bad8f6b7bc377b4824982e011c19af27df88a815e3586ea895f1b36" | |
# Log output of script | |
exec > >(tee -i /home/ubuntu/install.log) | |
exec 2>&1 |