Skip to content

Instantly share code, notes, and snippets.

@substring
substring / step1.sh
Last active August 20, 2022 12:57
Lazy Arch Linux UEFI install
ls /sys/firmware/efi/efivars
timedatectl set-ntp true
disk=/dev/sda
wipefs --all --force $disk
sgdisk $disk -o > /dev/null
sgdisk $disk -n 1::+512MiB -t 1:EF00
sgdisk $disk -n 2::+2GiB -t 2:8200
sgdisk $disk -n 3 -t 3:8304
mkfs.ext4 /dev/sda3
mkfs.fat -F 32 /dev/sda1
From 1e687457dcced7b5a3082edaf17d21fd5a25750d Mon Sep 17 00:00:00 2001
From: Substring <frog2wah@gmail.com>
Date: Fri, 11 Mar 2022 14:38:32 +0100
Subject: [PATCH] Fix examples linking errors
---
examples/CMakeLists.txt | 4 +++-
examples/window/CMakeLists.txt | 2 +-
src/SFML/Window/CMakeLists.txt | 6 +++---
src/SFML/Window/EglContext.cpp | 2 +-
@substring
substring / README.md
Created April 8, 2020 10:06
Switchres readme

What is Switchres 2.0

Switchres is a C++ library dedicated to CRT low resolutions switching.

It's main purpose is, based on a monitor profile, provide the best possible resolution given a height, width and refresh rate.

Switchres 2.0 is a rewrite of the original switchres code used in GroovyMAME. It currently supports mode switching on the following OS with their respective backends:

  • Windows:
    • powerstrip
    • ADL
    • ATI cards
ODROIDXU-UBOOT-CONFIG
# U-Boot Parameters (DO NOT MODIFY)
setenv version 3.10
setenv zimage zImage
setenv fdtbin exynos5422-odroidxu3.dtb
# --- Screen Configuration for HDMI --- #
# ---------------------------------------
# Uncomment only ONE line! Leave all commented for automatic selection.
@substring
substring / resolution.sh
Created November 7, 2016 13:48
Use mame resolution.ini to get rom's resolution
#!/bin/bash
if [ ! -f "resolution.ini" ] ; then
wget -nv http://www.progettosnaps.net/renameset/packs/pS_resolution.zip -O resolutions.zip
unzip -p resolutions.zip folder/resolution.ini | dos2unix > resolution.ini
rm resolutions.zip
fi
ROM=`basename "$1" .zip`
################################################################################
#
#advancemame
#
################################################################################
#latest
#ADVANCEMAME_VERSION = 339eab5a4b19a614b53efee2d62015c758694a4f
#ADVANCEMAME_SITE = $(call github,amadvance,advancemame,$(ADVANCEMAME_VERSION))
customCfg = "/recalbox/share/system/configs/retroarch/{}.cfg".format(system.name)
if os.path.isfile(customCfg):
commandArray = [recalboxFiles.retroarchBin, "-L", retroarchCore, "--config", system.config['configfile'], "--append", customCfg, rom]
else:
commandArray = [recalboxFiles.retroarchBin, "-L", retroarchCore, "--config", system.config['configfile'], rom]
return Command.Command(videomode=system.config['videomode'], array=commandArray)
# Import socket module
import socket
# Create a socket object
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
# Define the port on which you want to connect
port = 55355
# connect to the server on local computer
@substring
substring / gist:e473f24275f25a23cd3ba3c797df74b1
Last active April 25, 2016 15:41
recalbox.conf for API
# System Variable
# You can configure your recalbox from here
# To set a variable, remove the first ; on the line
# ------------ A - System Options ----------- #
## Available powerboards
# Values:
# ATX_RASPI_R2_6: http://lowpowerlab.com/atxraspi/#installation
################################################################################
#
# REICAST
#
################################################################################
REICAST_VERSION = 0a1689cb40753d7c4ec572304f9de57ae76897d8
REICAST_SITE = $(call github,reicast,reicast-emulator,$(REICAST_VERSION))
REICAST_INSTALL_STAGING = NO
REICAST_DEPENDENCIES = sdl2 libpng