This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from "@nestjs/common"; | |
import Kafka from 'node-rdkafka'; | |
import { ConfigService } from '@nestjs/config'; | |
@Injectable() | |
export class LibRdKafkaService { | |
private consumer: Kafka.KafkaConsumer; | |
private producer: Kafka.Producer; | |
constructor(private configService: ConfigService){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Windows.h> | |
#include <iostream> | |
#include <stdio.h> | |
void EnableVirtualTerminalProcessing() { | |
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE); | |
DWORD dwMode = 0; | |
GetConsoleMode(hOut, &dwMode); | |
dwMode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING; | |
SetConsoleMode(hOut, dwMode); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git checkout --orphan orphan_data | |
git add -A | |
git commit -am "fix: orphaned" | |
git branch -D main | |
git branch -m main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
version: '2' | |
services: | |
zookeeper: | |
image: confluentinc/cp-zookeeper:7.3.2 | |
hostname: zookeeper | |
container_name: zookeeper | |
ports: | |
- "2181:2181" | |
environment: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.8" | |
services: | |
mongo1: | |
image: mongo:5 | |
container_name: mongo1 | |
command: ["--replSet", "my-replica-set", "--bind_ip_all", "--port", "30001"] | |
volumes: | |
- ./data/mongo-1:/data/db | |
ports: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// kmonitor.ts | |
import { Injectable } from "@nestjs/common"; | |
import { Ctx, KafkaContext } from "@nestjs/microservices"; | |
@Injectable() | |
export class kMonitor { | |
constructor(@Ctx() context: KafkaContext) { | |
context.getConsumer().on('consumer.rebalancing', (ev) => { | |
console.log(ev) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Stage 1 (Lessons 1-34) | |
1.PUBG Unreal Engine Environment Configuration and Compilation | |
2.Unreal Game Engine Basic Classes and C++ Reflection Principles | |
3.PUBG Important Structures and Hierarchical Relationships of Classes | |
4.Ollvm Obfuscation and VMP Protection PUBG Auxiliary Framework | |
4.5. Installation of llvm plug-in (supplementary course) | |
4.8. Modify line 571 of yvals_core.h to make it compatible with Clang version | |
5. Detailed explanation of ShellCode of Moduleless injection DWM process | |
6. Parse PE file and write ShellCode test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; MessageBoxA_Masm.asm by un4ckn0wl3z | |
.code | |
COMMENT @ | |
int MessageBoxA( | |
[in, optional] HWND hWnd, | |
[in, optional] LPCSTR lpText, | |
[in, optional] LPCSTR lpCaption, | |
[in] UINT uType |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Decimal (base 10) Binary (base 2) Hexadecimal (aka "Hex") (base 16) | |
00 0000b 0x00 | |
01 0001b 0x01 | |
02 0010b 0x02 | |
03 0011b 0x03 | |
04 0100b 0x04 | |
05 0101b 0x05 | |
06 0110b 0x06 | |
07 0111b 0x07 | |
08 1000b 0x08 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// import http from "k6/http"; | |
// export const options = { | |
// iterations: 1000, | |
// }; | |
// export default function () { | |
// const response = http.get("http://localhost:3000/health"); | |
// } |
NewerOlder