Skip to content

Instantly share code, notes, and snippets.

View CrazyCoder's full-sized avatar

Serge Baranov CrazyCoder

View GitHub Profile
@CrazyCoder
CrazyCoder / add_files_from_require_paths.patch
Created May 24, 2011 23:50
Patch for Ocra issue #26 (Gem files not detected correctly with recent RubyGems)
Index: bin/ocra
===================================================================
--- bin/ocra (revision 2cb11c915af52197f90abd944d84219305d8c602)
+++ bin/ocra (revision )
@@ -181,7 +181,7 @@
IGNORE_GEMFILES = %r{(
# Auxiliary files in the root of the gem
- ^(\.\/)?(History|Install|Manifest|README|Licen[sc]e|Contributors|ChangeLog|BSD|GPL).*$ |
+ ^(\.\/)?(History|Install|Manifest|README|CHANGES|Licen[sc]e|Contributors|ChangeLog|BSD|GPL).*$ |
@CrazyCoder
CrazyCoder / hex2bin.c
Created November 23, 2010 11:24
Extracts pl3 and hermes payloads from psgroove hex files (to be used in psfreedom)
static const char *PL_START = "000000000000FACEB003AABBCCDD";
static const char *PL3_START = "505347726F6F7665";
static const char *PL3_END = "1201000200000008AAAABBBB";
unsigned int PL_SIZE = 3822;
int hex2bin(char *hex_file, char *bin_file) {
FILE *infile, *outfile;
char line[100];
char buffer[50*1024];
char outc = 0;
@CrazyCoder
CrazyCoder / hex2bin.pl
Created November 23, 2010 10:44
Extracts pl3 and hermes payloads from psgroove hex files (to be used in psfreedom)
#!/usr/bin/perl
use strict;
my $VERSION = '1.0';
my $PL_START = "000000000000FACEB003AABBCCDD";
my $PL3_START ="505347726F6F7665";
my $PL3_END = "1201000200000008AAAABBBB";
my $PL_SIZE = 3822;
my $in;