Skip to content

Instantly share code, notes, and snippets.

View Sarjuuk's full-sized avatar
😶
Shit's fucked, yo.

Sarjuuk

😶
Shit's fucked, yo.
  • Neuland
  • 09:09 (UTC +02:00)
View GitHub Profile
@Sarjuuk
Sarjuuk / com525.class.php
Last active January 21, 2024 08:22
communication interface for SIEMENS S5-CP524 and S5-CP525 communications processor
<?php
// Procedure 3964R
// Interpreter RK512
class Com525
{
// commands
private const CMD_SEND = 0x41; // 'A'
private const CMD_SEND_X = 0x4F; // 'O'
@Sarjuuk
Sarjuuk / convert.cmd
Last active May 17, 2021 02:12
[WIN] audio file conversion using ffmpeg - deletes after conversion
@echo off
echo ******************************************************************************************
echo This uses FFMPEG to convert and rename all of the files required for AoWoW sounds and
echo music. FFMPEG will loop indefinitely if we output a file of the same extension (MP3 to
echo MP3), so we just append an underscore there.
echo ******************************************************************************************
echo USE: Place this convert.cmd and ffmpeg.exe in the <localeCode>\Sound folder and run.
echo ******************************************************************************************
pause
@Sarjuuk
Sarjuuk / convert.sh
Last active April 24, 2023 22:21
[*NIX] audio file conversion using ffmpeg - deletes after conversion
#!/bin/bash
find . -name "*.wav" | xargs -I % sh -c 'ffmpeg -hide_banner -y -i "%" -acodec libvorbis -f ogg "%_"; rm "%";' && find . -name "*.mp3" | xargs -I % sh -c 'ffmpeg -hide_banner -y -i "%" -acodec libmp3lame -f mp3 "%_"; rm "%";'
#!/bin/bash
###############
# definitions #
###############
# 0 0 2 3 4 5 5 8 ?
LOCALES=( 'enUS' 'enGB' 'frFR' 'deDE' 'zhCN' 'esES' 'esMX' 'ruRU' '')
LOCALIZED=(
@Sarjuuk
Sarjuuk / gist:db95c6966d4317826164
Created May 1, 2014 13:57
reverts changes to locales_item after 60c214e99cf0351868dd4a75f1753ad6bec972a9
-- class:0, subclass:6,8 (item enhancement, other consumables)
UPDATE locales_item SET `name_loc2` = 'Pierre de soins mineure', `name_loc3` = 'Schwacher Gesundheitsstein', `name_loc6` = 'Piedra de salud', `name_loc8` = 'Крошечный камень здоровья' WHERE `entry` = 5512;
UPDATE locales_item SET `name_loc2` = 'Feu d\'artifice « rose jaune »', `name_loc3` = 'Feuerwerk mit gelben Rosen', `name_loc6` = 'Fuego de artificio amarillo y rosa', `name_loc8` = 'Фейерверк \"Желтая роза\"' WHERE `entry` = 9315;
UPDATE locales_item SET `name_loc2` = 'Pierre de soins mineure', `name_loc3` = 'Schwacher Gesundheitsstein', `name_loc6` = 'Piedra de salud', `name_loc8` = 'Крошечный камень здоровья' WHERE `entry` = 19004;
UPDATE locales_item SET `name_loc2` = 'Pierre de soins mineure', `name_loc3` = 'Schwacher Gesundheitsstein', `name_loc6` = 'Piedra de salud', `name_loc8` = 'Крошечный камень здоровья' WHERE `entry` = 19005;
UPDATE locales_item SET `name_loc2` = 'Parchemin d\'enchantement de bottes (Dextérité)', `name_loc3` = 'Rolle
@Sarjuuk
Sarjuuk / gist:3821404
Created October 2, 2012 17:26
Onyxian Whelpling Emotes
-- link breath and self-stun
DELETE FROM spell_linked_spell WHERE spell_trigger = -69006;
INSERT INTO spell_linked_spell (spell_trigger, spell_effect, type, comment) VALUES (-69006, 69004, 0, 'Onyxian Whelpling - Emote');
-- periodic trigger-aura to creature
DELETE FROM creature_template_addon WHERE entry = 36607;
INSERT INTO creature_template_addon (entry, auras) VALUES (36607, '69005');
-- emote text
DELETE FROM creature_text WHERE entry = 36607;
INSERT INTO creature_text (entry, text, type, probability, comment) VALUES (36607, '%s takes a deep breath!', 16, 100, 'Onyxian Whelpling - Deep Breath');
-- create AI
@Sarjuuk
Sarjuuk / m.diff
Created September 10, 2011 12:38
malygos
diff --git a/src/server/scripts/Northrend/Nexus/EyeOfEternity/eye_of_eternity.h b/src/server/scripts/Northrend/Nexus/EyeOfEternity/eye_of_eternity.h
index cc74ce9..59eb2af 100644
--- a/src/server/scripts/Northrend/Nexus/EyeOfEternity/eye_of_eternity.h
+++ b/src/server/scripts/Northrend/Nexus/EyeOfEternity/eye_of_eternity.h
@@ -24,49 +24,82 @@ enum InstanceData
MAX_ENCOUNTER,
DATA_VORTEX_HANDLING,
- DATA_POWER_SPARKS_HANDLING
+ DATA_POWER_SPARKS_HANDLING,