Skip to content

Instantly share code, notes, and snippets.

View IBBoard's full-sized avatar

IBBoard

View GitHub Profile
@IBBoard
IBBoard / nautilus-typeahead-patch.patch
Created March 29, 2022 19:55
A (hopefully functioning) patch to make https://aur.archlinux.org/packages/nautilus-typeahead work with Nautilus 42 and the new GtkEventControllerKey event pattern
@@ -214,7 +214,7 @@
static NautilusView *
nautilus_window_slot_get_view_for_location (NautilusWindowSlot *self,
GFile *location)
-@@ -640,18 +744,72 @@ nautilus_window_slot_handle_event (NautilusWindowSlot *self,
+@@ -640,18 +744,73 @@ nautilus_window_slot_handle_event (NautilusWindowSlot *self,
}
}
@@ -241,9 +241,10 @@
@IBBoard
IBBoard / uplay
Created January 30, 2022 16:39
Shell script to launch UPlay from a Steam AC:Liberations install so that you can play other Ubisoft games
#! /bin/bash
#LATEST_PROTON=$(ls -1 ~/.local/share/Steam/steamapps/common/Proton\ */dist/bin/wine64 | grep -v Experimental|tail -n1)
LATEST_PROTON=$(ls -1 ~/.local/share/Steam/compatibilitytools.d/Proton*/files/bin/wine64 | grep -v rc | tail -n1)
WINEPREFIX="$HOME/.local/share/Steam/steamapps/compatdata/260210/pfx/" \
PROTON_USE_D9VK=1 PROTON_NO_ESYNC=1 \
WINEDLLOVERRIDES="steam.exe=b;dotnetfx35.exe=b" \
"$LATEST_PROTON" "c:/Program Files (x86)/Ubisoft/Ubisoft Game Launcher/UbisoftConnect.exe"
@IBBoard
IBBoard / BloodBowlPitchMap.txt
Last active May 4, 2021 19:43
A full dump and map from a Blood Bowl 1 game using https://github.com/ibboard/bbreplay
Replay_2021-04-04_09-49-09.db
Home: Boil-ton Wanderers (Nurgle)
① - Joe the Indisposed
② - Abaddon the Despoiler
③ - Karl the infected
④ - Ewan Thorn
⑤ - Reyan Rotleg
⑥ - Kardel the Putrefier
⑦ - Ebola-Gorz
⑧ - Lord Ogloth Lornosis
Replay_2021-04-04_09-49-09.db
Home: Boil-ton Wanderers (Nurgle)
① - Joe the Indisposed
② - Abaddon the Despoiler
③ - Karl the infected
④ - Ewan Thorn
⑤ - Reyan Rotleg
⑥ - Kardel the Putrefier
⑦ - Ebola-Gorz
⑧ - Lord Ogloth Lornosis
Replay_2021-04-04_09-49-09.db
Home: Boil-ton Wanderers (Nurgle)
① - Joe the Indisposed
② - Abaddon the Despoiler
③ - Karl the infected
④ - Ewan Thorn
⑤ - Reyan Rotleg
⑥ - Kardel the Putrefier
⑦ - Ebola-Gorz
⑧ - Lord Ogloth Lornosis
@IBBoard
IBBoard / BloodBowlPitchMap-multiturn.txt
Last active May 11, 2021 17:20
Multi-turn Blood Bowl replay map output made by bbreplay - https://github.com/IBBoard/bbreplay/
Replay_2021-04-04_09-49-09.db
Home: Boil-ton Wanderers (Nurgle)
Away: Naggarothi Nightmares (DarkElf)
Swapping players Player(team=<PlayerType.AWAY: 1>, number=1) & Player(team=<PlayerType.AWAY: 1>, number=12)
Swapping players Player(team=<PlayerType.AWAY: 1>, number=10) & Player(team=<PlayerType.AWAY: 1>, number=3)
Swapping players Player(team=<PlayerType.AWAY: 1>, number=2) & Player(team=<PlayerType.AWAY: 1>, number=9)
Setup
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
╔═══╤═══╤═══╤═══╤═══╤═══╤═══╤═══╤═══╤═══╤═══╤═══╤═══╤═══╤═══╗
0 ║ ┆ ┆ ┆ ┇ ┆ ┆ ┆ ┆ ┆ ┆ ┇ ┆ ┆ ┆ ║
@IBBoard
IBBoard / BloodBowlPitchMap-multiturn.txt
Last active May 11, 2021 17:20
Multi-turn Blood Bowl replay map output from bbreplay - https://github.com/IBBoard/bbreplay/
Replay_2021-04-04_09-49-09.db
Home: Boil-ton Wanderers (Nurgle)
Away: Naggarothi Nightmares (DarkElf)
Swapping players Player(team=<PlayerType.AWAY: 1>, number=1) & Player(team=<PlayerType.AWAY: 1>, number=12)
Swapping players Player(team=<PlayerType.AWAY: 1>, number=10) & Player(team=<PlayerType.AWAY: 1>, number=3)
Swapping players Player(team=<PlayerType.AWAY: 1>, number=2) & Player(team=<PlayerType.AWAY: 1>, number=9)
Setup
╔════════╤══════════════╤════════╗
║ ┆ ┆ ║
╟╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╢
@IBBoard
IBBoard / BloodBowlPitchMap.txt
Last active May 11, 2021 17:20
Unicode representation of a Blood Bowl pitch based on log data - https://github.com/IBBoard/bbreplay/
╔═════════╤═══════════════╤═════════╗
║ ┆ ┆ ⑫ ⑬ ║
╟╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╢
║ ┆ ┆ ║
║ ┆ ┆ ║
║ ┆ ┆ ║
║ ┆ ┆ ║
║ ┆ ┆ ║
║ ┆ ⑦ ⑧ ┆ ║
║ ┆ ┆ ║
@IBBoard
IBBoard / BloodBowlReplay.log
Last active May 11, 2021 17:18
Early output from parsing Blood Bowl 1 replay files with bbreplay - https://github.com/IBBoard/bbreplay/
Replay_2021-04-05_14-44-03.db
Home: Gouged Eye (Orc)
Away: Reikland Reavers (Human)
UnknownCommand(id=1, turn=41, team=PlayerType.HOTSEAT, cmd_type=3, data=[255, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0])
UnknownCommand(id=2, turn=42, team=PlayerType.HOTSEAT, cmd_type=4, data=[25, 47, 240, 221, 0, 0, 0, 0, 0, 0, 0, 0])
CoinToss(team=PlayerType.HOTSEAT, choice=CoinToss.TAILS, data=[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
Role(team=PlayerType.HOTSEAT, choice=Role.RECEIVE, data=[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
UnknownCommand(id=5, turn=320, team=PlayerType.HOTSEAT, cmd_type=88, data=[255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
Setup(team=PlayerType.AWAY, player=3, pos=3,25, data=[1, 3, 3, 25, 0, 0, 0, 0, 0, 0, 0, 0])
Setup(team=PlayerType.AWAY, player=11, pos=11,25, data=[1, 11, 11, 25, 0, 0, 0, 0, 0, 0, 0, 0])
@IBBoard
IBBoard / uplay.sh
Last active February 11, 2021 20:59
Run uPlay (now Ubisoft Connect) from the AC:Liberation install with the latest non-experimental Proton so that you can install and play all the other AC games on Linux (this is most useful when Family Share shows your wife's AC:Liberation but fails to work after install because uPlay prevents Family Share working and so you use her uPlay credent…
#! /bin/bash
LATEST_PROTON=$(ls -1 ~/.local/share/Steam/steamapps/common/Proton\ */dist/bin/wine64 | grep -v Experimental|tail -n1)
WINEPREFIX="$HOME/.local/share/Steam/steamapps/compatdata/260210/pfx/" \
WINEDLLOVERRIDES="steam.exe=b;dotnetfx35.exe=b;mfplay=n;dxvk_config=n;d3d11=n;d3d10=n;d3d10core=n;d3d10_1=n;d3d9=n" \
"$LATEST_PROTON" "c:/Program Files (x86)/Ubisoft/Ubisoft Game Launcher/UbisoftConnect.exe"