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 / t248-no-deadzone.sh
Created November 9, 2021 23:16
Disable built-in deadzone on Thrustmaster T248 steering wheel on Linux
#!/usr/bin/env bash
# Source: https://forum.scssoft.com/viewtopic.php?t=291342
set -euo pipefail
IFS=$'\n\t'
evdev-joystick --e /dev/input/by-id/usb-Thrustmaster_Thrustmaster_Racing_Wheel_FFB-event-joystick --d 0
@Calinou
Calinou / godot-tuxfamily-download-all.sh
Last active November 3, 2021 22:02
Download files for a given Godot release from the TuxFamily servers (for mirroring purposes)
#!/usr/bin/env bash
# Copyright © 2019-2021 Hugo Locurcio
# Licensed under the MIT license.
set -xeuo pipefail
IFS=$'\n\t'
export DIR
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
@Calinou
Calinou / tasks.json
Created September 3, 2021 13:07
Godot build tasks for Linux using Clang + LLD + Pyston to speed up incremental builds
{
"version": "2.0.0",
"tasks": [
{
"label": "Build (editor)",
"type": "shell",
"command": "pyston-scons -j10 platform=linuxbsd use_llvm=yes use_lld=yes werror=no tests=no",
"problemMatcher": [],
"group": {
"kind": "build",
@Calinou
Calinou / bottom.html
Created August 7, 2021 13:03
Backup of the syntax highlighting blocks on the Godot Q&A
<script defer src="/qa/highlightjs/highlight.min.js"></script>
<script defer src="/qa/highlightjs/highlight.gdscript.min.js"></script>
<script>
window.addEventListener('DOMContentLoaded', (event) => {
document.querySelectorAll('pre code').forEach((block) => {
hljs.highlightBlock(block);
});
});
</script>
@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 / metric_config.yaml
Created April 28, 2021 23:01
Metrics generator for the Godot Git repository (see https://github.com/asottile/git-code-debt)
# This is a sample metric config
# Sample Groups definition:
# Groups:
# Group1:
# metrics:
# - FooMetric
# - BarMetric
# metric_expressions:
# - ^.*Baz.*$
@Calinou
Calinou / versions.json
Last active April 15, 2021 12:43
Godot versions available in JSON form (for testing the built-in update checker)
{
"releases": {
"4.1.1": {
"date": "2021-04-15",
"news_url": "https://godotengine.org/news",
"description": "Godot 3.3 has been released!\n\nThis release features significant improvements to 2D and 3D rendering, a new FBX importer, Android App Bundle support, and much more."
},
"4.1": {
"date": "2021-04-15",
"news_url": "https://godotengine.org/news",
@Calinou
Calinou / README.md
Created February 20, 2021 19:12
Configuration for running git-code-debt on the Godot repository
  1. Install Python 3.6 or later and pip then run pip install --user --upgrade git-code-debt.
  2. Save generate_config.yaml and metric_config.yaml in the same folder.
  3. Run git-code-debt-generate. This will take a few minutes.
  4. Run git-code-debt-server database.db and open the address that appears in the console output in a web browser.

See for more information.

@Calinou
Calinou / download-all.sh
Created January 28, 2021 21:51
Script to download all Godot artifacts for a release from TuxFamily (for mirroring purposes)
#!/usr/bin/env bash
# Copyright © 2019-2021 Hugo Locurcio
# Licensed under the MIT license.
set -xeuo pipefail
IFS=$'\n\t'
export DIR
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
@Calinou
Calinou / README.md
Last active April 11, 2022 14:40
Increase NVIDIA power limit with the proprietary driver on Linux, from 200W to the maximum 216W on a GeForce GTX 1080

Instructions

  • Save nvidia-tdp.service and nvidia-tdp.timer to /etc/systemd/system.
  • Run sudo systemctl daemon-reload &amp;&amp; sudo systemctl enable nvidia-tdp &amp;&amp; sudo systemctl start nvidia-tdp to apply immediately and on future boots.