Skip to content

Instantly share code, notes, and snippets.

{
"title": "New! 255 Server slot",
"version": 1,
"author": "500 Internal Server Error",
"target": "/data/data/com.mojang.minecraftpe/lib/libminecraftpe.so",
"root": true,
"initial": {
"cd110": ["4"],
"1b757b": ["4d", "6f", "6a", "61", "6e", "67", "20", "41", "42"]
},
@gitbuh
gitbuh / jcc.pl
Last active October 13, 2015 04:08
JIRA command-line client.
#!/usr/bin/perl
# jcc: JIRA command-line client.
# http://docs.atlassian.com/jira/REST/latest/
use Data::Dumper;
use DateTime::Format::Strptime;
use DateTime::Format::Duration;
use IO::Socket::SSL;
@gitbuh
gitbuh / Makefile
Created September 13, 2012 08:02
qpdiff
all : dist/x86/qpdiff dist/arm/qpdiff
dist/x86/qpdiff :
g++ -Wall -Wextra -pedantic src/qpdiff.cpp -o dist/x86/qpdiff
dist/arm/qpdiff :
arm-linux-gnueabi-g++ -Wall -Wextra -pedantic src/qpdiff.cpp -o dist/arm/qpdiff
clean :
rm dist/x86/qpdiff dist/arm/qpdiff
@gitbuh
gitbuh / quickpatch.js
Created June 19, 2012 18:46
Quick Patch v0.0.3 pre-alpha
(function(){
// sl4a http://code.google.com/p/android-scripting/wiki/ApiReference
// rhino https://developer.mozilla.org/en/Rhino_Shell#Predefined_Properties
// java.io http://docs.oracle.com/javase/6/docs/api/java/io/package-summary.html
var GLOBAL = (function () { return this || (0, eval)('this'); }());
// EXPORTS
@gitbuh
gitbuh / vip.md
Created June 16, 2012 18:02
VIP - Verbose Interactive Patch

VIP - Verbose Interactive Patch Format

Introduction

This document describes a preliminary version of a text-based file format designed for small patches to binary files. The format is derived from JSON. Readers are invited to comment and help shape its direction.

Purpose

Having the ability to make small patches to binary files can be valuable in situations where a user needs to make changes to a program, particularly to hard-coded strings or "magic numbers," but does not have access to the source code.

@gitbuh
gitbuh / at.js
Last active October 3, 2015 07:58
AT - Atrocious Templates
/**
Atrocious Templates
*/
var at = (function(){
var rTemplate = /<@@\s*(.*?)>((?:[\w\W](?!<@@))*?)<\/@@>/gm,
rOption = /<@\s*(.*?)>([\w\W]*?)<\/@>/gm,
rValue = /\{@(.*?)\}/g,
@gitbuh
gitbuh / getSelectedElements.js
Created April 18, 2012 21:32
Get elements in user selection
/*
Get elements in user selection.
- Define SelectionLikeObject as a DOM Selection or an IE Selection.
- Define RangeLikeObject as a DOM Range or an IE TextRange.
@gitbuh
gitbuh / gist:2314192
Created April 5, 2012 21:11
Simple static resource loader for JS / CSS files
<?php
/**
Simple static resource loader for JS / CSS files.
*/
class ResourceLoader {
public static $css;
public static $js;