Skip to content

Instantly share code, notes, and snippets.

@iscle
iscle / gist:66e946553e74a883b4494d3b6df0ee82
Last active May 8, 2025 02:22
Install python2.7 on Ubuntu 23.04 as "python"
wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz
tar xzf Python-2.7.18.tgz
cd Python-2.7.18
sudo ./configure --enable-optimizations
sudo make altinstall
sudo ln -s "/usr/local/bin/python2.7" "/usr/bin/python"
#[=======================================================================[.rst:
FindPluginSDK
-------------
FindModule for Plugin-SDK library (https://github.com/DK22Pac/plugin-sdk).
COMPONENTS
^^^^^^^^^^
This module respects several components: ``gta3``, ``gtavc``, and ``gtasa``.
@t-mat
t-mat / win32-capture-stack-back-trace.cpp
Created December 15, 2013 22:38
Win32: CaptureStackBackTrace
// CaptureStackBackTrace
// http://msdn.microsoft.com/en-us/library/windows/desktop/bb204633(v=vs.85).aspx
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdio.h>
//////////////////////////////////////////////////////////////
void capture() {
const ULONG framesToSkip = 0;
const ULONG framesToCapture = 64;