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 / godot_android.bat
Created September 9, 2017 20:25
Compile Godot for Android (from Windows)
@ECHO OFF
set threads=%NUMBER_OF_PROCESSORS%
call scons platform=android tools=no target=release_debug verbose=no warnings=no progress=no -j%threads%
call scons platform=android tools=no target=release verbose=no warnings=no progress=no -j%threads%
cd platform\android\java\
call gradlew build
@Calinou
Calinou / godot_mingw.sh
Last active July 8, 2023 23:17
Compile Godot using MinGW and generate Windows installers using InnoSetup (from Linux)
#!/bin/sh
set -euo pipefail
# Number of CPU threads to use for building
# Use `./godot_mingw.sh <number of threads>` to specify
THREADS=$1
# Godot Git clone path
GODOT_PATH="$HOME/Documents/Git/godotengine/godot"
@Calinou
Calinou / godot-init
Last active June 2, 2023 15:53
Scripts to initialize and edit a Godot project for quick testing
#!/bin/bash
#
# For Linux and macOS.
# The Godot editor must be in your `PATH` as `godot` for this script to work.
# Licensed under CC0 1.0 Universal.
set -euo pipefail
IFS=$'\n\t'
if [[ ! "${1:-}" || "${1:-}" == "--help" || "${1:-}" == "-h" ]]; then
@Calinou
Calinou / CHANGELOG.md
Last active May 25, 2023 19:07
Godot 4.0 preliminary changelog (does not list changes that were also backported to Godot 3.x)

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog.

[4.0] - TBD

Added

@Calinou
Calinou / gist:b8f45cb9f4136932c28fe18520c8f0f2
Last active May 8, 2023 21:53
Steam system information (Desktop PC 2016)
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
CPU Family: 0x6
@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