Skip to content

Instantly share code, notes, and snippets.

@bartku
bartku / gist:1046488
Created June 25, 2011 13:31
Logs functions names called by ProcessRemoteFunction
#include "stdafx.h"
#include <detours.h>
#include <tchar.h>
#pragma comment(lib, "detours.lib")
#pragma comment(lib, "detoured.lib")
// ?ProcessRemoteFunction@AActor@@UAEHPAVUFunction@@PAXPAUFFrame@@@Z
// public: virtual int __thiscall AActor::ProcessRemoteFunction(class UFunction *,void *,struct FFrame *)
/*=============================================================================
UCC.cpp: Unreal command-line launcher.
Copyright 1997-1999 Epic Games, Inc. All Rights Reserved.
Revision history:
* Created by Tim Sweeney.
=============================================================================*/
#if WIN32
#include <windows.h>
@bartku
bartku / gist:1059394
Created July 1, 2011 21:04
.zshrc for FreeBSD
setopt AUTO_CD
setopt PRINT_EXIT_VALUE
setopt HIST_IGNORE_ALL_DUPS
HISTFILE=~/.zshhistfile
HISTSIZE=1500
SAVEHIST=1500
zstyle ':completion:*' completer _complete _ignored
zstyle ':completion:*' matcher-list 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'r:|[._-]=* r:|=*'
@bartku
bartku / gist:1104817
Created July 25, 2011 18:34
Logs users joining server (name, IP, GUID, MAC, experience points)
#include "stdafx.h"
#include "misc.h"
#include <detours.h>
#include <tchar.h>
#pragma comment(lib, "detours.lib")
#pragma comment(lib, "detoured.lib")
struct player_data {
FString guid;
@bartku
bartku / gist:2419852
Created April 19, 2012 08:59
world of tanks api
Searching players:
http://worldoftanks.eu/community/accounts/api/%API_VER%/?source_token=%TOKEN%&search=%NAME%&offset=0&limit=1
Showing player's stats:
http://worldoftanks.eu/community/accounts/%PLAYER_ID%/api/%API_VER%/?source_token=%TOKEN%
Showing player's stats from past:
http://dava2.worldoftanks.com/userstats/2/stats/slice/?platform=android&server=eu&account_id=%PLAYER_ID%&hours_ago=24&hours_ago=168&hours_ago=336
@bartku
bartku / gist:2471018
Created April 23, 2012 13:47
xvm-stats proxy
#!/usr/bin/env python
from eventlet.green import urllib2
import eventlet
import json
import web
import time
urls = ('/u/(.*)', 'index')
@bartku
bartku / wot-stats.gnuplot
Created November 14, 2012 12:02
GNUPlot script for WoT efficiency
# shows efficiency with max and min
# data in format:
# a,b,c
set term svg enhanced mouse size 900,600
set output "eff-2012-11-14.svg"
set title "Efficiency"
set ylabel "Eff"
@bartku
bartku / gist:4271798
Last active January 31, 2024 01:05
Unofficial description of unofficial World of Tanks API

World of Tanks unofficial API

World of Tanks, popular MMO game about tanks from time around WWII, has some nice mobile application called Wot Assistant (available also at AppStore and MS Marketplace). With simple packet sniffing you can guess how it retrieves players' statistics.

Surprisingly, mobile application uses quite simple API over HTTP which serves data in JSON, which is great help for people interested in creating own applications handling statistical data in game.

At this moment here is list of API features that has been discovered:

  • searching players by names
  • searching clans by names
@bartku
bartku / clan-cw-tanks.py
Created February 28, 2013 14:48
Print CW ready tanks owned by given clan. ./clan-cw-tanks.py ID
import json
import requests
import grequests
import sys
from prettytable import PrettyTable
if len(sys.argv) != 2:
print("Missing clan ID")
sys.exit
@bartku
bartku / portal-action-time.user.js
Created July 20, 2017 09:18
Tampermonkey plugin for IITC to show last action on selected portal
// ==UserScript==
// @id iitc-plugin-action-time@eumir
// @name IITC plugin: show action time on portal
// @category Info
// @version 0.5.7.@@DATETIMEVERSION@@
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @updateURL @@UPDATEURL@@
// @downloadURL @@DOWNLOADURL@@
// @description [@@BUILDNAME@@-@@BUILDDATE@@] Shows action time (recharged reso, captured portal, created link/field) on given portal
// @include https://*.ingress.com/intel*