Skip to content

Instantly share code, notes, and snippets.

View xerpi's full-sized avatar

Sergi Granell・セルジ xerpi

View GitHub Profile
#!/bin/bash
if [ "$#" -lt 1 ]; then
echo -e "Usage:\n\t$0 SceFoo_0xXXXXXXXX_segY.bin"
exit 1
fi
if [[ -z "${VITA_DB_YML}" ]]; then
echo "Error: db.yml file not found, make sure to set VITA_DB_YML."
exit 1
#include <stdio.h>
#include <string.h>
#include <taihen.h>
#include <psp2kern/kernel/modulemgr.h>
#include <psp2kern/kernel/threadmgr.h>
#include <psp2kern/kernel/sysmem.h>
#include <psp2kern/io/fcntl.h>
#define DUMP_PATH "ux0:dump/"
#define LOG_FILE DUMP_PATH "kplugin_log.txt"
/*
* wikinidparser by xerpi
* Usage:
* - hxpipe SceFoo > SceFoo_piped
* - ./wikinidparser SceFoo_piped
*/
#include <stdlib.h>
#include <fstream>
#include <sstream>
/*
* vitajsonlinker by xerpi
* - ./vitajsonlinker db1.json [db2.json, ...]
*/
#include <string>
#include <list>
#include <iostream>
#include <jansson.h>
#!/bin/bash
if [ "$#" -lt 1 ]; then
echo -e "Usage:\n\t$0 directory"
exit 1
fi
if [ -z "$VITASDK" ]; then
echo -e "Error: VITASDK is not set."
exit 1
#!/bin/bash
sudo apt-get install -y git autoconf gperf bison flex texinfo \
help2man gawk libncurses5-dev
git clone https://github.com/crosstool-ng/crosstool-ng.git
pushd crosstool-ng
./bootstrap
./configure
#!/bin/bash
BOOT_MOUNT=$RPI_BOOT_MOUNT
ROOT_MOUNT=$RPI_ROOT_MOUNT
KERNELVERSION=`make ARCH=arm kernelrelease 2> /dev/null`
KERNELFILENAME="kernel_$KERNELVERSION.img"
#DEFCONFIG=bcm2709_defconfig
DEFCONFIG=multi_v7_defconfig
DTB=bcm2837-rpi-3-b.dtb
#!/bin/bash
CROSS_COMPILE=arm-linux-gnueabihf
PREFIX=$PWD/build
export CPATH=$PREFIX/include
export LIBRARY_PATH=$PREFIX/lib
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig
export PKG_CONFIG_DIR=
export PKG_CONFIG_LIBDIR=$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig
#!/bin/bash
JOBS=4
sudo pacman --needed -S base-devel gcc git make autoconf automake pkgconfig libxml2 \
libinput libunwind mesa mesa-libgl libxcursor cairo-xcb libxkbcommon
git clone git://anongit.freedesktop.org/wayland/wayland
pushd wayland
./autogen.sh --prefix=$WLD --disable-documentation
#Raspberry Pi mount
export PI_SSHFS_MOUNT=/mnt/pi
export PI_IP=192.168.1.130
alias pimount='sshfs alarm@$PI_IP:/ $PI_SSHFS_MOUNT'
alias piumount='fusermount -u $PI_SSHFS_MOUNT'