Skip to content

Instantly share code, notes, and snippets.

View Konctantin's full-sized avatar
🎯
Focusing

Konctantin Konctantin

🎯
Focusing
View GitHub Profile
using System;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
public class Form1 : Form
{
private DataTable table = new DataTable();
private MyDataGridView dataGridView1 = new MyDataGridView();
private DataGridView dataGridView2 = new DataGridView();
char __fastcall ClientCache::WriteQuestEntry(int *a1, __int64 a2)
{
_DWORD *v2; // rdi
int *v3; // r12
int *v4; // rbx
signed __int64 v5; // rsi
int *v6; // rbx
signed __int64 v7; // rsi
int *v8; // rbx
signed __int64 v9; // rsi
using System.Collections.Generic;
using System.Data.Common;
using System.Globalization;
using System.Linq.Expressions;
using System.Reflection;
namespace System.Data.MapperExtension
{
/// <summary>
/// Make field name for mapping.
char __fastcall ClientCache::WriteCreatureRecord(__int64 a1, __int64 a2)
{
__int64 v2; // r13
__int64 v3; // r12
unsigned int v4; // ebx
unsigned int v5; // edi
unsigned int v6; // esi
char v7; // bl
unsigned int v8; // edx
char v9; // dl
/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);
# 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_*"
using System;
using System.Diagnostics;
using System.Collections;
using System.Runtime.InteropServices;
using System.Management;
using System.ServiceProcess;
namespace ConsoleApplication2
{
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
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 '%ббб%'
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))
, ''