Skip to content

Instantly share code, notes, and snippets.

View kathyrollo's full-sized avatar

Kat Rollo kathyrollo

  • Australia
View GitHub Profile
@kathyrollo
kathyrollo / Sega Model 3 - Region Unlock Codes.txt
Created August 14, 2024 15:59
Sega Model 3 - Region Unlock Codes
DAYTONA USA 2: BATTLE ON THE EDGE and POWER EDITION (Model 3 Step 2)
Method 1
Go into the test mode and push the service and test button on the PCB at the same time.
Method 2
Go into the test mode and push Hold Start and Press GREEN (VR4), GREEN (VR4), BLUE (VR2), YELLOW (VR3), RED (VR1), YELLOW (VR3), BLUE (VR2).
(Colours are the VR buttons).
DIRT DEVILS
On the test menu, press Start, Start, Service, Start, Start, Start, Service and Test.
@kathyrollo
kathyrollo / FileDownloadTest.java
Last active March 29, 2023 09:18
Download File with Selenium WebDriver using Paths Class
@Test
public void doFileDownload() throws Throwable {
// Since Java 7: Relative path from project root dir
// Put in target dir to avoid committing downloaded files
var downloadDir = Paths.get("target").toAbsolutePath().toString();
var prefs = new HashMap<String, Object>();
prefs.put("download.default_directory", downloadDir); // Bypass default download directory in Chrome
prefs.put("safebrowsing.enabled", "false"); // Bypass warning message, keep file anyway (for .exe, .jar, etc.)
var opts = new ChromeOptions();
@kathyrollo
kathyrollo / 1_pom.xml
Last active April 17, 2023 00:36
Polymorphic DriverFactory Pattern with Selenium WebDriver (JDK 17)
<!-- https://mvnrepository.com/artifact/org.reflections/reflections -->
<dependency>
<groupId>org.reflections</groupId>
<artifactId>reflections</artifactId>
<version>0.10.2</version>
<scope>test</scope>
</dependency>
@kathyrollo
kathyrollo / log4j2.xml
Created April 24, 2020 15:26
SLF4J with Log4j2
<?xml version="1.0" encoding="UTF-8" ?>
<Configuration status="WARN">
<Properties>
<Property name="logPath">target/test-logs</Property>
<Property name="rollingFileName">test-log</Property>
</Properties>
<Appenders>
<Console name="console" target="SYSTEM_OUT">
<PatternLayout pattern="[%highlight{%-5level}] %d{DEFAULT} %c{1}.%M() - %msg%n%throwable{short.lineNumber}" />
</Console>