Skip to content

Instantly share code, notes, and snippets.

@ABelliqueux
ABelliqueux / PSXasm2Gas.md
Created July 20, 2021 14:44
Regexp rules to convert psx asm to gas syntax

replace symbols declarations

symbol equ value becomes

.equ symbol,value

replace rXX wit $XX

s\ r([0-9]{1,2}) \ \$\1

@ABelliqueux
ABelliqueux / io_export_rsd.py
Created July 30, 2021 08:08
Lameguy64/-Blender-2.80-RSD-Plugin
"""
This script exports PlayStation SDK compatible RSD,PLY,MAT files from Blender.
Supports normals, colors and texture mapped triangles.
Only one mesh can be exported at a time.
"""
import os
import bpy
from bpy.props import (CollectionProperty,
@ABelliqueux
ABelliqueux / rsd-blender280.py
Created July 30, 2021 08:10
Blender RSD 279-280 equivalent
>>> obj = C.object
>>> print(obj)
<bpy_struct, Object("Cube")>
>>> mesh = obj.to_mesh()
>>> print(mesh)
@ABelliqueux
ABelliqueux / PKGBUILD
Last active February 7, 2022 13:30
Gendev 0.7.1 AUR PKGBUILD
# Maintainer: Vinicius Correa <vinicius dot correa at zoho dot com>
pkgname=gendev
pkgver=0.7.1
pkgrel=1
pkgdesc="Genesis development environment for Linux"
arch=('any')
url="https://github.com/kubilus1/${pkgname}"
license=('BSD')
depends=('texinfo' 'jdk8-openjdk')
options=(!strip)
@ABelliqueux
ABelliqueux / liblto.patch
Last active January 24, 2022 11:36
Gendev 0.7.1 makefile.gen liblto patch
--- /opt/gendev/sgdk/mkfiles/makefile.gen 2022-01-24 12:20:29.344222685 +0100
+++ /opt/gendev/sgdk/mkfiles/makefile.gen 2022-01-24 12:20:42.557612093 +0100
@@ -147,7 +147,7 @@
$(SIZEBND) out/rom.bin -sizealign 131072
out/symbol.txt: out/rom.out
- $(NM) --plugin=liblto_plugin-0.dll -n out/rom.out > out/symbol.txt
+ $(NM) --plugin=libLTO.so -n out/rom.out > out/symbol.txt
out/rom.out: out/sega.o out/cmd_ $(LIBMD)
@ABelliqueux
ABelliqueux / ps4-fake-account-hex-to-b64.py
Last active March 6, 2022 21:59
Chiaki - PS4 Fake account hex to base 64
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# On a jailbroken PS4, install Apollo Save Tool, and activate a fake account in "User tools"
# https://github.com/bucanero/apollo-ps4
# Close then relaunch Apollo and write down your account ID ( it's the hex string between parenthesis after your user name)
# E.G : > Activate Offline Account YourUserName (1a2b3c4d5e6f7a8b)
# Replace the content of the "user_id" string with your actual hex string, then run the script to generate the base64
# encoded version of your account ID.
import base64
@ABelliqueux
ABelliqueux / fixbuild.patch
Created April 1, 2022 13:57
AUR-java8-openjfx-fixbuild.patch
--- rt-8u202-ga/build.gradle 2018-12-10 17:30:22.000000000 +0100
+++ rt-8u202-ga/build1.gradle 2022-04-01 15:47:37.791321075 +0200
@@ -737,24 +737,10 @@
// Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
//
// We need to parse the second line
-def inStream = new java.io.BufferedReader(new java.io.InputStreamReader(new java.lang.ProcessBuilder(JAVA, "-version").start().getErrorStream()));
-try {
- if (inStream.readLine() != null) {
- String v = inStream.readLine();
@ABelliqueux
ABelliqueux / PKGBUILD
Created April 1, 2022 15:01
AUR-quickbms-11.0-PKGBUILD
# Maintainer: Luca Weiss <luca (at) z3ntu (dot) xyz>
pkgname=quickbms
pkgver=0.11.0
pkgrel=1
pkgdesc="Files extractor and reimporter, archives and file formats parser, advanced tool for reversers and power users and much more."
url="http://aluigi.altervista.org/quickbms.htm"
arch=('x86_64' 'i686')
license=('GPL2')
depends_i686=('lzo' 'bzip2' 'zlib' 'openssl')
@ABelliqueux
ABelliqueux / PKGBUILD
Created August 23, 2022 14:18
!Experimental! PKGBUILD for tahoma2d with new binaries names
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: Campbell Barton <ideasman42@gmail.com>
export GIT_LFS_SKIP_SMUDGE=1
pkgname=tahoma2d
pkgver=1.3
pkgrel=1
pkgdesc="Software for producing a 2D animation"
arch=(x86_64)
@ABelliqueux
ABelliqueux / use_laptop_2nd_display_linux_freerdp.md
Last active December 16, 2022 16:17
Use a laptop as a 2nd display on Linux using FreeRDP

Mirror of https://blog.jacobstoner.com/use-a-laptop-or-tablet-as-a-2nd-display-on-linux-with-a-dummy-monitor-and-rdp/

Dual monitors using a laptop as a second display. This guide assumes that you are using a Debian based distro (X11 only). Both devices must be connected to the same network.

1. Define an output to be a used as a dummy monitor

a. The simple method: select an unused existing graphics port

# find an unused output
find -L /sys/class/drm -maxdepth 1 -type d -name 'card0-*' -exec sh -c 'if [ $(cat $0/status) = "disconnected" ]; then echo $0; fi' {} \;|cut -c22-|sort