Skip to content

Instantly share code, notes, and snippets.

View Zekfad's full-sized avatar
9️⃣
IX

Yaroslav Vorobev Zekfad

9️⃣
IX
View GitHub Profile
@Zekfad
Zekfad / flutter-180309-workaround.dart
Last active July 5, 2026 11:08
Flutter Cupertino Page with fullscreen back gesture recognizer. Workaround for https://github.com/flutter/flutter/issues/180309
import 'dart:async';
import 'package:flutter/cupertino.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/rendering.dart';
// DEMO CODE
import 'package:go_router/go_router.dart';
@Zekfad
Zekfad / build.gradle.kts
Created February 22, 2026 12:19
Flutter (Android): override minimum compile SDK version for every project and force JDK/Java version for every subproject
// ...
// override minimum compile sdk version for every project
// and override JDK version for every project
var flutterCompileSdkVersion = 0
subprojects {
afterEvaluate {
plugins.withType<com.flutter.gradle.FlutterPlugin> {
configure<com.flutter.gradle.FlutterExtension> {
flutterCompileSdkVersion = compileSdkVersion
@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 February 12, 2026 16:00 — 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);