This file contains hidden or 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
function modifyCommit -d "Creates a new commit by modifying an old one" | |
argparse --name=modifyCommit "p/parent=+" "c/content=" "C-preserve-committer" "S/gpg-sign=" -- $argv; or return | |
if test (count $argv) != 1 | |
echo "Usage: modifyCommit [-p parent] [--preserve-committer] [--content content] commitHash" | |
echo "Got " $argv | |
return 1 | |
end | |
set commit $argv[1] |
This file contains hidden or 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 Foundation | |
guard CommandLine.arguments.count > 2 else { | |
print("Usage: \(CommandLine.arguments[0]) data.rom outputFolder") | |
exit(EXIT_FAILURE) | |
} | |
let outputPath = CommandLine.arguments[2] | |
func fileInfo(path: String) -> (exists: Bool, isDirectory: Bool) { | |
var isDir: ObjCBool = false |
This file contains hidden or 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.*; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |