This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# encoding: utf-8 | |
# Copyright (C) 2024 John Törnblom | |
# | |
# This program is free software; you can redistribute it and/or modify it | |
# under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, but |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
PS5_HOST=ps5 | |
ELFLDR=https://github.com/john-tornblom/ps5-payload-elfldr/releases/download/release%2Fv0.11/Payload.zip | |
KLOGSRV=https://github.com/john-tornblom/ps5-payload-klogsrv/releases/download/release%2Fv0.3/Payload.zip | |
FTPSRV=https://github.com/john-tornblom/ps5-payload-ftpsrv/releases/download/release%2Fv0.6/Payload.zip | |
SHSRV=https://github.com/john-tornblom/ps5-payload-shsrv/releases/download/release%2Fv0.4/Payload.zip | |
wget -q -O - $ELFLDR | gunzip -c -d | nc -q3 $PS5_HOST 9020 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# encoding: utf-8 | |
# Copyright (C) 2022 John Törnblom | |
import argparse | |
import ctypes.util | |
import logging | |
import os | |
import xml.etree.ElementTree as ET |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# encoding: utf-8 | |
# Copyright (C) 2021 John Törnblom | |
""" | |
Replace literal strings in source code with gettext macro calls. | |
Requires python3 with clang bindings. In ubuntu: | |
sudo apt-get install python3-clang | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Copyright (C) 2021 John Törnblom | |
Parser for gettext MO files, as described on: | |
https://www.gnu.org/software/gettext/manual/html_node/MO-Files.html | |
*/ | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdio.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct dynlib_dynsec { | |
struct { | |
struct dynlib_dynsec *le_next; | |
struct dynlib_dynsec *le_prev; | |
} list_entry; | |
unsigned long handle; //struct sysentvec* ? | |
unsigned int refcount; | |
long size; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import librosa | |
import numpy as np | |
from pathlib import Path | |
import pandas as pd | |
class WaveFile(object): | |
filename = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
msgid "" | |
msgstr "" | |
"Project-Id-Version: \n" | |
"Content-Type: text/plain; charset=UTF-8\n" | |
"X-Poedit-SourceCharset: UTF-8\n" | |
msgid "THE AWAKENING" | |
msgstr "THE AWAKENING" | |
msgid "THE BINDING OF THE THREE" | |
msgstr "THE BINDING OF THE THREE" | |
msgid "THE DARKENING OF TRISTRAM" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Order(object): | |
reverse = False | |
def __init__(self, attrs, reverse=False): | |
self.attrs = attrs | |
self.reverse = reverse | |
def __call__(self, l): | |
return sorted(l, |