Skip to content

Instantly share code, notes, and snippets.

@wodim
wodim / mm2_ar_extract.py
Created November 5, 2018 00:54
Script to extract AR files from Midtown Madness 2
# wodim, 05/11/2018 -- public domain
# extracts an AR file from Midtown Madness 2 into the target directory
from math import ceil
import os
import sys
from struct import unpack
import zlib
// ==UserScript==
// @name NPC and item pictures for aowow
// @namespace Violentmonkey Scripts
// @match https://aowow.trinitycore.info/
// @grant none
// ==/UserScript==
"use strict";
if (jQuery("#view3D-button").length > 0 && !jQuery("#view3D-button").hasClass("button-red-disabled")) {
@wodim
wodim / sound_extract.py
Created July 17, 2014 12:01
Script to extract the .wav audio files from sfx.raw from GTA 3 and Vice City
# wodim, 17/07/2014 -- public domain
# This script can be used to get information and/or extract
# the .wav files inside the .raw files of the GTA 3 and Vice City games.
# They are located inside the /audio folder once the game is installed.
# There are two files: sfx.raw and sfx.sdt. The raw file includes the audio
# samples, and the sdt file includes pointers to each sample, with information
# such as the size and the sample rate. Here is a detailed description, from the
# GTAModding wiki site: http://www.gtamodding.com/index.php?title=SFX
@wodim
wodim / spanish.theme
Last active July 16, 2023 10:13
Traducción del tema por defecto de Irssi al español
# When testing changes, the easiest way to reload the theme is with /RELOAD.
# This reloads the configuration file too, so if you did any changes remember
# to /SAVE it first. Remember also that /SAVE overwrites the theme file with
# old data so keep backups :)
# TEMPLATES:
# The real text formats that irssi uses are the ones you can find with
# /FORMAT command. Back in the old days all the colors and texts were mixed
# up in those formats, and it was really hard to change the colors since you
{
"createdBy": "Redirector v3.5.3",
"createdAt": "2023-03-16T20:10:10.664Z",
"redirects": [
{
"description": "",
"exampleUrl": "https://doom.fandom.com/wiki/Doom",
"exampleResult": "https://doomwiki.org/wiki/Doom",
"error": null,
"includePattern": "https://doom.fandom.com/wiki/*",
@wodim
wodim / main.scm
Created July 13, 2014 10:42
main.scm from GTA: Vice City
This file has been truncated, but you can view the full file.
DEFINE OBJECTS 204
DEFINE OBJECT (noname)
DEFINE OBJECT DTN_STADDOORA // Object number -1
DEFINE OBJECT DTN_STADDOORB // Object number -2
DEFINE OBJECT DTHOTRING_A // Object number -3
DEFINE OBJECT BRIBE // Object number -4
DEFINE OBJECT CI_GATESCLOSED // Object number -5
DEFINE OBJECT CI_BACKGATECLOSE // Object number -6
DEFINE OBJECT INFO // Object number -7
DEFINE OBJECT YT_MAIN_BODY // Object number -8
@wodim
wodim / AutoHotkey.ahk
Last active October 3, 2021 13:30
My AutoHotkey script
; disable alt+f4
!F4::return
; disable alt+esc
!Escape::return
; allows to close windows using alt+pgdown
!PgDn::WinKill, A
; a few bindings: altgr+key to add some characters
; that are not part of the spanish keyboard layout
<^>!z::Send «
@wodim
wodim / gist:3a4649ea0f4d1a32e3b0f9c3da7f6841
Created November 21, 2016 01:03
Demangled symbol list from San Andreas
This file has been truncated, but you can view the full file.
sizeof_rwRaster
_rwRaster_cFlags
_rwRaster_cType
_rwRaster_nStride
_rwRaster_nDepth
_rwRaster_nHeight
_rwRaster_nWidth
_rwRaster_cpPixels
sizeof_rwV3d
_rwV3d_nZ
@wodim
wodim / ban-affects.pl
Last active August 9, 2020 22:37
Irssi script that shows a list of nicks affected by a ban once it's set or unset
use Irssi;
use strict;
use vars qw($VERSION %IRSSI);
$VERSION = "0.3";
%IRSSI = (
authors => "wodim",
contact => 'wodim@outlook.com',
name => "ban-affects",
description => "Shows a list of nicks affected by a ban once it's set or unset",
@wodim
wodim / redirects.user.js
Last active March 22, 2020 20:04
Script that redirects shitty sites to good sites
// ==UserScript==
// @name Redirects
// @author You
// @match *://*/*
// ==/UserScript==
(function() {
'use strict'
const redirections = new Map([