Skip to content

Instantly share code, notes, and snippets.

View ahmetabdi's full-sized avatar
:shipit:

Ahmet ahmetabdi

:shipit:
View GitHub Profile
{ Game : Client.exe
Version:
Date : 2016-01-16
Author : Strixx
This script does blah blah blah
}
[ENABLE]
@ahmetabdi
ahmetabdi / Program.cs
Created February 8, 2016 13:21
DLL to byte [], byte [] to String, String to byte []
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.IO;
namespace ConsoleApplication
{
public class Program
{
(DWORD)GetProcAddress(LoadLibrary("kernel32.dll"), "QueryPerformanceCounter");
(DWORD)GetProcAddress(LoadLibrary("kernel32.dll"), "GetTickCount");
@ahmetabdi
ahmetabdi / gist:7e3d9d9b1671dea3ea60
Created February 20, 2016 22:35
Odeon API Notes
seating_data = "113|120|120|20|20|1|0|114|2;114|140|120|20|20|1|113|115|2;115|160|120|20|20|1|114|116|2;116|180|120|20|20|1|115|117|2;117|200|120|20|20|1|116|118|2;118|220|120|20|20|1|117|119|2;119|240|120|20|20|1|118|120|2;120|260|120|20|20|1|119|121|2;121|280|120|20|20|1|120|122|2;122|300|120|20|20|1|121|123|2;123|320|120|20|20|1|122|124|2;124|340|120|20|20|1|123|125|2;125|360|120|20|20|1|124|126|2;126|380|120|20|20|1|125|127|2;127|400|120|20|20|4|126|128|2;128|420|120|20|20|4|127|129|2;129|440|120|20|20|4|128|130|2;130|460|120|20|20|4|129|0|2;131|120|140|20|20|1|0|132|2;132|140|140|20|20|1|131|133|2;133|160|140|20|20|1|132|134|2;134|180|140|20|20|1|133|135|2;135|200|140|20|20|1|134|136|2;136|220|140|20|20|1|135|137|2;137|240|140|20|20|1|136|138|2;138|260|140|20|20|1|137|139|2;139|280|140|20|20|1|138|140|2;140|300|140|20|20|1|139|141|2;141|320|140|20|20|1|140|142|2;142|340|140|20|20|1|141|143|2;143|360|140|20|20|1|142|144|2;144|380|140|20|20|1|143|145|2;145|400|140|20|20|1|144|146|2;146|420|140|20|20|1|145|
witch( Main.m_pCheatCvars->esp_optical.Getint() )
{
case 1:
FILLRGBA( vHeadScreen.x, vHeadScreen.y, 6, 6, 255, 255, 255, 255 );
Main.m_pDraw->OutlineArea( vHeadScreen.x, vHeadScreen.y, 6, 6, 0, 0, 0, 255 );
break;
case 2:
Main.m_pMatSurface->DrawSetColor( RGBA( TEAM_COLOR ) );
Main.m_pMatSurface->DrawOutlinedCircle( vHeadScreen.x, vHeadScreen.y, 10, 10 );
break;
@ahmetabdi
ahmetabdi / debug.rb
Last active April 21, 2016 12:48
Rails Debugging
# Figure out where a method was defined
object = Object.new
puts object.method(:blank?).source_location
=> ["/gems/activesupport-5.0.0.beta1/lib/active_support/core_ext/object/blank.rb", 14]
# Opening a dependency from a project
$ bundle open active_support
# Un-debug a gem
gem pristine activesupport
'.platform-darwin atom-text-editor':
'cmd-e': 'unset!'
'cmd-e': 'symbols-view:go-to-declaration'
'cmd-b': 'unset!'
'cmd-b': 'beautify:beautify-editor'
'cmd-r': 'unset!'
'cmd-r': 'rails-rspec:toggle-spec-file'
'cmd-left': 'unset!'
'cmd-left': 'editor:move-to-beginning-of-word'
'cmd-right': 'unset!'
#include "Hook.h"
#include <D3DX11.h>
#include <Shlobj.h>
#include "MenuRenderer.h"
#include "Logger.h"
typedef HRESULT(WINAPI*D3D11CREATEPROC)(IDXGIAdapter*, D3D_DRIVER_TYPE, HMODULE, UINT, D3D_FEATURE_LEVEL*, UINT, UINT, DXGI_SWAP_CHAIN_DESC*, IDXGISwapChain**, IUnknown**, D3D_FEATURE_LEVEL*, IUnknown**);
HMODULE hD3D11Dll = NULL;
class OrdersController < ApplicationController
before_action :set_order, only: [:show, :edit, :update, :destroy]
# GET /orders
# GET /orders.json
def index
@orders = Order.all
end
# GET /orders/1
#include <vector>
#include <windows.h>
#include <detours.h>
#include <iostream>
#include <d3d9.h>
#include <d3dx9.h>
#pragma comment(lib, "detours.lib")
#pragma comment(lib, "d3d9.lib")
#pragma comment(lib, "d3dx9.lib")