Skip to content

Instantly share code, notes, and snippets.

@masterzorag
masterzorag / cooling_policy
Created September 26, 2017 10:56
A simple bash script to get/set thermal cooling policy for each cpu
#!/bin/sh
# For all cpus, just report current states if no argument is passed
NCPU=$((`grep -c '^processor' /proc/cpuinfo`))
if [ $# -lt 1 ];
then
MAX=$((`cat /sys/devices/virtual/thermal/cooling_device0/max_state`))
echo "Current cooling policy for $NCPU cpus: [0-$MAX]"
for (( i=0; i<$NCPU; i++ ))
@saibotu
saibotu / rpwng.md
Last active September 1, 2017 23:31
RPwnG Codes

Codes are getting deleted too fast

I won't update this list anymore

@refi64
refi64 / config.rst
Last active April 23, 2023 14:24
Configuring evdev RPCS3 joysticks

Configuring evdev RPCS3 joysticks

The evdev joystick code in RPCS3 is primarily designed to use XBox controllers by default. For other controllers, you'll probably need to make a few changes.

The config file

Configuration is stored in $HOME/.config/rpcs3/config_linuxjoystick.yml. The easiest way to test your joystick is with the PS3 Game Pad Test homebrew.

@SciresM
SciresM / switch_romfs.py
Created July 19, 2017 01:10
Switch RomFS (IStorage) -> Files
from struct import unpack as up
import sys, os
dirs, files = None, None
def read_at(fp, off, len):
fp.seek(off)
return fp.read(len)
def read_u8(fp, off):
from struct import unpack as up
import sys, os, hashlib
dirs, files = None, None
def read_at(fp, off, len):
fp.seek(off)
return fp.read(len)
def read_u8(fp, off):
import os, sys
from struct import unpack as up
pkm_lst = ['Egg', 'Bulbasaur', 'Ivysaur', 'Venusaur', 'Charmander', 'Charmeleon', 'Charizard', 'Squirtle', 'Wartortle', 'Blastoise', 'Caterpie', 'Metapod', 'Butterfree', 'Weedle', 'Kakuna', 'Beedrill', 'Pidgey', 'Pidgeotto', 'Pidgeot', 'Rattata', 'Raticate', 'Spearow', 'Fearow', 'Ekans', 'Arbok', 'Pikachu', 'Raichu', 'Sandshrew', 'Sandslash', 'Nidoran-F', 'Nidorina', 'Nidoqueen', 'Nidoran-M', 'Nidorino', 'Nidoking', 'Clefairy', 'Clefable', 'Vulpix', 'Ninetales', 'Jigglypuff', 'Wigglytuff', 'Zubat', 'Golbat', 'Oddish', 'Gloom', 'Vileplume', 'Paras', 'Parasect', 'Venonat', 'Venomoth', 'Diglett', 'Dugtrio', 'Meowth', 'Persian', 'Psyduck', 'Golduck', 'Mankey', 'Primeape', 'Growlithe', 'Arcanine', 'Poliwag', 'Poliwhirl', 'Poliwrath', 'Abra', 'Kadabra', 'Alakazam', 'Machop', 'Machoke', 'Machamp', 'Bellsprout', 'Weepinbell', 'Victreebel', 'Tentacool', 'Tentacruel', 'Geodude', 'Graveler', 'Golem', 'Ponyta', 'Rapidash', 'Slowpoke', 'Slowbro', 'Magnemite', 'Magneton', 'Fa

Here's the canonical TOML example from the TOML README, and a YAML version of the same. Which looks nicer?

title = "TOML Example"

[owner]

May 29 23:03:04 <Mrrraou> just because you have access to tools (which are incomplete, unconvenient to use and/or buggy) doesn't mean you have to use them
May 29 23:03:24 <TuxSH> which tools?
May 29 23:03:32 <Mrrraou> qlutoo: why not (they're quite rethorical questions actually)
May 29 23:03:47 * PistonMin has quit (Read error: Operation timed out)
May 29 23:03:55 <Mrrraou> the ones talked about earlier? lol
May 29 23:04:23 <TuxSH> Rosalina "incomplete, unconvenient to use and/or buggy"?
May 29 23:04:28 <TuxSH> hahahahahahahahahahahahahahahahahahahahahahahaha
May 29 23:05:01 <Yami> I don't think this bickering is going to help anyone
May 29 23:05:13 <Mrrraou> it's not
May 29 23:05:16 <Mrrraou> my point was
@sirocyl
sirocyl / Finalizing-Setup-Safely-20170526.md
Created May 27, 2017 04:19
3ds.guide "Finalizing Setup" step, with ban-avoidance in mind. (Current as of 2017-05-26)

Finalizing Setup

Overview of steps

The file boot.firm is what is launched by boot9strap itself after it finishes loading off of NAND, and can be any valid arm9 payload in the FIRM format. This file can be replaced at any time, although Luma3DS allows for the launch of other arm9 payloads in the FIRM format using the Luma3DS chainloader.

In this case, we use Luma3DS by AuroraWright to boot a patched SysNAND directly, allowing us to completely bypass the need for any kind of EmuNAND, vastly simplifying the usage of a hacked 3DS in addition to saving SD card space.

During this process, we also setup programs such as the following: