Skip to content

Instantly share code, notes, and snippets.

View Langerz82's full-sized avatar

Joshua L Langerz82

View GitHub Profile
@Langerz82
Langerz82 / amiberry.start
Last active October 10, 2025 12:33
EmuELEC - v4.8 - amiberry.start - v7 - test file.
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 0riginally created by Escalade (https://github.com/escalade)
# Copyright (C) 2018-present 5schatten (https://github.com/5schatten)
# Copyright (C) 2025-present Langerz82 (https://github.com/Langerz82)
. /etc/profile
# Set some common variables
AMIBERRY_DIR=/storage/.config/amiberry
find_gamepad() {
local SDLJOYTEST="/tmp/emulation/amiberry/sdljoytest"
sdljoytest -skip_loop > ${SDLJOYTEST}
local GC_NAME=$(cat ${SDLJOYTEST} | grep "Joystick 0 name" | cut -d"'" -f2)
if [[ ! -z "${GC_NAME}" ]] && [[ -f "/tmp/joypads/${GC_NAME}.cfg" ]]; then
sed -i "s|joyport1_friendlyname=.*|joyport1_friendlyname=${GC_NAME}|" "$AMIBERRY_TMP_CONFIG"
fi
}
@Langerz82
Langerz82 / rr_audio.sh
Last active June 27, 2025 13:52
Emuelec - rr_audio.sh test
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2018-present Frank Hartung ([email protected])
# Modifications by Shanti Gilbert ([email protected]) to work on EmuELEC Copyright (C) 2019-present
. /etc/profile
# Set common paths and defaults
export PULSE_RUNTIME_PATH=/run/pulse
RR_AUDIO_DEVICE="hw:$(get_ee_setting ee_audio_device)"
[ ${RR_AUDIO_DEVICE} = "hw:" ] && RR_AUDIO_DEVICE="hw:0"
@Langerz82
Langerz82 / rr_audio.sh
Created June 27, 2025 11:44
Emuelec - rr_audio fix audio 100% bug.
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2018-present Frank Hartung ([email protected])
# Modifications by Shanti Gilbert ([email protected]) to work on EmuELEC Copyright (C) 2019-present
. /etc/profile
# Set common paths and defaults
export PULSE_RUNTIME_PATH=/run/pulse
RR_AUDIO_DEVICE="hw:$(get_ee_setting ee_audio_device)"
[ ${RR_AUDIO_DEVICE} = "hw:" ] && RR_AUDIO_DEVICE="hw:0"
@Langerz82
Langerz82 / emustation_arguments.sh
Last active June 27, 2025 05:16
EmuELEC - emustation_arguments - ability to send additional argument to the emulationstation service.
#!/bin/bash
# ABOUT - Overrides the emustation service start with the ability to send arguments.
# CREDITS - https://www.github.com/Langerz82 - Joshua L - 2025.
# WARNING - Use at your own risk.
# copy to /emuelec/bin and "chmod +x rotate_emu_station.sh" to allow script to execute.
# type in: "emustation_arguments.sh delete" to remove arguments parsed to service
# type in: "emustation_arguments.sh --screenrotate 1" to rotate 90deg for example
@Langerz82
Langerz82 / rotate_emu_station.sh
Last active June 27, 2025 04:54
emuelec - rotate_emu_station.sh
#!/bin/bash
# ABOUT - Rotate EmulationStation by overriding the service and applying the screen rotation argument.
# CREDITS - https://www.github.com/Langerz82 - Joshua L - 2025.
# WARNING - Use at your own risk.
# copy to /emuelec/bin and "chmod +x rotate_emu_station.sh" to allow script to execute.
# type in: "rotate_emu_station.sh 0" to restore rotation
# type in: "rotate_emu_station.sh 1" to rotate 90deg
# type in: "rotate_emu_station.sh 2" to rotate 180deg
@Langerz82
Langerz82 / rr_audio.sh
Created June 25, 2025 05:54
Emuelec - test - rr_audio.sh - volume bug
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2018-present Frank Hartung ([email protected])
# Modifications by Shanti Gilbert ([email protected]) to work on EmuELEC Copyright (C) 2019-present
. /etc/profile
# Set common paths and defaults
export PULSE_RUNTIME_PATH=/run/pulse
RR_AUDIO_DEVICE="hw:$(get_ee_setting ee_audio_device)"
[ ${RR_AUDIO_DEVICE} = "hw:" ] && RR_AUDIO_DEVICE="hw:0"
@Langerz82
Langerz82 / setres.sh
Created January 1, 2025 07:39
linux setres Amlogic-ne bypass
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2019-present Shanti Gilbert (https://github.com/shantigilbert)
# Copyright (C) 2022-present Joshua L (https://github.com/Langerz82)
# Read the video output mode and set it for emuelec to avoid video flicking.
# This file sets the hdmi output and frame buffer to the argument in pixel width.
# Allowed argument example ./setres.sh 1080p60hz <-- For height 1080 pixels.
@Langerz82
Langerz82 / format.js
Created December 7, 2024 15:25
landofmana - server pakcet format checker
var _ = require('underscore');
var Types = require('../shared/js/gametypes');
(function () {
FormatChecker = Class.extend({
init: function () {
this.formats = {};
this.usernameMax = 16;
this.playerMax = 16;
@Langerz82
Langerz82 / emuelec-libretro-cores-bumper.sh
Created November 5, 2024 17:45
EmuELEC - script for obtaining latest libretro cores file.
#!/bin/bash
rm -r source
mkdir -p ./source
for i in `find -type d -maxdepth 1 -mindepth 1`; do
DIRNAME="${i:2}"
DIRNAME="${DIRNAME%/}"
SITE=$(cat ./${DIRNAME}/package.mk | grep PKG_SITE= | cut -d'"' -f2)
[[ -z "${SITE}" ]] && continue