Skip to content

Instantly share code, notes, and snippets.

View akien-mga's full-sized avatar

Rémi Verschelde akien-mga

View GitHub Profile
@akien-mga
akien-mga / image_loader_pcx.gd
Created May 30, 2024 20:44
PCX Loader class in GDScript
@tool
class_name ImageLoaderPCX
extends ImageFormatLoaderExtension
## Implementation of an ImageFormatLoader for PCX files with the
## [code].pcx[/code] extension.
##
## PCX files are an obsolete image format used in the DOS era, developed in 1985
## by ZSoft Corporation.
##
@akien-mga
akien-mga / gist:ee75a500097999e2187d25935ee7347d
Last active June 19, 2021 21:34
Libera.Chat registration for Godot Engine
libera.chat-registration=253@
https://github.com/godotengine/godot/graphs/contributors and https://godotengine.org/governance
should confirm that my @akien-mga account is a maintainer of @godotengine.
@akien-mga
akien-mga / mga-sdl12-deps.txt
Last active May 28, 2021 16:58
SDL 1.2 reverse deps in Mageia Cauldron
$ urpmq --whatrequires lib64SDL1.2_0 | uniq
SDL_mixer-player
SDL_sound
abe
abuse-sdl
airstrike
aranym
armagetron
asc
assaultcube
// Connecting Steam Controller (BLE). Controller works in desktop mode.
Local Device Found
type: 28de 1106
path: /dev/hidraw2
serial_number: f9:c6:55:fd:85:60 - 0
Manufacturer:
Product: SteamController
Release: 0
Interface: -1
@akien-mga
akien-mga / gist:6892064ad5acb8a2aa65a655e16845a1
Created August 27, 2017 16:08 — forked from lonnen/gist:3101795
git grep and git blame. two great tastes that taste great together
# from i8ramin - http://getintothis.com/blog/2012/04/02/git-grep-and-blame-bash-function/
# runs git grep on a pattern, and then uses git blame to who did it
ggb() {
git grep -n $1 | while IFS=: read i j k; do git blame -L $j,$j $i | cat; done
}
# small modification for git egrep bash
geb() {
git grep -E -n $1 | while IFS=: read i j k; do git blame -L $j,$j $i | cat; done
}
This file has been truncated, but you can view the full file.
--- classes-2.1.xml 2017-07-01 19:54:14.497780061 +0200
+++ classes-3.0.xml 2017-07-01 19:54:31.844097632 +0200
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<doc version="2.1.4.beta.custom_build" name="Engine Types">
+<doc version="3.0.alpha.custom_build" name="Engine Types">
<class name="@GDScript" category="Core">
<brief_description>
</brief_description>
@@ -83,7 +83,7 @@
diff --git a/thirdparty/openssl/crypto/o_str.c b/thirdparty/openssl/crypto/o_str.c
index c10842300..7e61cde85 100644
--- a/thirdparty/openssl/crypto/o_str.c
+++ b/thirdparty/openssl/crypto/o_str.c
@@ -64,11 +64,7 @@
#if !defined(OPENSSL_IMPLEMENTS_strncasecmp) && \
!defined(OPENSSL_SYSNAME_WIN32) && !defined(OPENSSL_SYSNAME_WINCE) && \
!defined(NETWARE_CLIB)
-#ifdef _WIN32
-#include <string.h>
@akien-mga
akien-mga / mesh-analysis.txt
Created March 24, 2015 16:01
OpenDungeons mesh/materials correspondance
=== Scanning mesh files ===
AdventurerBed.mesh: AdventurerBed
Adventurer.mesh: Adventurer
Anvil.mesh: Anvil
Axe1.mesh: axt
Bed.mesh: Wood
Bed.mesh: WhiteCloth
Bed.mesh: Blanket
BeetleGolem.mesh: Material.002
Bookcase.mesh: Bookcase
@akien-mga
akien-mga / texture-analyse.txt
Last active August 29, 2015 14:17
OpenDungeons texture analyse
== Texture: AdventurerBed.png ==
. Files matching the filename:
CREDITS
materials/scripts/AdventurerBed.material
. Matched material definition: AdventurerBed
. Extracted material name: AdventurerBed
== Texture: Adventurer.png ==
. Files matching the filename:
materials/scripts/Adventurer.material
[akien@cauldron sumwars-0.5.8]$ LC_ALL=C ./sumwars
[D] /home/akien/Mageia/Sandbox/sumwars/SOURCES/sumwars-0.5.8/src/gui/application.cpp:160 init > Initialized logging. Level: 4369
Creating resource group General
Creating resource group Internal
Creating resource group Autodetect
SceneManagerFactory for type 'DefaultSceneManager' registered.
Registering ResourceManager for type Material
Registering ResourceManager for type Mesh
Registering ResourceManager for type Skeleton
MovableObjectFactory for type 'ParticleSystem' registered.