Skip to content

Instantly share code, notes, and snippets.

View Konctantin's full-sized avatar
🎯
Focusing

Konctantin Konctantin

🎯
Focusing
View GitHub Profile

VCDS opcodes

Engine

Opcode DEscription
007 Common engine temperature
093 Chain (Phase position)

AKP

|Opcode|DEscription|

WSL Preparation

Install go

wget https://dl.google.com/go/go1.20.linux-amd64.tar.gz
sudo tar -xvf go1.20.linux-amd64.tar.gz
sudo mv go /usr/local

Config

-- insert at after line: 345
if Auctionator and Auctionator.Database then
local key = "p:" .. tostring(petInfo.speciesID)
local price = Auctionator.Database:GetPrice(key)
if price ~= nil then
local priceStr = Auctionator.Utilities.CreatePaddedMoneyString(price);
card:AddStat(priceStr,"",0,0.5,0,0.5,"","")
end
end
use kcmod
Declare
@OtchMes smalldatetime='20210401',
@IdSpis int=null,
@Client int=null,
@Vrp int=null
declare @VRP_INT Table (Vrp int)
use kcmod
go
select ISTK.Nom_Vag,
case
when ISTK.PoluchOKPO>0
then coalesce(
(select top 1 '' from dbo.nsDoroga)
, 'ОКПО грузополучателя - '+cast(ISTK.PoluchOKPO as varchar(123))
, ''
select count(*)
-- delete
from kcmod.dbo.THP_SpisHead where
Create_dt < '20150101' or (
Create_dt < '20200101' and (
ISNUMERIC([name]) = 1 -- число как имя списка
or Kol < 5 -- количетво вагонов меньше 5
or len([name]) < 5 -- имя списка короче 5 символов
or [name] like '%ааа%'
or [name] like '%ббб%'
declare @fldList table(nm varchar(128));
select drv.IdZap
, drv.dorogaid
, dor.MNKD as DorName
, Depo_Rem
, fosv.SNAME as Depo_RemName
, vag_GR
, Or_Pr
, Prich_Otkl
using System;
using System.Diagnostics;
using System.Collections;
using System.Runtime.InteropServices;
using System.Management;
using System.ServiceProcess;
namespace ConsoleApplication2
{
# Turn off "Connected User Experiences and Telemetry" service
# Отключить службу "Функциональные возможности для подключенных пользователей и телеметрия"
Get-Service -Name DiagTrack | Stop-Service -Force
Get-Service -Name DiagTrack | Set-Service -StartupType Disabled
# Turn off per-user services
# Отключить пользовательские службы
$services = @(
# Contact Data
# Служба контактных данных
"PimIndexMaintenanceSvc_*"
/run frame=CreateFrame("Frame");frame:SetScript("OnEvent",function(s,e,...) if e == "COMBAT_LOG_EVENT_UNFILTERED" then print(CombatLogGetCurrentEventInfo()) end end);frame:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED");frame:Show()
/dump C_ActionBar.FindSpellActionButtons(123);
local ACTION_BAR_TYPES = { 'Action', 'MultiBarBottomLeft', 'MultiBarBottomRight', 'MultiBarRight', 'MultiBarLeft' };
function GetHotKeyBySpellId(spellId)
local actionList = C_ActionBar.FindSpellActionButtons(spellId);