Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name ych commishes bids monitoring
// @namespace https://gist.github.com/Wixty
// @version 0.4
// @description Monitoring auction bids, siren when new bid is found
// @author Wixty
// @match https://ych.commishes.com/auction/show/*
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js#sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=
// @require https://greasyfork.org/scripts/438798-userscript-notification-framework/code/UserScript%20Notification%20Framework.js?version=1019652
// @grant none
// ==UserScript==
// @name Doctor92 Tickets Finder
// @namespace https://gist.github.com/Wixty
// @version 0.8
// @description Monitoring current and next week, siren when tickets are found.
// @author Wixty
// @match https://old.doctor-92.ru/record/*
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js#sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=
// @grant none
// ==/UserScript==
// ==UserScript==
// @name Bypass BandCamp Limits
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Track Play NOT capped anymore!
// @author Wixty
// @match https://*.bandcamp.com/album/*
// @match https://*.bandcamp.com/track/*
// @grant none
// ==/UserScript==
X(0x4EDE34FBADD967A6, 0x4EDE34FBADD967A6, 0x0155A998, SYSTEM:WAIT, 323)
X(0x480357EE890C295A, 0xC0A904C0F2775676, 0x00A41D24, AUDIO:GET_CURRENT_SCRIPTED_CONVERSATION_LINE, 323)
X(0x61F95E5BB3E0A8C6, 0x4CFAD0F749AFC349, 0x007E53B0, GRAPHICS:_0x61F95E5BB3E0A8C6, 323)
X(0x3B390A939AF0B5FC, 0x856D3FB988672179, 0x00D02688, WEAPON:GET_CURRENT_PED_WEAPON_ENTITY_INDEX, 323)
X(0xC4BB298BD441BE78, 0xC4BB298BD441BE78, 0x0155A3EC, SYSTEM:START_NEW_SCRIPT_WITH_NAME_HASH_AND_ARGS, 323)
X(0xC15907D667F7CFB2, 0xCEFB19216B0651AB, 0x00A40C90, AUDIO:_0xC15907D667F7CFB2, 323)
X(0x4EC12697209F2196, 0x553D435B7414EB84, 0x00CA7EB0, PLAYER:IS_PLAYER_RIDING_TRAIN, 323)
X(0xE81651AD79516E48, 0xE81651AD79516E48, 0x0155A284, SYSTEM:START_NEW_SCRIPT, 323)
X(0x9D74AE343DB65533, 0x2625AE158F7FFBAD, 0x00A48B2C, AUDIO:PREPARE_ALARM, 323)
X(0xED8286F71A819BAA, 0xD3C7A927A0868D83, 0x00D08554, VEHICLE:_0xED8286F71A819BAA, 323)
CREATE FUNCTION levenshtein( s1 VARCHAR(255), s2 VARCHAR(255) )
RETURNS INT
DETERMINISTIC
BEGIN
DECLARE s1_len, s2_len, i, j, c, c_temp, cost INT;
DECLARE s1_char CHAR;
-- max strlen=255
DECLARE cv0, cv1 VARBINARY(256);
SET s1_len = CHAR_LENGTH(s1), s2_len = CHAR_LENGTH(s2), cv1 = 0x00, j = 1, i = 1, c = 0;
IF s1 = s2 THEN
@Wixty
Wixty / mysql-levenshtein.sql
Created February 4, 2019 13:13 — forked from Kovah/mysql-levenshtein.sql
Levenshtein function for MySQL
-- Levenshtein function
-- Source: https://openquery.com.au/blog/levenshtein-mysql-stored-function
-- Levenshtein reference: http://en.wikipedia.org/wiki/Levenshtein_distance
-- Arjen note: because the levenshtein value is encoded in a byte array, distance cannot exceed 255;
-- thus the maximum string length this implementation can handle is also limited to 255 characters.
DELIMITER $$
DROP FUNCTION IF EXISTS LEVENSHTEIN $$
CREATE FUNCTION LEVENSHTEIN(s1 VARCHAR(255) CHARACTER SET utf8, s2 VARCHAR(255) CHARACTER SET utf8)