Skip to content

Instantly share code, notes, and snippets.

View Langerz82's full-sized avatar

Joshua L Langerz82

View GitHub Profile
@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
@Langerz82
Langerz82 / midi_template.sh
Last active August 11, 2024 06:18
EmuELEC - Midi Template for Kelv
#!/bin/bash
RA_CFG=/storage/.config/retroarch/retroarch.cfg
set_midi_source()
{
local midi_source=$1
pkill -9 timidity
pkill -9 mt32d
#!/usr/bin/python -u
################################################################################
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2023-present ebeem (https://github.com/ebeem)
# Modifications made by:
# Langerz82 (https://github.com/Langerz82)
# wang80919 (https://github.com/wang80919)
# Testing done by:
# junm6802030 (https://github.com/junm6802030)