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
// Force Intel GPUs into max power state on macOS | |
// Based off decompilation of Apple's MTLReplayer GTPMService.xpc | |
// clang++ -std=c++17 -O3 -framework IOKit IntelForceHighPower.cpp -o IntelForceHighPower | |
#include <cstdio> | |
#include <optional> | |
#include <IOKit/IOKitLib.h> | |
enum AGPMType { | |
AGPMTypeIG = 2, |
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
#include <stdio.h> | |
#include <vector> | |
#include <string> | |
#include <iconv.h> | |
#include <filesystem> | |
static const iconv_t iconv_toutf = iconv_open("UTF-8", "CP932"); | |
static std::string iconv_convert(const char* src, size_t len, iconv_t conv) { | |
std::string out; | |
char buffer[512]; |
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 ruby | |
require "pathname" | |
$cwd = Pathname::new(".").expand_path | |
ARGV.each do |fname| | |
begin | |
path = Pathname::new(fname).expand_path | |
parent = path.parent |
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 ruby | |
require "fileutils" | |
require "nokogiri" | |
require "optparse" | |
require "pathname" | |
$absolutes = [] | |
parser = OptionParser.new do |opts| |
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
#include <string.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
extern "C" size_t test(size_t amt); | |
template <size_t Len, size_t Iters> | |
struct Tester { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>GSdx Shuffle Planner</title> | |
</head> | |
<body> | |
<textarea id="input" oninput="refresh()"></textarea> | |
<table id="SrcID"></table> | |
<table id="DstID"></table> | |
<p> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>GS Memory Swizzle Visualizer</title> | |
<style> | |
.label { | |
text-align: center; | |
font-family: Menlo, Consolas, "DejaVu Sans Mono", monospace; | |
} | |
.pixel { |
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
#include <stdint.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <getopt.h> | |
#include <opus/opus.h> | |
struct NXAHeader { | |
uint8_t magic[4]; | |
uint32_t version; |
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
import unitypack | |
import unitypack.utils | |
import collections | |
import sys | |
import os | |
from unitypack.engine.texture import TextureFormat | |
from PIL import ImageOps | |
ASTC_MAP = { | |
TextureFormat.ASTC_RGB_4x4: (0x93B0, 0x1907), |
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
// Reads the list of syscall functions from a PSP rom and marks them in Ghidra | |
//@author TellowKrinkle | |
//@category PSP | |
import java.util.Map; | |
import java.util.HashMap; | |
import ghidra.app.script.GhidraScript; | |
import ghidra.program.model.util.*; | |
import ghidra.util.exception.InvalidInputException; | |
import ghidra.program.model.reloc.*; |
NewerOlder