Skip to content

Instantly share code, notes, and snippets.

@ttrei
ttrei / steam-offline.sh
Last active June 24, 2022 07:48
Start steam in offline mode without prompting to go online
#!/usr/bin/env sh
# Start steam in offline mode without prompting to go online.
# https://gaming.stackexchange.com/a/184717
# NOTE: You may need to log into steam in online mode once.
# Steam resets the SkipOfflineModeWarning option on every startup.
# So we have to enable it every time before starting steam.
LOGINUSERS=~/.steam/debian-installation/config/loginusers.vdf
// CHALLENGE (work in pairs):
// Improve code snippets listed below –
//
// 1 - implement Xml class instead of XmlMarshaller
class XmlMarshaller {
byte[] marshallToXml(Invoice invoice) {
ByteArrayOutputStream outStream = new ByteArrayOutputStream();
JaxbMarshaller jaxbMarshaller = new JaxbMarshaller(Invoice.class);
//
// CHALLENGE (work in pairs):
// Move from f(o) -> o.f() and make sure that the code is CQS compliant.
//
// 1
// Turn on object-thinking and re-design the code accordingly
/*
class CsvParser<T extends Line> {