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
// | |
// Author: | |
// Tyler Kenendy <[email protected]> | |
// | |
// Copyright (c) 2010, Tyler Kennedy | |
// | |
// All rights reserved. | |
// | |
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | |
// |
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
# Table of types for packet definitions as well as their size | |
smp_fields = { | |
# Standard types | |
'byte' : ['b', 1], | |
'bool' : ['?', 1], | |
'short' : ['h', 2], | |
'int' : ['i', 4], | |
'float' : ['f', 4], | |
'double' : ['d', 8], | |
'long' : ['q', 8], |
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
class Auth(object): | |
"""Provides an interface to services provided by minecraft.net""" | |
def __init__(self, username, password): | |
self.username = username | |
self.password = password | |
self.launcher_ver = 999999999 | |
def _get_version(self): | |
from urllib import urlopen |
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
class Auth(object): | |
"""Provides an interface to services provided by minecraft.net""" | |
def __init__(self, username, password): | |
self.username = username | |
self.password = password | |
self.launcher_ver = 999999999 | |
def _get_version(self): | |
from urllib import urlopen |
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
{% extends "base.html" %} | |
{% block body %} | |
<h1>{{ msg }}</h1> | |
<p>{{ _("Go") }} <a href="{{ link }}">{{ label }}.</a></p> | |
{% end %} |
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
void Client::io_callback (ev::io &watcher, int revents) { | |
// Size to expand the buffer on each run | |
static const short buffer_run = 1024; | |
// Data to read | |
if (revents & ev::READ) { | |
// Remember the size of the vector before we change it | |
int old_size = _read_buffer.size(); | |
// Expand the vector |
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
using System; | |
namespace test | |
{ | |
class MainClass | |
{ | |
struct h4x { | |
// Fixed arrays can only be properties of structs | |
unsafe public fixed ushort test[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
tyler@dedi1-server:~/pymy$ ./pymy | |
[1290720172][client] Latest version reported as [1290701545000] by minecraft.net | |
[1290720172][client] There is a new version of the client available. Downloading... | |
[1290720174][client] Client downloaded, temporarily stored in /tmp/tmpYmCOUp.jar | |
[1290720174][client] Jar file has [592] children and is [1101006kb]. | |
[1290720174][client] Extracting jar contents to [/tmp/tmpfxFwHy/client_jar] | |
[1290720174][client] Decompiling... | |
[1290720174][client] Scanning... | |
[1290720174][client] [13] of [592] detected. | |
[1290720174][client] Cleaning up temporary client files... |
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
<?php | |
/* Copyright (c) 2010 Tyler Kennedy, Matvei Stefarov | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* |
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
from joe.jar.jarfile import JarFile | |
if __name__ == "__main__": | |
jar = JarFile('demo/minecraft.jar', 'r') | |
for k,v in jar.attributes(): | |
print k,v |
OlderNewer