Skip to content

Instantly share code, notes, and snippets.

View ritschmaster's full-sized avatar

Richard Bäck ritschmaster

View GitHub Profile
@jrbergen
jrbergen / proton_compat_coh2_syncerror.md
Last active July 3, 2024 15:14
Instructions to resolve Company Of Heroes 2 Sync-Error for Proton (Tested on 5.0-10)

Instructions to resolve Company Of Heroes 2 Sync-Error for Proton (Tested on 5.0-10 and 6.3-2)

In support of this comment on Proton's CoH2 issues thread: Company of Heroes 2 (231430) #3875

Based on original solution by @Cytomax55 in the same thread.

Edit Feb 2023: this may also work for CoH3 (the paths are different of course). I haven't tested this for CoH 3 yet and hope either Proton / Relic will make this fix unnecessary. See also @sfxworks's comment.

Instructions for automatic fix with a script by TechT10n

@Battleroid
Battleroid / banner.php
Last active September 18, 2020 18:22
Banner script for TinyBoard. Works perfect.
<?php
$dir = "static/banners/";
$images = array();
if ($handle = scandir($dir)) {
foreach ($handle as $target) {
if (!in_array($target, [".", ".."])) {
$images[] = $target;
}
}
@naholyr
naholyr / _service.md
Created December 13, 2012 09:39
Sample /etc/init.d script

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)