Skip to content

Instantly share code, notes, and snippets.

View Calinou's full-sized avatar
🦄
______ is best pony.​

Hugo Locurcio Calinou

🦄
______ is best pony.​
View GitHub Profile
@Calinou
Calinou / dinosaur-planet-60-fps.md
Last active February 5, 2024 17:46
Running Dinosaur Planet at 60 FPS – instructions and caveats
@Calinou
Calinou / gd-pr-test.sh
Last active October 4, 2023 19:28
Test a Godot pull request locally
#!/usr/bin/env bash
#
# Tests a Godot pull request locally, given an URL to a pull request (or its
# number) and a path or URL to a testing project. This script can also be used
# to confirm Godot bug reports locally using "master" as the first argument.
#
#### Installation
#
# Save this script to a file in your PATH (such as `/usr/local/bin/gd-pr-test`),
# then make the file executable using `chmod +x /path/to/script`.
@Calinou
Calinou / game.c
Created January 12, 2023 03:21
Dirt Rally Linux fix (source: https://news.ycombinator.com/item?id=25818126)
// Source: <https://news.ycombinator.com/item?id=25818126>
//
// Instructions:
// 1. Paste contents of this file to a new file called "game.c" within your home folder.
// 2. Open a terminal, install GCC from distribution repositories and compile this source file: gcc game.c -shared -o game.so
// 3. Move game.so to the same folder as the DirtRally binary (within the bin/ folder, not DirtRally.sh).
// Use Manage > Browse Local Files on Dirt Rally to reach this folder, then enter the bin/ folder.
// 4. Modify Steam launch options: LD_PRELOAD=./game.so %command%
// 5. Run the game on Steam.
#include <sys/mman.h>
@Calinou
Calinou / chdize.sh
Last active January 2, 2023 21:19
Compress ISO/CUE files to CHD on a remote filesystem accessible via SFTP/SSH
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Compresses ISO/CUE files to CHD on a remote filesystem accessible via SFTP/SSH.
# Source ISO files on the remote host are not removed after conversion
# (you have to do this manually if desired).
#
# chdman must be installed (it's typically packaged as `mame-tools`).
# If it's not in your distribution repositories, build
@Calinou
Calinou / master.pl
Created December 14, 2022 01:56
Cube 1 master server perl script (downloaded from https://hyphe.myzel.net/hungerburg/masterserver)
#!/usr/bin/perl -w
##
## cube masterserver
## (c) 2004, Hungerburg, License same as Cube (z-lib)
##
=cut
Changes
@Calinou
Calinou / dxvk.conf
Created September 18, 2022 20:34
Personal DXVK configuration file for lower input lag and better quality
# Create the VkSurface on the first call to IDXGISwapChain::Present,
# rather than when creating the swap chain. Some games that start
# rendering with a different graphics API may require this option,
# or otherwise the window may stay black.
#
# Supported values: True, False
# dxgi.deferSurfaceCreation = False
# d3d9.deferSurfaceCreation = False
@Calinou
Calinou / godot-rocketchat.css
Created July 23, 2022 21:33
Custom CSS used on the Godot Contributors Chat Rocket.Chat instance
.register-link-replacement {
display: none
}
.rcx-box.rcx-box--full.rcx-badge.rcx-badge--primary {
background: red !important
}
.code-colors {
background-color: #1d1f21 !important
@Calinou
Calinou / README.md
Created July 4, 2022 22:37
Godot 3.x pull requests from Calinou
@Calinou
Calinou / README.md
Last active June 8, 2022 21:32
Stunt Rally contribution notes

Tracks with checkpoint issues

  • Mos6-TaraMosses: Wrong checkpoint can be triggered in pipe section at the top
  • Sur6-AkkaPadre: Wrong checkpoint can be triggered in the pipe section below the large cave
  • Sur8-BloCorcle: Wrong checkpoint can be triggered shortly after the wallride jump

Tracks with water planes that are too shallow

  • Jng25-CantorJungle
  • Vlc13-BorVolcano
@Calinou
Calinou / github-gist-increase-height.user.css
Created November 18, 2021 18:13
Increase height of GitHub Gist editors to full screen height
/* ==UserStyle==
@name gist.github.com - 11/18/2021, 7:11:18 PM
@namespace github.com/openstyles/stylus
@version 1.0.0
@description A new userstyle
@author Me
==/UserStyle== */
@-moz-document domain("gist.github.com") {
div.CodeMirror.cm-s-github-light {