Skip to content

Instantly share code, notes, and snippets.

Upgrading Into the Breach (GOG - for Linux)

I bought Into the Breach on Galaxy of Gaming for linux on release. In July 2022, Subset games released Into the Breach Advanced Edition, [(1)][1] a free expansion of the original. This article details how I upgraded and moved my save game files across to the latest version of the game.

Game save data is stored in files with the names in the foramt: profile_{Name}. [(2)][2]

The first version I installed was GOG v1.0.10 (2-28-2018). This version was run via wine [(3)][3], and installed to ~/.wine/dosdevices/c:/GOG Games/Into the Breach/. The save game files (eg. profile_Alpha) were saved in the top level of this directory.

I installed the latest version of Into the Breach from GOG as of Feb 2023: v. 1.2.86 (10-10-2022). The installer prompted for an install location, with a default of ~/GOG Games/Into the Breach. I chose the default location and let the intaller create a desktop file etc. On install, it was clearly quite different to the old version

@Ogaday
Ogaday / REGISTER.rst
Last active December 6, 2022 14:49
Function registry

Function Register

A Lightweigt function registry implementation.

Eg:

register = Register()

@register("hello")
@Ogaday
Ogaday / COMPOSE.rst
Last active December 6, 2022 15:24
Implemtation of function composition

Function Composition

A minimal compose implementation.

Given a list of functions, apply them squentially to an argument. This is equivalent to:

funcs = [h, ..., g]
compose(x, funcs) == g(...(h(x)))
@Ogaday
Ogaday / argmax.py
Last active December 1, 2022 19:20
Native Argmax
"""
A native implementation of argmax.
https://towardsdatascience.com/there-is-no-argmax-function-for-python-list-cd0659b05e49
Tests::
pytest --doctest-modules -vvv argmax.py
Linting::
@Ogaday
Ogaday / AOC.md
Last active December 6, 2022 15:25
Advent of Code - Getting Started

Advent of Code - Getting Started

Some pointers for getting started with the Advent of Code.

You can run the notebook interactively here:

Binder

@Ogaday
Ogaday / README.md
Last active January 13, 2022 12:59
Mocking HTTP requests in Click

Mocking HTTP Requests in Click

Simple MVP to test mocking of HTTP requests made in Click commands using the responses library.

In simple_post.py we have a Click command that makes a request to https://httpbin.org, a useful API for testing requests.

In test_simple_post.py we have a test suite which can be run by PyTest. In the first

@Ogaday
Ogaday / INSTALLING_PYTHON.md
Last active August 18, 2023 13:55
Installing Python From Source

Installing Python From Source

Installing Python on Linux isn't so hard. These are my notes for installing on Ubuntu.

  1. Install build dependencies using apt.
  2. Choose and download the version of Python you'd like to install from the releases page.
  3. Extract the directory
  4. Run ./configure and make to install
@Ogaday
Ogaday / README.md
Created July 20, 2020 10:25
Parsing RFC 822 timestamps

Comparison using the python date format spec to parse RFC-822 date strings vs using dateutil.

In [1]: from timeit import timeit 
   ...: from time_rfc_822 import parse_RFC_822_naive, parse_RFC_822_dateutil 
   ...: sample_date_string = 'Fri, 06 Mar 2020 14:22:22 GMT' 
   ...: %timeit parse_RFC_822_naive(sample_date_string) 
   ...: %timeit parse_RFC_822_dateutil(sample_date_string)                                                                                                                                                                                                                                
17.5 µs ± 805 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
154 µs ± 12.6 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
@Ogaday
Ogaday / accents.md
Created April 29, 2020 18:48
Accents on linux

On my set up at least:

shift + alt gr ' <vowel>: áéíóú  
shitf + alt gr ` <vowel>: àèìòù  
shift + alt gr - <vowel>: āēīōū
@Ogaday
Ogaday / README.md
Last active August 7, 2022 13:33
Prefect on Dask on Kubernetes