Skip to content

Instantly share code, notes, and snippets.

View Virenbar's full-sized avatar
🦊

Virenbar

🦊
View GitHub Profile
@Virenbar
Virenbar / Mouse.pas
Created October 26, 2016 11:32
Delphi Mouse
uses
...
, Windows
, ...
;
type
TMouseBtnType = (mbLeft, mbMiddle, mbRight);
const
@Virenbar
Virenbar / Commands
Created October 5, 2017 18:32
Mobs Pass
/summon bat -407 45 -630 {Passengers:[
{id:"Slime",Size:0,Tags:["Zone"]},
{id:"Chicken",Tags:["Zone"]},
{id:"Chicken",Tags:["Zone"]},
{id:"Chicken",Tags:["Zone"]},
{id:"Chicken",Tags:["Zone"]},
{id:"Chicken",Tags:["Zone"]},
{id:"Chicken",Tags:["Zone"]},
{id:"Chicken",Tags:["Zone"]},
],Tags:["Zone"]}

Keybase proof

I hereby claim:

  • I am virenbar on github.
  • I am virenbar (https://keybase.io/virenbar) on keybase.
  • I have a public key ASD-noA8twOcMSN40rN5ega627hgZko3F8q3G-oV_aqejgo

To claim this, I am signing this object:

const readline = require('readline')
const color = require('ansi-color').set
const mc = require('minecraft-protocol')
const states = mc.states
const util = require('util')
const colors = {
black: 'black+white_bg',
dark_blue: 'blue',
dark_green: 'green',
@Virenbar
Virenbar / MinecraftCustomHeads.md
Last active April 20, 2024 14:46
Minecraft Custom Heads using education.minecraft.net
@Virenbar
Virenbar / DirectBitmap.vb
Created July 26, 2021 10:56
Pinned in memory Bitmap
Imports System.Drawing
Imports System.Drawing.Imaging
Imports System.Runtime.InteropServices
Public Class DirectBitmap
Implements IDisposable
Public Sub New(iwidth As Integer, iheight As Integer)
Width = iwidth
@Virenbar
Virenbar / RemoveOneDrive.reg
Last active August 17, 2021 18:27
Cleanup Explorer
Windows Registry Editor Version 5.00
;Set to 00000001 to restore
[HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}]
"System.IsPinnedToNameSpaceTree"=dword:00000000
;Only for 64-bit
[HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}]
"System.IsPinnedToNameSpaceTree"=dword:00000000
@Virenbar
Virenbar / FIAS 1C Regex.md
Last active October 7, 2021 05:14
ФИАС - Разделение адреса из справочника 1С

ФИАС 2:ГАР
Regex101

ESTSTAT - статус дома
STRSTAT - статус строения
[ESTSTAT]{[Номер]}{~{[Корпус]}{~[STRSTAT]~[Номер]}}

^(?<s1>\d)(?<n>[^~]*)(~(?<a1>\d*)?(~(?<s2>\d)~(?<a2>.+))?)?$
^(?<s1>\d)(?<n>[\dа-яА-Я]*)(~(?<a1>\d*)?(~(?<s2>\d)~(?<a2>.+))?)?$

Ignore license state

Change byte at address 0x5A421 from 0x06 to 0x17 ldloc.0(0x06) -> ldc.i4.1(0x17)

How i found this byte:

  1. Opened SSMSBoost.dll in dnSpy
  2. Found usage of Enum ActivationMode
  3. Found method public bool IsAuthorized(Feature feature)
  4. Opened IL code of method
@Virenbar
Virenbar / net-angels-auth.sh
Created May 10, 2024 18:13
Certbot DNS Challenge for NetAngels API
#!/bin/bash
#Основные параметры
KEY="<key>"
ID="<record_id>"
NAME="_acme-challenge.<domain>"
#CERTBOT_VALIDATION="test"
TOKEN=$(curl --location 'https://panel.netangels.ru/api/gateway/token/' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'api_key='$KEY | jq -r '.token')