Skip to content

Instantly share code, notes, and snippets.

View Zekfad's full-sized avatar
🤡
depading updendencies / clown (🤡)

Yaroslav Vorobev Zekfad

🤡
depading updendencies / clown (🤡)
View GitHub Profile
@Zekfad
Zekfad / The Invincible AES key
Created December 24, 2023 23:30
The Invincible AES KEY (UE 4.27.2)
0xB00E9FDB22EC4E846B90611FA867D090F49379ED2CBB6685189267A993FCDEEC
@Zekfad
Zekfad / main.dart
Created January 5, 2023 18:10
dart compiler crash report
void main(List<String> arguments) {
}
void test(int positional, {int named1 = 0, int named2 = 0}) {}
class Sueta {
static void test(int positional, {int named1 = 0, int named2 = 0}) {}
}
extension SuetaExtension on Sueta {
static void test(int pos, {int named1 = 0, int named2 = 0}) {}
}
@Zekfad
Zekfad / main.dart
Created December 30, 2022 17:01
Riverpod regression example
import 'dart:math';
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'dart:core';
typedef FilterNotifierBuilder<T, Arg> = FutureOr<T> Function(AutoDisposeAsyncNotifierProviderRef<T> ref, Arg arg);
class FilterNotifier<T, Arg> extends AutoDisposeFamilyAsyncNotifier<T, Arg> {
@Zekfad
Zekfad / main.dart
Last active October 26, 2022 16:24
Question 74210767
import 'package:flutter/material.dart';
import 'package:tuple/tuple.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@Zekfad
Zekfad / cpp-const-correctness-note.md
Last active January 4, 2022 22:56
C++ const correctness note
Expression Explanation

Can change p?

@Zekfad
Zekfad / clang-cheatsheet.md
Created June 28, 2021 18:50
clang cheatsheet

Build

clang -o main.exe main.c

Build with AddressSanitizer

clang -fsanitize=address -o debug/main.exe main.c
@Zekfad
Zekfad / Admiral-AntiAdblock-Killer.user.js
Last active November 30, 2024 12:11 — forked from peruihkxt/Admiral-AntiAdblock-Killer.user.js
Kills the Admiral anti adblock nonsense. Just click on the *Raw* button to install the script into Tampermonkey.
// ==UserScript==
// @name Admiral AntiAdblock Killer
// @version 0.3
// @description Admiral AntiAdblock Killer
// @author Zekfad
// @match https://*/*
// @match http://*/*
// @grant none
// @updateURL https://gist.github.com/Zekfad/ed4f846bd51c8aff41f2cdaad24b21dd/raw/Admiral-AntiAdblock-Killer.user.js
// ==/UserScript==
@Zekfad
Zekfad / spoof_cmd.c
Created May 15, 2021 13:49
Simple command line arguments spoofer
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
char * str_concat(char *s1, const char *s2) {
const size_t a = strlen(s1);
const size_t b = strlen(s2);
const size_t size_ab = a + b + 1;
s1 = realloc(s1, size_ab);
@Zekfad
Zekfad / 0_rog_key.md
Last active April 28, 2021 11:00
Listen for ROG notebook FN keystrokes.

What's that?

This tool will listen for ASUS notebook's FN keystrokes. And it will map ROG key to Scroll Lock and Fan key to Num Lock. (Ctrl + Num Lock = Pause key).

Compile and run

$ clang main.cpp -o rog.exe && rog.exe
@Zekfad
Zekfad / conventional-commits.md
Last active December 20, 2024 04:29
Conventional Commits Cheatsheet

Quick examples

  • feat: new feature
  • fix(scope): bug in scope
  • feat!: breaking change / feat(scope)!: rework API
  • chore(deps): update dependencies

Commit types

  • build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
  • ci: Changes to CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
  • chore: Changes which doesn't change source code or tests e.g. changes to the build process, auxiliary tools, libraries