Skip to content

Instantly share code, notes, and snippets.

template <typename... Args>
class Delegate {
typedef std::function<void(Args...)> ListenerFunc;
/**
* A Handle object represents a single listener in the delegate
*/
struct Handle {
static inline std::atomic_int global_id_ = 0;
#include <iostream>
const char *vehicleNames[] = {"Landstalker", "Bravura", "Buffalo", "Linerunner", "Perennial", "Sentinel", "Dumper", "Fire Truck", "Trashmaster", "Stretch", "Manana",
"Infernus", "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam", "Esperanto", "Taxi", "Washington", "Bobcat",
"Mr. Whoopee", "BF Injection", "Hunter", "Premier", "Enforcer", "Securicar", "Banshee", "Predator", "Bus", "Rhino", "Barracks", "Hotknife",
"Trailer 1", "Previon", "Coach", "Cabbie", "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral", "Squalo",
"Seasparrow", "Pizzaboy", "Tram", "Trailer 2", "Turismo", "Speeder", "Reefer", "Tropic", "Flatbed", "Yankee", "Caddy", "Solair",
"Berkley's RC Van", "Skimmer", "PCJ-600", "Faggio", "Freeway", "RC Baron", "RC Raider", "Glendale", "Oceanic", "Sanchez", "Sparrow", "Patriot",
"Quadbike", "Coastg
function Launch-App {
param(
[parameter(mandatory = $true)][ValidateNotNullOrEmpty()][string[]]$appname,
[switch] $admin
)
$apps = (New-Object -Com Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items()
if ($apps) {
$count = 0
foreach ($app in $apps) {
if ($app.Name -like $appname) {
@Razzile
Razzile / user_profile.ps1
Last active November 2, 2019 13:03
My powershell configuration
# Use this file to run your own startup commands
## Prompt Customization
<#
.SYNTAX
<PrePrompt><CMDER DEFAULT>
λ <PostPrompt> <repl input>
.EXAMPLE
<PrePrompt>N:\Documents\src\cmder [master]
λ <PostPrompt> |
@Razzile
Razzile / writeData.h
Last active January 21, 2022 21:03
writeData using MSHookMemory as a backend for iOS 12
//**************************************************//
//**This Header File is used in combination********//
//**with a dynamic Library and must be rewritten**//
//**if you want to use it for another purpose****//
//**********************************************//
//******************************************//
//**Credits: HackJack & Razzile(Kamizoom)**//
//****************************************//
This file has been truncated, but you can view the full file.
image mscorlib.dll
class <Module>
class Object
Object::.ctor
Object::Equals
Object::Equals
Object::Finalize
Object::GetHashCode
Object::GetType
Object::MemberwiseClone
# OS X compile stuff
_PLATFORM_CLANG = clang
ifneq ($(_THEOS_PLATFORM_ARCH),Darwin-i386)
_OSX_SDK_DIR := $(THEOS)/sdks
_OSX_SDKS := $(sort $(patsubst $(_SDK_DIR)/MacOSX%.sdk,%,$(wildcard $(_SDK_DIR)/MacOSX*.sdk)))
ifeq ($(words $(_OSX_SDKS)),0)
_OSX_NO_SDK = 1
endif
_OSX_LATEST_SDK := $(lastword $(_OSX_SDKS))
_OSX_SYSROOT = --sysroot $(THEOS)/sdks/MacOSX$(_OSX_LATEST_SDK).sdk
export TARGET = native:clang:latest
findfiles = $(foreach ext, c cpp m mm x xm xi xmi, $(wildcard $(1)/*.$(ext)))
include $(THEOS)/makefiles/common.mk
TOOL_NAME = ghetto_hook
ghetto_hook_FILES = $(call findfiles,src)
include $(THEOS_MAKE_PATH)/tool.mk

Keybase proof

I hereby claim:

  • I am razzile on github.
  • I am satori101 (https://keybase.io/satori101) on keybase.
  • I have a public key ASCC2jhegoe6ss0--kVWxzqx5Mi9_tRg5MI-N6ByLnp6mQo

To claim this, I am signing this object:

i> 00007C70 Build: master / b696c645f51c435abb21a83369e59d8426504e03 on Feb 1 2016
i> 0000770C Successfully created OpenGL context:
i> 0000770C GL_VENDOR: NVIDIA Corporation
i> 0000770C GL_VERSION: 4.5.0 NVIDIA 359.00
i> 0000770C GL_RENDERER: GeForce GTX 770/PCIe/SSE2
i> 0000770C GL_SHADING_LANGUAGE_VERSION: 4.50 NVIDIA
w> 0000770C Unable to load japanese font; jp characters will be boxes
i> 00007C70 XThread00000004 (1) Stack: 40010000-40030000
i> 00007C70 XThread00000008 (2) Stack: 40050000-40070000
K> 00000004 XThread::Execute thid 1 (handle=00000004, 'GraphicsSystem Command Processor (00000004)', native=000028D8, <host>)